"._("sig_elyx"); 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."sig_elyx LEFT JOIN ".DB_PREFIXE."dossier ON sig_elyx.dossier=dossier.dossier "; // SELECT $champAffiche = array( 'sig_elyx.sig_elyx as "'._("sig_elyx").'"', 'dossier.annee as "'._("dossier").'"', 'sig_elyx.date_verif_parcelle as "'._("date_verif_parcelle").'"', "case sig_elyx.etat_verif_parcelle when 't' then 'Oui' else 'Non' end as \""._("etat_verif_parcelle")."\"", 'sig_elyx.date_calcul_emprise as "'._("date_calcul_emprise").'"', "case sig_elyx.etat_calcul_emprise when 't' then 'Oui' else 'Non' end as \""._("etat_calcul_emprise")."\"", 'sig_elyx.date_dessin_emprise as "'._("date_dessin_emprise").'"', "case sig_elyx.etat_dessin_emprise when 't' then 'Oui' else 'Non' end as \""._("etat_dessin_emprise")."\"", 'sig_elyx.date_calcul_centroide as "'._("date_calcul_centroide").'"', "case sig_elyx.etat_calcul_centroide when 't' then 'Oui' else 'Non' end as \""._("etat_calcul_centroide")."\"", 'sig_elyx.date_recup_contrainte as "'._("date_recup_contrainte").'"', "case sig_elyx.etat_recup_contrainte when 't' then 'Oui' else 'Non' end as \""._("etat_recup_contrainte")."\"", 'sig_elyx.terrain_references_cadastrales_archive as "'._("terrain_references_cadastrales_archive").'"', ); // $champNonAffiche = array( 'sig_elyx.message_verif_parcelle as "'._("message_verif_parcelle").'"', 'sig_elyx.message_calcul_emprise as "'._("message_calcul_emprise").'"', 'sig_elyx.message_dessin_emprise as "'._("message_dessin_emprise").'"', 'sig_elyx.message_calcul_centroide as "'._("message_calcul_centroide").'"', 'sig_elyx.message_recup_contrainte as "'._("message_recup_contrainte").'"', ); // $champRecherche = array( 'sig_elyx.sig_elyx as "'._("sig_elyx").'"', 'dossier.annee as "'._("dossier").'"', 'sig_elyx.terrain_references_cadastrales_archive as "'._("terrain_references_cadastrales_archive").'"', ); $tri="ORDER BY dossier.annee ASC NULLS LAST"; $edition="sig_elyx"; /** * 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 (sig_elyx.dossier = '".$idx."') "; } ?>