"._("dossier_message"); if(!isset($premier)) $premier=''; if(!isset($recherche1)) $recherche1=''; if(!isset($tricolsf)) $tricolsf=''; if(!isset($premiersf)) $premiersf=''; if(!isset($selection)) $selection=''; if(!isset($retourformulaire)) $retourformulaire=''; if (isset($idx) && $idx != ']' && trim($idx) != '') { $ent .= "-> ".$idx." "; } if (isset($idz) && trim($idz) != '') { $ent .= " ".strtoupper($idz)." "; } // FROM $table = DB_PREFIXE."dossier_message LEFT JOIN ".DB_PREFIXE."dossier ON dossier_message.dossier=dossier.dossier "; // SELECT $champAffiche = array( 'dossier_message.dossier_message as "'._("dossier_message").'"', 'dossier.annee as "'._("dossier").'"', 'dossier_message.type as "'._("type").'"', 'dossier_message.emetteur as "'._("emetteur").'"', 'dossier_message.date_emission as "'._("date_emission").'"', "case dossier_message.lu when 't' then 'Oui' else 'Non' end as \""._("lu")."\"", ); // $champNonAffiche = array( 'dossier_message.contenu as "'._("contenu").'"', ); // $champRecherche = array( 'dossier_message.dossier_message as "'._("dossier_message").'"', 'dossier.annee as "'._("dossier").'"', 'dossier_message.type as "'._("type").'"', 'dossier_message.emetteur as "'._("emetteur").'"', ); $tri="ORDER BY dossier.annee ASC NULLS LAST"; $edition="dossier_message"; /** * Gestion de la clause WHERE => $selection */ // Filtre listing standard $selection = ""; // Liste des clés étrangères avec leurs éventuelles surcharges $foreign_keys_extended = array( "dossier" => array("dossier", ), ); // Filtre listing sous formulaire - dossier if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) { $selection = " WHERE (dossier_message.dossier = '".$idx."') "; } ?>