'.$element['title'].(!empty($element['help']) ? ' ' : '').''; if (file_exists($docroot.'/plugins/'.$element['directory'].'/add.php')) { echo ' '; } echo ' '; $directory = '/plugins/'.$element['directory']; } else { $element = Modules::get($id_module); $directory = '/modules/'.$element['directory']; } $total = App::readQuery($element); $module_options = (!empty($element['options2'])) ? $element['options2'] : $element['options']; // Caricamento file aggiuntivo su elenco record if (file_exists($docroot.$directory.'/custom/controller_before.php')) { include $docroot.$directory.'/custom/controller_before.php'; } elseif (file_exists($docroot.$directory.'/controller_before.php')) { include $docroot.$directory.'/controller_before.php'; } if (count(Modules::getSegments($id_module)) > 1) { ?>
{[ "type": "select", "label": "", "name": "id_segment_", "required": 0, "class": "", "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module = ''", "value": "", "extra": "" ]}

'; foreach ($total['fields'] as $key => $field) { $attr_td = ''; $name = trim($field); // Check per tipologie di campi particolari if (preg_match('/^color_/', $field)) { $attr_td .= " width='140'"; $field = str_replace('color_', '', $field); } // Data (larghezza fissa) elseif (preg_match('/^Data/', $field)) { $attr_td .= " width='100'"; } // Icona di stampa elseif (trim($field) == '_print_') { $attr_td .= " width='30'"; $field = str_replace('_print_', '', $field); } elseif (preg_match('/^icon_/', $field)) { $attr_td .= " width='30'"; $name = str_replace('icon_', 'icon_title_', $name); $field = str_replace('icon_', '', $field); } echo ' '.$field.''; } echo ' '; echo ' '; foreach ($total['fields'] as $key => $field) { echo ' '; } echo ' '; echo '
'; } /* * Inclusione modulo personalizzato */ elseif ($module_options == 'custom') { // Lettura template modulo (verifico se ci sono template personalizzati, altrimenti uso quello base) if (file_exists($docroot.$directory.'/custom/edit.php')) { include $docroot.$directory.'/custom/edit.php'; } elseif (file_exists($docroot.$directory.'/custom/edit.html')) { include $docroot.$directory.'/custom/edit.html'; } elseif (file_exists($docroot.$directory.'/edit.php')) { include $docroot.$directory.'/edit.php'; } elseif (file_exists($docroot.$directory.'/edit.html')) { include $docroot.$directory.'/edit.html'; } } // Caricamento file aggiuntivo su elenco record if (file_exists($docroot.$directory.'/custom/controller_after.php')) { include $docroot.$directory.'/custom/controller_after.php'; } elseif (file_exists($docroot.$directory.'/controller_after.php')) { include $docroot.$directory.'/controller_after.php'; }