"._("emplacement"); 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."emplacement LEFT JOIN ".DB_PREFIXE."plans ON emplacement.plans=plans.plans LEFT JOIN ".DB_PREFIXE."sepulture_type ON emplacement.sepulturetype=sepulture_type.sepulture_type LEFT JOIN ".DB_PREFIXE."voie ON emplacement.voie=voie.voie "; // SELECT $champAffiche = array( 'emplacement.emplacement as "'._("emplacement").'"', 'emplacement.nature as "'._("nature").'"', 'emplacement.numero as "'._("numero").'"', 'emplacement.complement as "'._("complement").'"', 'voie.zone as "'._("voie").'"', 'emplacement.numerocadastre as "'._("numerocadastre").'"', 'emplacement.famille as "'._("famille").'"', 'emplacement.numeroacte as "'._("numeroacte").'"', 'to_char(emplacement.datevente ,\'DD/MM/YYYY\') as "'._("datevente").'"', 'emplacement.terme as "'._("terme").'"', 'emplacement.duree as "'._("duree").'"', 'to_char(emplacement.dateterme ,\'DD/MM/YYYY\') as "'._("dateterme").'"', 'emplacement.nombreplace as "'._("nombreplace").'"', 'emplacement.placeoccupe as "'._("placeoccupe").'"', 'emplacement.superficie as "'._("superficie").'"', 'emplacement.placeconstat as "'._("placeconstat").'"', 'to_char(emplacement.dateconstat ,\'DD/MM/YYYY\') as "'._("dateconstat").'"', 'plans.planslib as "'._("plans").'"', 'emplacement.positionx as "'._("positionx").'"', 'emplacement.positiony as "'._("positiony").'"', 'emplacement.photo as "'._("photo").'"', 'emplacement.libre as "'._("libre").'"', 'sepulture_type.libelle as "'._("sepulturetype").'"', 'to_char(emplacement.daterenouvellement ,\'DD/MM/YYYY\') as "'._("daterenouvellement").'"', 'emplacement.renouvellementconcession as "'._("renouvellementconcession").'"', 'emplacement.typeconcession as "'._("typeconcession").'"', 'emplacement.temp1 as "'._("temp1").'"', 'emplacement.temp2 as "'._("temp2").'"', 'emplacement.temp3 as "'._("temp3").'"', 'emplacement.temp4 as "'._("temp4").'"', 'emplacement.temp5 as "'._("temp5").'"', 'emplacement.videsanitaire as "'._("videsanitaire").'"', 'emplacement.semelle as "'._("semelle").'"', 'emplacement.etatsemelle as "'._("etatsemelle").'"', 'emplacement.monument as "'._("monument").'"', 'emplacement.etatmonument as "'._("etatmonument").'"', 'emplacement.largeur as "'._("largeur").'"', 'emplacement.profondeur as "'._("profondeur").'"', 'emplacement.abandon as "'._("abandon").'"', 'to_char(emplacement.date_abandon ,\'DD/MM/YYYY\') as "'._("date_abandon").'"', 'to_char(emplacement.dateacte ,\'DD/MM/YYYY\') as "'._("dateacte").'"', 'emplacement.geom as "'._("geom").'"', ); // $champNonAffiche = array( 'emplacement.observation as "'._("observation").'"', ); // $champRecherche = array( 'emplacement.emplacement as "'._("emplacement").'"', 'emplacement.nature as "'._("nature").'"', 'emplacement.numero as "'._("numero").'"', 'emplacement.complement as "'._("complement").'"', 'voie.zone as "'._("voie").'"', 'emplacement.numerocadastre as "'._("numerocadastre").'"', 'emplacement.famille as "'._("famille").'"', 'emplacement.numeroacte as "'._("numeroacte").'"', 'emplacement.terme as "'._("terme").'"', 'emplacement.duree as "'._("duree").'"', 'emplacement.nombreplace as "'._("nombreplace").'"', 'emplacement.placeoccupe as "'._("placeoccupe").'"', 'emplacement.superficie as "'._("superficie").'"', 'emplacement.placeconstat as "'._("placeconstat").'"', 'plans.planslib as "'._("plans").'"', 'emplacement.positionx as "'._("positionx").'"', 'emplacement.positiony as "'._("positiony").'"', 'emplacement.photo as "'._("photo").'"', 'emplacement.libre as "'._("libre").'"', 'sepulture_type.libelle as "'._("sepulturetype").'"', 'emplacement.renouvellementconcession as "'._("renouvellementconcession").'"', 'emplacement.typeconcession as "'._("typeconcession").'"', 'emplacement.temp1 as "'._("temp1").'"', 'emplacement.temp2 as "'._("temp2").'"', 'emplacement.temp3 as "'._("temp3").'"', 'emplacement.temp4 as "'._("temp4").'"', 'emplacement.temp5 as "'._("temp5").'"', 'emplacement.videsanitaire as "'._("videsanitaire").'"', 'emplacement.semelle as "'._("semelle").'"', 'emplacement.etatsemelle as "'._("etatsemelle").'"', 'emplacement.monument as "'._("monument").'"', 'emplacement.etatmonument as "'._("etatmonument").'"', 'emplacement.largeur as "'._("largeur").'"', 'emplacement.profondeur as "'._("profondeur").'"', 'emplacement.abandon as "'._("abandon").'"', ); $tri="ORDER BY emplacement.nature ASC NULLS LAST"; $edition="emplacement"; $selection=''; if ($retourformulaire== 'plans') { $selection=" WHERE (emplacement.plans ='".$idx."')"; } if ($retourformulaire== 'sepulture_type') { $selection=" WHERE (emplacement.sepulturetype ='".$idx."')"; } if ($retourformulaire== 'voie') { $selection=" WHERE (emplacement.voie ='".$idx."')"; } $sousformulaire = array( 'autorisation', 'courrier', 'defunt', 'dossier', 'operation', 'travaux',); ?>