".__("om_forms"); if(!isset($premier)) $premier=''; if(!isset($tricolsf)) $tricolsf=''; if(!isset($premiersf)) $premiersf=''; if(!isset($selection)) $selection=''; if(!isset($retourformulaire)) $retourformulaire=''; if (!isset($idxformulaire)) { $idxformulaire = ''; } if (!isset($tricol)) { $tricol = ''; } if (!isset($valide)) { $valide = ''; } // FROM $table = DB_PREFIXE."om_forms LEFT JOIN ".DB_PREFIXE."om_tables ON om_forms.table_name=om_tables.table_name "; // SELECT $champAffiche = array( 'om_forms.column_name as "'.__("column_name").'"', 'om_tables.libelle as "'.__("table_name").'"', 'om_forms.table_schema as "'.__("table_schema").'"', 'om_forms.data_type as "'.__("data_type").'"', 'om_forms.character_maximum_length as "'.__("character_maximum_length").'"', 'om_forms.is_nullable as "'.__("is_nullable").'"', 'om_forms.column_default as "'.__("column_default").'"', 'om_forms.libelle as "'.__("libelle").'"', 'om_forms.libelle_court as "'.__("libelle_court").'"', 'om_forms.type as "'.__("type").'"', 'om_forms.bloc as "'.__("bloc").'"', 'om_forms.position as "'.__("position").'"', 'om_forms.calcul as "'.__("calcul").'"', 'om_forms.liste as "'.__("liste").'"', 'om_forms.position_liste as "'.__("position_liste").'"', ); // $champNonAffiche = array( 'om_forms.comment as "'.__("comment").'"', 'om_forms.parametres as "'.__("parametres").'"', ); // $champRecherche = array( 'om_forms.column_name as "'.__("column_name").'"', 'om_tables.libelle as "'.__("table_name").'"', 'om_forms.table_schema as "'.__("table_schema").'"', 'om_forms.data_type as "'.__("data_type").'"', 'om_forms.character_maximum_length as "'.__("character_maximum_length").'"', 'om_forms.is_nullable as "'.__("is_nullable").'"', 'om_forms.column_default as "'.__("column_default").'"', 'om_forms.libelle as "'.__("libelle").'"', 'om_forms.libelle_court as "'.__("libelle_court").'"', 'om_forms.type as "'.__("type").'"', 'om_forms.bloc as "'.__("bloc").'"', 'om_forms.position as "'.__("position").'"', 'om_forms.calcul as "'.__("calcul").'"', 'om_forms.liste as "'.__("liste").'"', 'om_forms.position_liste as "'.__("position_liste").'"', ); $tri="ORDER BY om_forms.libelle ASC NULLS LAST"; $edition="om_forms"; /** * Gestion de la clause WHERE => $selection */ // Filtre listing standard $selection = ""; // Liste des clés étrangères avec leurs éventuelles surcharges $foreign_keys_extended = array( "om_tables" => array("om_tables", ), ); // Filtre listing sous formulaire - om_tables if (in_array($retourformulaire, $foreign_keys_extended["om_tables"])) { $selection = " WHERE (om_forms.table_name = '".$f->db->escapeSimple($idxformulaire)."') "; }