Election", "saisie_bureau", "saisie", "ico_saisie.png" ); } // $ent = "-> Election"; $erreur = false; if (!isset ($_SESSION['election']['election']) or $_SESSION['election']['election'] == NULL) { $erreur = true; $message = "Vous ne travaillez sur aucune election !"; } else { $ent .= " -> ".$_SESSION['election']['date']; $ent .= " -> ".$_SESSION['election']['libelle']; } // $f->setTitle ($ent); $f->setFlag (NULL); $f->show (); // if ($erreur) { echo $message; die (); } // Ouverture du conteneur spécifique de la page echo "\n\t
\n\n"; // echo "

"; echo "Saisie"; echo "

\n"; // $etats = array(); $sql_etats = "select election, bureau, etat from resultat "; $sql_etats .= "where election like '".$_SESSION['election']['election']."%'"; $res_etats = $f->db->query ($sql_etats); $f->databaseError ($res_etats); while ($row_etats =& $res_etats->fetchRow (DB_FETCHMODE_ASSOC)) { // if (!isset ($etats [$row_etats['election']])) { $etats [$row_etats['election']] = array (); } // $etats [$row_etats['election']][$row_etats['bureau']] = $row_etats['etat']; } $res_etats->free (); // $centaine1 = false; if (isset ($etats [$_SESSION['election']['election']."C"]) and $f->hasRight ("saisie-centaine1")) { $centaine1 = true; } // $centaine2 = false; if (isset ($etats [$_SESSION['election']['election']."D"]) and $f->hasRight ("saisie-centaine2")) { $centaine2 = true; } // $definitifs = false; if (isset ($etats [$_SESSION['election']['election']]) and $f->hasRight ("saisie-definitifs")) { $definitifs = true; } // echo "\n"; // $odd = true; foreach ($_SESSION['election']['bureaux'] as $key => $bureau) { // HEAD (repete toutes les 10 lignes) if ($key % 10 == 0) { echo ""; echo ""; echo ""; if ($centaine1) echo ""; if ($centaine2) echo ""; if ($definitifs) echo ""; echo "\n"; } // echo ""; // echo ""; echo ""; // if ($centaine1) { echo ""; } // if ($centaine2) { echo ""; } // if ($definitifs) { echo ""; } // echo "\n"; // $odd = !$odd; } echo "\n"; echo "
NoBureau de vote1ere centaine2eme centaineDefinitifs
"; echo $bureau['code']; echo ""; echo $bureau['lib']; echo ""; echo ""; echo $etats[$_SESSION['election']['election']."C"][$bureau['code']]; echo ""; echo ""; echo ""; echo $etats[$_SESSION['election']['election']."D"][$bureau['code']]; echo ""; echo ""; echo ""; echo $etats[$_SESSION['election']['election']][$bureau['code']]; echo ""; echo "
\n"; // Fermeture du conteneur spécifique de la page echo "\n\t
\n"; ?>