. */ include_once __DIR__.'/../../core.php'; use Models\Module; $id_modulo_categorie_impianti = (new Module())->getByField('name', 'Categorie Impianti', \Models\Locale::where('predefined', true)->first()->id); $img = null; if (!empty($record['immagine'])) { $fileinfo = Uploads::fileInfo($record['immagine']); $default_img = '/'.Uploads::getDirectory($id_module).'/'.$fileinfo['filename'].'_thumb600.'.$fileinfo['extension']; $img = file_exists(base_dir().$default_img) ? base_path().$default_img : base_path().'/'.Uploads::getDirectory($id_module).'/'.$record['immagine']; } ?>
{( "name": "filelist_and_upload", "id_module": "$id_module$", "id_record": "$id_record$" )} fetchArray('SELECT `in_interventi`.`id`, `codice` AS numero, `data_richiesta` AS data, "Intervento" AS tipo_documento FROM `in_interventi` INNER JOIN `my_impianti_interventi` ON `in_interventi`.`id`=`my_impianti_interventi`.`idintervento` WHERE `my_impianti_interventi`.`idimpianto` = '.prepare($id_record).' UNION SELECT `co_contratti`.`id`, `numero` AS numero, `data_bozza` AS data, "Contratto" AS tipo_documento FROM `co_contratti` INNER JOIN `my_impianti_contratti` ON `co_contratti`.`id`=`my_impianti_contratti`.`idcontratto` WHERE `my_impianti_contratti`.`idimpianto` = '.prepare($id_record)); $class = ''; if (!empty($elementi)) { echo '