getEditFile(); return; } echo '

'.$element['title'].(!empty($element['help']) ? ' ' : '').''; if ($element->hasAddFile()) { echo ' '; } echo '

'; } $type = $element['option']; // Caricamento funzioni del modulo $modutil = App::filepath($directory.'|custom|', 'modutil.php'); if (!empty($modutil)) { include_once $modutil; } // Lettura risultato query del modulo // include App::filepath($directory.'|custom|', 'init.php'); // Caricamento file aggiuntivo su elenco record $controller_before = App::filepath($directory.'|custom|', 'controller_before.php'); if (!empty($controller_before)) { include $controller_before; } /* * Datatables con record */ if (!empty($type) && $type != 'menu' && $type != 'custom') { $total = App::readQuery($element); if (empty($id_plugin) && count(Modules::getSegments($id_module)) > 1) { echo '
{[ "type": "select", "name": "id_segment_", "required": 0, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module = '.prepare($id_module).'", "value": "'.$_SESSION['module_'.$id_module]['id_segment'].'" ]}

'; echo ' '; } $table_id = 'main_'.rand(0, 99); 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 ' '; echo ' '; foreach ($total['fields'] as $key => $field) { echo ' '; } echo '
'; echo '
'; if (setting('Abilita esportazione Excel e PDF')) { echo '
'; } else { echo ' '; } echo '
'; } /* * Inclusione modulo personalizzato */ elseif ($type == 'custom') { include $element->getEditFile(); } // Caricamento file aggiuntivo su elenco record $controller_after = App::filepath($directory.'|custom|', 'controller_after.php'); if (!empty($controller_after)) { include $controller_after; }