"._("rapport_instruction"); 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."rapport_instruction LEFT JOIN ".DB_PREFIXE."dossier ON rapport_instruction.dossier_instruction=dossier.dossier "; // SELECT $champAffiche = array( 'rapport_instruction.rapport_instruction as "'._("rapport_instruction").'"', 'dossier.annee as "'._("dossier_instruction").'"', 'rapport_instruction.om_fichier_rapport_instruction as "'._("om_fichier_rapport_instruction").'"', "case rapport_instruction.om_final_rapport_instruction when 't' then 'Oui' else 'Non' end as \""._("om_final_rapport_instruction")."\"", ); // $champNonAffiche = array( 'rapport_instruction.analyse_reglementaire_om_html as "'._("analyse_reglementaire_om_html").'"', 'rapport_instruction.description_projet_om_html as "'._("description_projet_om_html").'"', 'rapport_instruction.proposition_decision as "'._("proposition_decision").'"', ); // $champRecherche = array( 'rapport_instruction.rapport_instruction as "'._("rapport_instruction").'"', 'dossier.annee as "'._("dossier_instruction").'"', 'rapport_instruction.om_fichier_rapport_instruction as "'._("om_fichier_rapport_instruction").'"', ); $tri="ORDER BY dossier.annee ASC NULLS LAST"; $edition="rapport_instruction"; /** * 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 (rapport_instruction.dossier_instruction = '".$idx."') "; } ?>