debug
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user