1
0

new function candidatsForm()

This commit is contained in:
Daniel Tartavel 2022-09-26 10:45:12 +02:00
parent 2bd57f007f
commit 6383cedf89

View File

@ -154,6 +154,17 @@ function votesForm($path, $libelle = "", $method = 0)
$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='')
{