"._("blocnote"); 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."blocnote LEFT JOIN ".DB_PREFIXE."dossier ON blocnote.dossier=dossier.dossier "; // SELECT $champAffiche = array( 'blocnote.blocnote as "'._("blocnote").'"', 'blocnote.categorie as "'._("categorie").'"', 'dossier.annee as "'._("dossier").'"', ); // $champNonAffiche = array( 'blocnote.note as "'._("note").'"', ); // $champRecherche = array( 'blocnote.blocnote as "'._("blocnote").'"', 'blocnote.categorie as "'._("categorie").'"', 'dossier.annee as "'._("dossier").'"', ); $tri="ORDER BY blocnote.categorie ASC NULLS LAST"; $edition="blocnote"; /** * 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", "dossier_instruction", "dossier_instruction_mes_encours", "dossier_instruction_tous_encours", "dossier_instruction_mes_clotures", "dossier_instruction_tous_clotures", ), ); // Filtre listing sous formulaire - dossier if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) { $selection = " WHERE (blocnote.dossier = '".$idx."') "; } ?>