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