1
0
This commit is contained in:
Daniel Tartavel 2022-09-25 23:21:14 +02:00
parent 09f5fa201e
commit 8c19510aa5
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ require_once 'fonctions.inc.php';
$path = $_SERVER["PHP_SELF"]; $path = $_SERVER["PHP_SELF"];
$db = new db(); $db = new db();
$idVotation = getpost("id"); $idVotation = getpost("idVotation");
$method = getpost("method"); $method = getpost("method");
$libelle = getpost("libelle"); $libelle = getpost("libelle");

View File

@ -57,7 +57,7 @@ function choixVote($path, $idVotation, $confirm=false)
print '<input type="hidden" name="idVotation" value="' . $idVotation . '"/>'; print '<input type="hidden" name="idVotation" value="' . $idVotation . '"/>';
foreach($votes as $key => $value ) foreach($votes as $key => $value )
{ {
print '<input type="radio" name="idVote" value="' . $value["id"] . '"/> ' . $value["candidat"] . '<br>'; print '<input type="radio" name="idVote" value="' . $value["id"] . '"/> ' . $value["libelle"] . '<br>';
} }
// TODO confirmation du choix par javascript si $confirm = true // TODO confirmation du choix par javascript si $confirm = true
@ -88,7 +88,7 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
print '<input type="hidden" name="action" value="' . $action . '"/>'; print '<input type="hidden" name="action" value="' . $action . '"/>';
foreach($votations as $key => $value ) foreach($votations as $key => $value )
{ {
print '<input type="radio" name="id" value="' . $value["id"] . '"/> ' . $value["titre"] . '&nbsp;:' . $value["libelle"] . '<br>'; print '<input type="radio" name="idVotation" value="' . $value["id"] . '"/> ' . $value["titre"] . '&nbsp;:' . $value["libelle"] . '<br>';
} }
// TODO confirmation du choix par javascript si $confirm = true // TODO confirmation du choix par javascript si $confirm = true