";
if (ereg ("->",$ent))
{
// * custom *
if (file_exists ("../dyn/custom/img/fleche_droite.png"))
$ent = str_replace("->", "
", $ent);
else
$ent = str_replace("->", "
", $ent);
//*
}
echo "
";
echo "
";
echo "
";
?>
";
// connexion
$db =& DB :: connect ($dsn, $db_option);
if (DB :: isError ($db))
die ($db -> getMessage ());
// variables collectivites
$res = $db -> query ($sql_collectivite);
if (DB :: isError ($res))
die ($res -> getMessage ()." erreur ".$sql_collectivite);
while ($row=& $res->fetchRow())
{
$ville = $row [0];
$logo = $row [1];
}
$res->free();
// variable droit
$sql = "select profil from droit where droit = '".$obj."'";
$droit = $db -> getOne ($sql);
// librairies utilisées
include ("../obj/export.class.php");
if (isset ($_GET ['step']))
$step = $_GET ['step'];
else
$step = 0;
if (isset ($_GET ['idx']))
$idx = $_GET ['idx'];
else
$idx = 0;
If ($_SESSION ['profil'] >= $droit)
{
if ($step == 0)
{
// élections disponibles
$sql = "select resultat.election, election_libelle from resultat inner join election on resultat.election = election.election group by election";
$res = $db -> query ($sql);
if (DB :: isError ($res))
die ($res -> getMessage ()." erreur ".$sql);
$elections = array ();
while ($row=& $res->fetchRow (DB_FETCHMODE_ASSOC))
array_push ($elections, $row);
echo "