'."\n";
echo '
'. _("Your poll aim is to make a choice between different subjects.") . '
' . _("Enter the subjects to vote for:") .'
'."\n";
echo '
'."\n";
//focus javascript sur premiere case
echo ''."\n";
//ajout de cases supplementaires
echo '
'."\n";
//echo '
'."\n";
if (!isset($_POST["fin_sondage_autre_x"])) {
echo '
';
echo '
';
}
//test de remplissage des cases
$testremplissage = '';
for ($i=0;$i<$_SESSION["nbrecases"];$i++) {
if (isset($_POST["choix"]) && issetAndNoEmpty($i, $_POST["choix"])) {
$testremplissage="ok";
}
}
//message d'erreur si aucun champ renseigné
if ($testremplissage != "ok" && (isset($_POST["fin_sondage_autre"]) || isset($_POST["fin_sondage_autre_x"]))) {
print "
" . _("Enter at least one choice") . "
"."\n";
$erreur = true;
}
//message d'erreur si mauvaise date
if ($testdate === false) {
print "
" . _("Date must be have the format DD/MM/YYYY") . "
"."\n";
}
if ($erreur_injection) {
print "
" . _("Characters \" < and > are not permitted") . "
\n";
}
if ((isset($_POST["fin_sondage_autre"]) || isset($_POST["fin_sondage_autre_x"])) && !$erreur && !$erreur_injection) {
//demande de la date de fin du sondage
echo '
'."\n";
echo '
'. _("Your poll will be automatically removed after 6 months."). '
' . _("You can fix another removal date for it.") .'
'."\n";
echo '
:
'. _("(DD/MM/YYYY)") .''."\n";
echo '
'."\n";
echo '
'."\n";
echo '
'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll.").'
'. _("Then, you will receive quickly an email contening the link to your poll for sending it to the voters.").'
'."\n";
echo '
'."\n";
//echo '
'."\n";
echo '
';
echo '
';
}
//fin du formulaire et bandeau de pied
echo ''."\n";
echo '
'."\n";
echo '
'."\n";
//bandeau de pied
bandeau_pied_mobile();
echo ''."\n";
echo '