debug
This commit is contained in:
parent
d2a0207a20
commit
5879dd5add
@ -107,7 +107,7 @@ function votesForm($path, $libelle = "", $method = 0)
|
||||
print(_("L'ID de la méthode demandée n'est pas bonne " . __file__ . __LINE__));
|
||||
log_error(_("L'ID de la méthode demandée n'est pas bonne " . __file__ . __LINE__), true, true);
|
||||
}
|
||||
var_dump($methods);
|
||||
|
||||
//TODO vérification du formulaire en javascript
|
||||
print('<form method="get" action="' . $path . '">');
|
||||
print('<label for="libelle">' . _("Libellé du vote") .'</label><br><input type="text" id="libelle" name="libelle" value="'. $libelle . '">') . EOLH;
|
||||
@ -118,9 +118,10 @@ function votesForm($path, $libelle = "", $method = 0)
|
||||
print('<option value ="">' . _("Choisissez une option") . '<option>');
|
||||
}
|
||||
|
||||
foreach ($methods as $id => $value)
|
||||
foreach ($methods as $value)
|
||||
{
|
||||
if ($id == $value)
|
||||
$id = $value["id"];
|
||||
if ($id == $method)
|
||||
{
|
||||
print('<option value ="' . $id . '" selected>' . $value . '<option>');
|
||||
}else
|
||||
|
Reference in New Issue
Block a user