getMessage ()); else { if ($DEBUG == 1) echo "La base ".$dsn ['database']." est connectée.
"; $res = $db -> query ($sql_collectivite); if (DB :: isError ($res)) die ($res -> getMessage ()." Erreur ".$sql_collectivite); else while ($row =& $res -> fetchRow ()) { $ville = $row [0]; $logo = $row [1]; } $res -> free (); $sql = "SELECT profil FROM droit WHERE droit = '".$obj."'"; $droit = $db -> getOne ($sql); echo ""; echo ""; include("../dyn/entete.inc"); echo ""; $tmp = $ico; if (file_exists ("../dyn/custom/img/".$tmp.'"')) $ico = "../dyn/custom/img/".$tmp; else $ico = "../img/".$tmp; // icone entête if (ereg ("->", $ent)) if (file_exists ("../dyn/custom/img/fleche_droite.png")) $ent = str_replace ("->", "", $ent); else $ent = str_replace ("->", "", $ent); // HTML echo "
"; echo ""; echo "
".$ent."
"; echo ""; echo "
"; echo "Aide"; if (file_exists ("../dyn/custom/img/ico_aide.png")) echo "Aide"; else echo "Aide"; echo "
"; echo "
"; ?> "; if ($_SESSION ['profil'] >= $droit) { echo " Toutes les elections

"; echo "Transfert prefecture bureau

"; echo " Elections Municipales

"; echo "Transfert prefecture bureau
"; echo "Transfert prefecture repartition des sieges
"; } else echo "Droits insuffisants ou reconnectez-vous."; echo ""; } include ("../dyn/menu.inc"); echo ""; echo ""; ?>