debug
This commit is contained in:
parent
645a1089d5
commit
f03c52813c
@ -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 ('<form method="get" action="' . $path . '">');
|
||||
print "<pre>";
|
||||
//print ('<form method="get" action="' . $path . '">');
|
||||
//print "<pre>";
|
||||
foreach($votations as $key => $value )
|
||||
{
|
||||
print '<input type="radio" name="id" value="' . $value["id"] . '"/> ' . $value["titre"] . ' :' . $value["libelle"] . '<br>';
|
||||
//print '<input type="radio" name="id" value="' . $value["id"] . '"/> ' . $value["titre"] . ' :' . $value["libelle"] . '<br>';
|
||||
print '<a href="' . $path . '?id=' . $value["id"] . '>' . $value["libelle"] . '<br>';
|
||||
}
|
||||
// TODO confirmation du choix par javascript si $confirm = true
|
||||
|
||||
print '</pre><br>
|
||||
/*print '</pre><br>
|
||||
<div>
|
||||
<input type="submit" value="Envoyer"/>
|
||||
<input type="submit" formaction="index.php" value="' . _("Annuler") . '"/>
|
||||
</div>
|
||||
</form>';
|
||||
*/
|
||||
$db->close();
|
||||
}
|
||||
|
||||
|
@ -22,9 +22,9 @@ print ("<table>");
|
||||
foreach($votationsList as $votation)
|
||||
{
|
||||
print("<tr><td>");
|
||||
print('<a href="' . $vote_url . 'vote.resultat.php?v=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
||||
if ($votation["status"] == 1)
|
||||
{
|
||||
print('<a href="' . $vote_url . 'vote.resultat.php?id=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
||||
print(_("Cloturé"));
|
||||
}else
|
||||
{
|
||||
|
Reference in New Issue
Block a user