-
Nouveau vote pour la votation');
+
');
+$votes = queryVotes($db, $idVotation);
+foreach ($votes as $value)
+{
+ print ($value[0] . " " . $value[1] . EOLH);
+}
+echo EOLH . EOLH;
+
+print('
Nouveau vote pour la votation');
if (empty($idVotation))
{
@@ -53,9 +68,9 @@ if (empty($idVotation))
votesForm($path);
}else
{
- $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
- print($query);
- //$db->query($query);
+ $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
+ print($query);
+ $db->query($query);
}
}
$db->close();
diff --git a/include/fonctions.inc.php b/include/fonctions.inc.php
index 205ce81..15ab3bc 100644
--- a/include/fonctions.inc.php
+++ b/include/fonctions.inc.php
@@ -125,7 +125,7 @@ function votesForm($path, $libelle = "", $method = 0)
foreach ($methods as $value)
{
$id = $value["id"];
- if ($id == $method)/saisieVotes.php
+ if ($id == $method)
{
print('' . EOL);
}else