. */ include_once __DIR__.'/../../core.php'; use Carbon\Carbon; use Models\Module; use Models\PrintTemplate; $id_record = filter('id_record'); $dir = filter('dir'); $nome_stampa = filter('nome_stampa'); $id_print = (new PrintTemplate())->getByField('title', $nome_stampa, Models\Locale::getPredefined()->id); $id_module = (new Module())->getByField('title', 'Stampe contabili', Models\Locale::getPredefined()->id); $year = (new Carbon($_SESSION['period_end']))->format('Y'); // Trovo id_print della stampa $link = Prints::getHref($nome_stampa, $id_record); echo '
'; echo '
{[ "type": "date", "label": "'.tr('Data inizio').'", "required": "1", "name": "date_start", "value": "'.$_SESSION['period_start'].'" ]}
{[ "type": "date", "label": "'.tr('Data fine').'", "required": "1", "name": "date_end", "value": "'.$_SESSION['period_end'].'" ]}
{[ "type": "checkbox", "label": "'.tr('Includi emesse').'", "name": "is_emessa" ]}
{[ "type": "select", "label": "'.tr('Formato').'", "name": "format", "required": "1", "values": "list=\"A4\": \"'.tr('A4').'\", \"A3\": \"'.tr('A3').'\"", "value": "'.$_SESSION['stampe_contabili']['format'].'" ]}
{[ "type": "select", "label": "'.tr('Orientamento').'", "name": "orientation", "required": "1", "values": "list=\"L\": \"'.tr('Orizzontale').'\", \"P\": \"'.tr('Verticale').'\"", "value": "'.$_SESSION['stampe_contabili']['orientation'].'" ]}
{[ "type": "checkbox", "label": "'.tr('Includi parzialmente pagate').'", "name": "is_parz_pagata" ]}
'; echo '

 


'; echo ' ';