".__("om_actions"); 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_actions LEFT JOIN ".DB_PREFIXE."om_tables ON om_actions.table_name=om_tables.table_name "; // SELECT $champAffiche = array( 'om_actions.om_actions as "'.__("om_actions").'"', 'om_actions.libelle as "'.__("libelle").'"', 'om_actions.module as "'.__("module").'"', 'om_actions.parametres as "'.__("parametres").'"', 'om_tables.libelle as "'.__("table_name").'"', ); // $champNonAffiche = array( ); // $champRecherche = array( 'om_actions.om_actions as "'.__("om_actions").'"', 'om_actions.libelle as "'.__("libelle").'"', 'om_actions.module as "'.__("module").'"', 'om_tables.libelle as "'.__("table_name").'"', ); $tri="ORDER BY om_actions.libelle ASC NULLS LAST"; $edition="om_actions"; /** * 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_actions.table_name = '".$f->db->escapeSimple($idxformulaire)."') "; }