"._("commission"); 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."commission LEFT JOIN ".DB_PREFIXE."commission_type ON commission.commission_type=commission_type.commission_type "; // SELECT $champAffiche = array( 'commission.commission as "'._("commission").'"', 'commission.code as "'._("code").'"', 'commission_type.libelle as "'._("commission_type").'"', 'commission.libelle as "'._("libelle").'"', 'to_char(commission.date_commission ,\'DD/MM/YYYY\') as "'._("date_commission").'"', 'commission.heure_commission as "'._("heure_commission").'"', 'commission.lieu_adresse_ligne1 as "'._("lieu_adresse_ligne1").'"', 'commission.lieu_adresse_ligne2 as "'._("lieu_adresse_ligne2").'"', 'commission.lieu_salle as "'._("lieu_salle").'"', 'commission.om_fichier_commission_ordre_jour as "'._("om_fichier_commission_ordre_jour").'"', "case commission.om_final_commission_ordre_jour when 't' then 'Oui' else 'Non' end as \""._("om_final_commission_ordre_jour")."\"", 'commission.om_fichier_commission_compte_rendu as "'._("om_fichier_commission_compte_rendu").'"', "case commission.om_final_commission_compte_rendu when 't' then 'Oui' else 'Non' end as \""._("om_final_commission_compte_rendu")."\"", ); // $champNonAffiche = array( 'commission.listes_de_diffusion as "'._("listes_de_diffusion").'"', 'commission.participants as "'._("participants").'"', ); // $champRecherche = array( 'commission.commission as "'._("commission").'"', 'commission.code as "'._("code").'"', 'commission_type.libelle as "'._("commission_type").'"', 'commission.libelle as "'._("libelle").'"', 'commission.heure_commission as "'._("heure_commission").'"', 'commission.lieu_adresse_ligne1 as "'._("lieu_adresse_ligne1").'"', 'commission.lieu_adresse_ligne2 as "'._("lieu_adresse_ligne2").'"', 'commission.lieu_salle as "'._("lieu_salle").'"', 'commission.om_fichier_commission_ordre_jour as "'._("om_fichier_commission_ordre_jour").'"', 'commission.om_fichier_commission_compte_rendu as "'._("om_fichier_commission_compte_rendu").'"', ); $tri="ORDER BY commission.libelle ASC NULLS LAST"; $edition="commission"; /** * Gestion de la clause WHERE => $selection */ // Filtre listing standard $selection = ""; // Liste des clés étrangères avec leurs éventuelles surcharges $foreign_keys_extended = array( "commission_type" => array("commission_type", ), ); // Filtre listing sous formulaire - commission_type if (in_array($retourformulaire, $foreign_keys_extended["commission_type"])) { $selection = " WHERE (commission.commission_type = '".$idx."') "; } /** * Gestion SOUSFORMULAIRE => $sousformulaire */ $sousformulaire = array( 'dossier_commission', ); ?>