".__("parametrage_annexe"); 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."parametrage_annexe LEFT JOIN ".DB_PREFIXE."instruction ON parametrage_annexe.instruction=instruction.instruction "; // SELECT $champAffiche = array( 'parametrage_annexe.parametrage_annexe as "'.__("parametrage_annexe").'"', 'instruction.dossier as "'.__("dossier").'"', 'parametrage_annexe.instruction as "'.__("instruction").'"', 'parametrage_annexe.document_object_type as "'.__("document_object_type").'"', 'parametrage_annexe.document_object_type_id as "'.__("document_object_type_id").'"', 'parametrage_annexe.condition as "'.__("condition").'"', ); // $champNonAffiche = array( ); // $champRecherche = array( 'parametrage_annexe.parametrage_annexe as "'.__("parametrage_annexe").'"', 'instruction.destinataire as "'.__("dossier").'"', 'parametrage_annexe.instruction as "'.__("instruction").'"', 'parametrage_annexe.document_object_type as "'.__("document_object_type").'"', 'parametrage_annexe.document_object_type_id as "'.__("document_object_type_id").'"', 'parametrage_annexe.condition as "'.__("condition").'"', ); $tri="ORDER BY instruction.destinataire ASC NULLS LAST"; $edition="parametrage_annexe"; /** * Gestion de la clause WHERE => $selection */ // Filtre listing standard $selection = ""; // Liste des clés étrangères avec leurs éventuelles surcharges $foreign_keys_extended = array( "instruction" => array("instruction", "instruction_modale", ), ); // Filtre listing sous formulaire - instruction if (in_array($retourformulaire, $foreign_keys_extended["instruction"])) { $selection = " WHERE (parametrage_annexe.instruction = ".intval($idxformulaire).") "; }