From 8ef9fcc2888e6f046d162d5ae7c3a675005c2e62 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 19 Oct 2022 15:52:46 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20de=20l'edition=20des=20r=C3=A9sultats?= =?UTF-8?q?=20de=20la=20votation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/resultats_votation.php | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 gestion/resultats_votation.php diff --git a/gestion/resultats_votation.php b/gestion/resultats_votation.php new file mode 100644 index 0000000..11951ea --- /dev/null +++ b/gestion/resultats_votation.php @@ -0,0 +1,46 @@ +
+ + +
+
'); +print('
+
+

Nouvelle votation

+

'); +if (empty($idVotation)) +{ + if (array_key_exists("idVotation", $_SESSION)) + { + if (!empty($_SESSION["idVotation"])) + { + $idVotation = $_SESSION["idVotation"]; + $votationName = $db->queryVotationName($idVotation); + } + } +}else +{ + $db = new db(); + $db->resultats(); + $listeVotants = $db->liste_votants(); + foreach($listeVotants as $votant) + { + print $votant["prenom"] . " " . votant["nom"] . EOLH; + } +} +print('

+
+ +
+
'); +require_once("footer.html"); +?>