. */ include_once __DIR__.'/../core.php'; // Compatibilità per controller ed editor if (!empty($id_plugin)) { $structure = Plugins::get($id_plugin); } else { $structure = Modules::get($id_module); } if (!empty($id_plugin)) { // Inclusione di eventuale plugin personalizzato if (!empty($structure['script'])) { include $structure->getEditFile(); return; } echo '
'; 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 '
---|---|
'; foreach ($total['fields'] as $key => $field) { echo ' | '; } echo ' |