Your IP : 216.73.217.64
<?php
//$Id: om_logo.inc.php 2381 2013-06-11 10:37:35Z fmichon $
//gen openMairie le 08/03/2013 20:41
$DEBUG=0;
$serie=15;
$ico="../img/ico_application.png";
$ent = _("parametrage")." -> "._("om_logo");
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_logo
LEFT JOIN ".DB_PREFIXE."om_collectivite
ON om_logo.om_collectivite=om_collectivite.om_collectivite ";
// SELECT
$champAffiche = array(
'om_logo.om_logo as "'._("om_logo").'"',
'om_logo.id as "'._("id").'"',
'om_logo.libelle as "'._("libelle").'"',
'om_logo.description as "'._("description").'"',
'om_logo.fichier as "'._("fichier").'"',
'om_logo.resolution as "'._("resolution").'"',
"case om_logo.actif when 't' then 'Oui' else 'Non' end as \""._("actif")."\"",
);
//
if ($_SESSION['niveau'] == '2') {
array_push($champAffiche, "om_collectivite.libelle as \""._("collectivite")."\"");
}
//
$champNonAffiche = array(
'om_logo.om_collectivite as "'._("om_collectivite").'"',
);
//
$champRecherche = array(
'om_logo.om_logo as "'._("om_logo").'"',
'om_logo.id as "'._("id").'"',
'om_logo.libelle as "'._("libelle").'"',
'om_logo.description as "'._("description").'"',
'om_logo.fichier as "'._("fichier").'"',
'om_logo.resolution as "'._("resolution").'"',
);
//
if ($_SESSION['niveau'] == '2') {
array_push($champRecherche, "om_collectivite.libelle as \""._("collectivite")."\"");
}
$tri="ORDER BY om_logo.libelle ASC NULLS LAST";
$edition="om_logo";
if ($_SESSION['niveau']== '2')
$selection='';
else {
$selection=" where om_logo.om_collectivite = '".$_SESSION['collectivite']."'";
}
if ($retourformulaire== 'om_collectivite') {
if ($_SESSION['niveau']== '2'){
$selection=" WHERE (om_logo.om_collectivite ='".$idx."')";
}else{
$selection=" WHERE (om_logo.om_collectivite ='".$idx."') AND om_logo.om_collectivite = '".$_SESSION['collectivite']."'";
}
}
?>