From f03c52813c232cb98616dc25644ba3fab342423a Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 16 Mar 2023 15:23:41 +0100 Subject: [PATCH] debug --- include/fonctions.inc.php | 10 ++++++---- index2.php | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/fonctions.inc.php b/include/fonctions.inc.php index f48d96c..fe13dfb 100644 --- a/include/fonctions.inc.php +++ b/include/fonctions.inc.php @@ -79,20 +79,22 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v $result = $db->query($query); $votations = $db->result->fetch_all(MYSQLI_ASSOC); - print ('
'); - print "
";
+	//print ('');
+	//print "
";
 	foreach($votations as $key => $value )
 	{
-		print ' ' . $value["titre"] . ' :' . $value["libelle"] . '
'; + //print ' ' . $value["titre"] . ' :' . $value["libelle"] . '
'; + print '' . $value["libelle"] . '
'; } // TODO confirmation du choix par javascript si $confirm = true - print '

+ /*print '

'; + */ $db->close(); } diff --git a/index2.php b/index2.php index 80c2afa..4102d18 100644 --- a/index2.php +++ b/index2.php @@ -22,9 +22,9 @@ print (""); foreach($votationsList as $votation) { print("
"); - print('' . $votation["libelle"] . ''); if ($votation["status"] == 1) { + print('' . $votation["libelle"] . ''); print(_("Cloturé")); }else {