. */ include_once __DIR__.'/../../core.php'; use Modules\Preventivi\Stato; use Models\Module; $id_anagrafica = !empty(get('idanagrafica')) ? get('idanagrafica') : ''; $stati = get('pianificabile') ? 'SELECT `co_statipreventivi`.`id`, `co_statipreventivi_lang`.`name` as descrizione FROM `co_statipreventivi` LEFT JOIN `co_statipreventivi_lang` ON (`co_statipreventivi`.`id` = `co_statipreventivi_lang`.`id_record` AND `co_statipreventivi_lang`.`id_lang` = '.prepare(setting('Lingua')).') WHERE `is_pianificabile`=1' : 'SELECT `co_statipreventivi`.`id`, `co_statipreventivi_lang`.`name` as descrizione FROM `co_statipreventivi` LEFT JOIN `co_statipreventivi_lang` ON (`co_statipreventivi`.`id` = `co_statipreventivi_lang`.`id_record` AND `co_statipreventivi_lang`.`id_lang` = '.prepare(setting('Lingua')).')'; $stato = (new Stato())->getByName('Bozza')->id_record; ?>
{[ "type": "text", "label": "", "name": "nome", "required": 1 ]}
{[ "type": "select", "label": "", "name": "idanagrafica", "required": 1, "value": "", "ajax-source": "clienti", "icon-after": "add|GetByName('Anagrafiche')->id_record; ?>|tipoanagrafica=Cliente&readonly_tipo=1", "readonly": "" ]}
{[ "type": "select", "label": "", "name": "idsede", "ajax-source": "sedi", "placeholder": "Sede legale" ]}
{[ "type": "date", "label": "", "name": "data_bozza", "value": "", "required": 1 ]}
{[ "type": "select", "label": "", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": $id_module, 'is_sezionale' => 1]); ?>, "value": "" ]}
{[ "type": "select", "label": "", "name": "idtipointervento", "required": 1, "ajax-source": "tipiintervento" ]}
{[ "type": "select", "label": "", "name": "idstato", "required": 1, "value": "", "values": "query=" ]}