From 121727693220a85fd64753bd2292a77a9d9f1a18 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 19 Oct 2022 16:28:36 +0200 Subject: [PATCH] debu --- gestion/index2.php | 42 ++++++++++++++++++++++++++++++++++++++++++ index2.php | 6 +++--- vote.form.php | 11 ++++++++++- 3 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 gestion/index2.php diff --git a/gestion/index2.php b/gestion/index2.php new file mode 100644 index 0000000..86b710d --- /dev/null +++ b/gestion/index2.php @@ -0,0 +1,42 @@ +
+ + +
+
+
+
+

Gestion des votes

+
+
+
+ '); +$votationsList = $db->queryVotationList(); +print (""); +foreach($votationsList as $votation) +{ + print("'); +} +print('
"); + print('' . $votation["libelle"] . ''); + if ($votation["status"] == 1) + { + print(_("Cloturé")); + }else + { + print(_("En cours")); + } + print('
'); +print(' +
+
+
'); + +require_once 'footer.html'; +?> diff --git a/index2.php b/index2.php index f0a6434..50aade9 100644 --- a/index2.php +++ b/index2.php @@ -1,5 +1,5 @@ "); foreach($votationsList as $votation) { print(""); - print('' . $votation["libelle"] . ''); + print('' . $votation["libelle"] . ''); if ($votation["status"] == 1) { print(_("Cloturé")); @@ -38,5 +38,5 @@ print(' '); -require_once './footer.html'; +require_once 'footer.html'; ?> diff --git a/vote.form.php b/vote.form.php index 6bce81c..6782ed0 100644 --- a/vote.form.php +++ b/vote.form.php @@ -87,7 +87,16 @@ if ($dolibarr->result->num_rows == 0) } }else { - print " Bonjour " . $votant['firstname'] . " " . $votant['lastname'] . ',' . EOLH . EOLH . "Le vote ne sera ouvert qu'à partir du " . formattedate('fr', $votation['td'] , "Europe/Paris") . " et jusqu'au " . formattedate('fr', $votation['df'] , "Europe/Paris") . '.' . EOLH . "Si vous pensez que ceci est une erreur, veuillez prendre contact avec les responsables de l'association."; + print(' +

VOTE

+

'); + $db->resultats($idVotation); + print ('
+
+ + + '); + //print " Bonjour " . $votant['firstname'] . " " . $votant['lastname'] . ',

' . EOLH . EOLH . "Le vote n'est ouvert que du " . formattedate('fr', $votation['td'] , "Europe/Paris") . " au " . formattedate('fr', $votation['df'] , "Europe/Paris") . '.' . EOLH . "Si vous pensez que ceci est une erreur, veuillez prendre contact avec les responsables de l'association."; } } $db->close();