new function candidatsForm()
This commit is contained in:
parent
2bd57f007f
commit
6383cedf89
@ -154,6 +154,17 @@ function votesForm($path, $libelle = "", $method = 0)
|
|||||||
$db->close();
|
$db->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function candidatsForm($path, $idVotation, $idVote)
|
||||||
|
{
|
||||||
|
//TODO vérification du formulaire en javascript
|
||||||
|
print('<form method="get" action="' . $path . '">');
|
||||||
|
print('<input type="hidden" name="idVotation" value="' . $idVotation . '">');
|
||||||
|
print('<input type="hidden" name="idVote" value="' . $idVote . '">');
|
||||||
|
print('<label for="candidat">' . _("Candidat") .'</label><br><input type="text" id="candidat" name="candidat" value=""/>') . EOLH;
|
||||||
|
print('<input type="submit" formaction="index.php" value="' . _("Annuler") . '"/>') . EOLH;
|
||||||
|
print('<input type="submit" value="' . _("Envoyer") . '"/>') . EOLH;
|
||||||
|
}
|
||||||
|
|
||||||
function envoiMail($destinataire, $sujet, $text, $html=false, $cc='', $bcc='')
|
function envoiMail($destinataire, $sujet, $text, $html=false, $cc='', $bcc='')
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user