"._("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)){
if($idx != ']')
if (trim($idx!=''))
$ent = $ent."-> ".$idx." ";
}
if(isset($idz) ){
if (trim($idz!=''))
$ent = $ent." ".strtoupper($idz)." ";
}
$table=DB_PREFIXE."om_widget";
$champAffiche=array(
'om_widget as "'._("om_widget").'"',
'om_collectivite as "'._("om_collectivite").'"',
'libelle as "'._("libelle").'"',
'lien as "'._("lien").'"',
'om_profil as "'._("om_profil").'"'
);
$champNonAffiche=array(
'texte as "'._("texte").'"'
);
$champRecherche=array(
'libelle as "'._("libelle").'"',
'lien as "'._("lien").'"',
'om_profil as "'._("om_profil").'"'
);
$tri="";
$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');
?>