"._("om_sig_wms"); 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."om_sig_wms LEFT JOIN ".DB_PREFIXE."om_collectivite ON om_sig_wms.om_collectivite=om_collectivite.om_collectivite "; // SELECT $champAffiche = array( 'om_sig_wms.om_sig_wms as "'._("om_sig_wms").'"', 'om_sig_wms.libelle as "'._("libelle").'"', 'om_sig_wms.id as "'._("id").'"', 'om_sig_wms.chemin as "'._("chemin").'"', 'om_sig_wms.couches as "'._("couches").'"', 'om_sig_wms.cache_type as "'._("cache_type").'"', 'om_sig_wms.cache_gfi_chemin as "'._("cache_gfi_chemin").'"', 'om_sig_wms.cache_gfi_couches as "'._("cache_gfi_couches").'"', ); // if ($_SESSION['niveau'] == '2') { array_push($champAffiche, "om_collectivite.libelle as \""._("collectivite")."\""); } // $champNonAffiche = array( 'om_sig_wms.om_collectivite as "'._("om_collectivite").'"', ); // $champRecherche = array( 'om_sig_wms.om_sig_wms as "'._("om_sig_wms").'"', 'om_sig_wms.libelle as "'._("libelle").'"', 'om_sig_wms.id as "'._("id").'"', 'om_sig_wms.chemin as "'._("chemin").'"', 'om_sig_wms.couches as "'._("couches").'"', 'om_sig_wms.cache_type as "'._("cache_type").'"', 'om_sig_wms.cache_gfi_chemin as "'._("cache_gfi_chemin").'"', 'om_sig_wms.cache_gfi_couches as "'._("cache_gfi_couches").'"', ); // if ($_SESSION['niveau'] == '2') { array_push($champRecherche, "om_collectivite.libelle as \""._("collectivite")."\""); } $tri="ORDER BY om_sig_wms.libelle ASC NULLS LAST"; $edition="om_sig_wms"; if ($_SESSION['niveau']== '2') $selection=''; else { $selection=" where om_sig_wms.om_collectivite = '".$_SESSION['collectivite']."'"; } if ($retourformulaire== 'om_collectivite') { if ($_SESSION['niveau']== '2'){ $selection=" WHERE (om_sig_wms.om_collectivite ='".$idx."')"; }else{ $selection=" WHERE (om_sig_wms.om_collectivite ='".$idx."') AND om_sig_wms.om_collectivite = '".$_SESSION['collectivite']."'"; } } $sousformulaire = array( 'om_sig_map_wms',); ?>