function afficher_administration_miss($annee, $genre, $type) { afficher_liste_miss($annee, $genre, $type, true); }
function init_miss($ANNEE_MISS, $GENRE_MISS, $TYPE_MISS, $is_vote = false) { // die('Votes non commencés'); $display_proposition = false; // $text .= " <h5><font color='red'>Déposition de candidature : <a href='/miss/miss.php?act_miss=enregistrement'>ICI</a></font><br>"; //afficher_titre_tableau("Élection Miss Mountyhall 2005", $text." ".afficher_regles_candidature()); if ($is_vote) { afficher_titre_tableau('Élection de Miss Mountyhall 2005', afficher_regles_votes()); } if ($_POST[id_troll_vote] != "" && $is_vote) { if (verif_nombre_vote_troll_db($_POST[id_troll_vote], $ANNEE_MISS, $GENRE_MISS, $TYPE_MISS)) { afficher_titre_tableau("Vous avez déjà voté !"); } else { if (verif_identite_troll($_POST[id_troll_vote], $_POST[pass_troll_vote])) { if (!enregistre_vote_db($_POST[id_troll_vote], $ANNEE_MISS, $_POST[id_miss_vote], $GENRE_MISS, $TYPE_MISS)) { afficher_titre_tableau("Erreur : Contactez Bodéga (49145) en copiant / collant ce que vous voyez. Merci"); } else { afficher_titre_tableau("Votre vote est bien pris en compte. Merci."); } } else { afficher_titre_tableau('Erreur dans la prise en compte du vote', "Si vous pensez que c'est pas normal, contactez Bodéga (49145)"); die(' '); } } } else { $display_proposition = true; } afficher_liste_miss($ANNEE_MISS, $GENRE_MISS, $TYPE_MISS); if ($display_proposition && $is_vote) { afficher_proposition_vote($ANNEE_MISS, $GENRE_MISS, $TYPE_MISS); } afficher_nombre_votes($ANNEE_MISS, $GENRE_MISS, $TYPE_MISS); }