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
No | "; echo "Bureau de vote | "; if ($centaine1) echo "1ere centaine | "; if ($centaine2) echo "2eme centaine | "; if ($definitifs) { echo "Definitifs | "; if ($election_option_publication === '1') { echo "Publication | "; } } echo "
---|---|---|---|---|---|
"; echo $bureau['code']; echo " | "; echo ""; echo $bureau['lib']; echo " | "; // if ($centaine1) { echo ""; echo ""; echo $etats[$_SESSION['election']['election']."C"][$bureau['code']]; echo ""; echo " | "; } // if ($centaine2) { echo ""; echo ""; echo $etats[$_SESSION['election']['election']."D"][$bureau['code']]; echo ""; echo " | "; } // if ($definitifs) { echo ""; echo ""; echo $etats[$_SESSION['election']['election']][$bureau['code']]; echo ""; echo " | "; if ($election_option_publication === '1') { $publication = array(); $sql_publication = "select election, bureau, etat, publication from resultat "; $sql_publication .= "where election = '" . $_SESSION['election']['election'] . "'"; $sql_publication .= "AND bureau = '" . $bureau['code'] . "'"; $res_publication = $f->db->query ($sql_publication); $f->databaseError ($res_publication); while ($row_publication =& $res_publication->fetchRow (DB_FETCHMODE_ASSOC)) { // if (isset($generation_bureau_erreur) === true and $generation_bureau_erreur === false) { if (preg_match ("@nonarrive@", $row_publication['etat'])) { $publication[$row_publication['election']][$row_publication['bureau']]['arrive'] = '0'; } elseif (preg_match ("@erreur@", $row_publication['etat'])) { $publication[$row_publication['election']][$row_publication['bureau']]['arrive'] = '0'; } else { $publication[$row_publication['election']][$row_publication['bureau']]['arrive'] = '1'; } } else { if (!preg_match ("@nonarrive@", $row_publication['etat'])) { $publication[$row_publication['election']][$row_publication['bureau']]['arrive'] = '1'; } else { $publication[$row_publication['election']][$row_publication['bureau']]['arrive'] = '0'; } } $publication[$row_publication['election']][$row_publication['bureau']]['publication'] = $row_publication['publication']; } // echo ""; $is_checked = ""; $is_disabled = ""; $election = $_SESSION['election']['election']; // Si le bureau est publié if (isset($publication[$election][$bureau['code']]['publication']) === true && $publication[$election][$bureau['code']]['publication'] === '1') { // $is_checked = "checked"; } // Si le bureau n'est pas publiable/dépubliable if (isset($publication[$election][$bureau['code']]['arrive']) === false || $publication[$election][$bureau['code']]['arrive'] === '0' || $f->hasRight ("publication") === false) { // $is_disabled = "disabled"; } echo ""; echo " | "; } } // echo "