debug
This commit is contained in:
parent
f2fffd28e9
commit
f70d560cbc
@ -109,13 +109,13 @@ function votesForm($path, $libelle = "", $method = 0)
|
||||
}
|
||||
|
||||
//TODO vérification du formulaire en javascript
|
||||
print('<form method="get" action="' . $path . '">');
|
||||
print('<form method="get" action="' . $path . '">' . EOL);
|
||||
print('<label for="libelle">' . _("Libellé du vote") .'</label><br><input type="text" id="libelle" name="libelle" value="'. $libelle . '">') . EOLH;
|
||||
print('<label for="method">' . _("Méthode de vote") . '</label><br>
|
||||
<input type="select" id="method" name="method" value="'. $method . '">') . EOLH;
|
||||
if ($method == 0)
|
||||
{
|
||||
print('<option value ="">' . _("Choisissez une option") . '<option>');
|
||||
print('<option value ="">' . _("Choisissez une option") . '<option>') . EOL;
|
||||
}
|
||||
|
||||
foreach ($methods as $value)
|
||||
@ -123,15 +123,16 @@ function votesForm($path, $libelle = "", $method = 0)
|
||||
$id = $value["id"];
|
||||
if ($id == $method)
|
||||
{
|
||||
print('<option value ="' . $id . '" selected>' . $value["libelle"] . '<option>');
|
||||
print('<option value ="' . $id . '" selected>' . $value["libelle"] . '<option>' . EOL);
|
||||
}else
|
||||
{
|
||||
print('<option value ="' . $id . '">' . $value["libelle"] . '<option>');
|
||||
print('<option value ="' . $id . '">' . $value["libelle"] . '<option>' . EOL);
|
||||
}
|
||||
}
|
||||
|
||||
print('<input type="submit" formaction="index.php" value="' . _("Annuler") . '">') . EOLH;
|
||||
print('<input type="submit" value="' . _("Envoyer") . '">') . EOLH;
|
||||
print('</form') . EOL;
|
||||
}
|
||||
|
||||
function envoiMail($destinataire, $sujet, $text, $html=false, $cc='', $bcc='')
|
||||
|
Reference in New Issue
Block a user