erreur de syntax sur fin de balise
This commit is contained in:
parent
c9c503e3b3
commit
2d64ddfbcd
@ -25,7 +25,7 @@ if (empty($idVotation))
|
||||
choixVotation($path);
|
||||
}
|
||||
}
|
||||
|
||||
print("</h4>");
|
||||
votesForm($path);
|
||||
|
||||
print(' </div>
|
||||
|
@ -70,16 +70,16 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
|
||||
}
|
||||
print ('<form method="get" action="' . $path . '">');
|
||||
print "<pre>";
|
||||
print '<input type="hidden" name="action" value="' . $action . '">';
|
||||
print '<input type="hidden" name="action" value="' . $action . '"/>';
|
||||
foreach($votations as $key => $value )
|
||||
{
|
||||
print '<input type="radio" name="id" value="' . $value["id"] . '"> ' . $value["titre"] . ' :' . $value["libelle"] . '<br>';
|
||||
print '<input type="radio" name="id" value="' . $value["id"] . '"/> ' . $value["titre"] . ' :' . $value["libelle"] . '<br>';
|
||||
}
|
||||
// TODO confirmation du choix par javascript si $confirm = true
|
||||
|
||||
print '</pre><br>
|
||||
<div>
|
||||
<input type="submit" value="Envoyer">
|
||||
<input type="submit" value="Envoyer"/>
|
||||
</div>
|
||||
</form>';
|
||||
}
|
||||
@ -88,12 +88,12 @@ function votationForm($path, $titre="", $libelle="", $dateDebut="", $DateFin="",
|
||||
{
|
||||
//TODO vérification du formulaire en javascript
|
||||
print('<form method="get" action="' . $path . '">');
|
||||
print('<label for="titre">' . _("Titre") .'</label><br><input type="text" id="titre" name="titre" value="'. $titre . '">') . EOLH;
|
||||
print('<label for="libelle">' . _("Description") . '</label><br><input type="text" id="libelle" name="libelle" value="'. $libelle . '">') . EOLH;
|
||||
print('<label for="dateDebut">' . _("Date de début de la période de vote") . '</label><br><input type="date" id="dateDebut" name="dateDebut" value="'. $dateDebut . '">') . EOLH;
|
||||
print('<label for="dateFin">' . _("Date de fin de la période de vote") . '</label><br><input type="date" id="dateFin" name="dateFin" value="'. $dateFin . '">') . EOLH;
|
||||
print('<input type="submit" formaction="index.php" value="' . _("Annuler") . '">') . EOLH;
|
||||
print('<input type="submit" value="' . _("Envoyer") . '">') . EOLH;
|
||||
print('<label for="titre">' . _("Titre") .'</label><br><input type="text" id="titre" name="titre" value="'. $titre . '"/>') . EOLH;
|
||||
print('<label for="libelle">' . _("Description") . '</label><br><input type="text" id="libelle" name="libelle" value="'. $libelle . '"/>') . EOLH;
|
||||
print('<label for="dateDebut">' . _("Date de début de la période de vote") . '</label><br><input type="date" id="dateDebut" name="dateDebut" value="'. $dateDebut . '"/>') . EOLH;
|
||||
print('<label for="dateFin">' . _("Date de fin de la période de vote") . '</label><br><input type="date" id="dateFin" name="dateFin" value="'. $dateFin . '"/>') . EOLH;
|
||||
print('<input type="submit" formaction="index.php" value="' . _("Annuler") . '"/>') . EOLH;
|
||||
print('<input type="submit" value="' . _("Envoyer") . '"/>') . EOLH;
|
||||
}
|
||||
|
||||
function votesForm($path, $libelle = "", $method = 0)
|
||||
@ -110,7 +110,7 @@ function votesForm($path, $libelle = "", $method = 0)
|
||||
|
||||
//TODO vérification du formulaire en javascript
|
||||
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="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>
|
||||
<select id="method" name="method" value="'. $method . '">') . EOL;
|
||||
if ($method == 0)
|
||||
@ -130,8 +130,8 @@ function votesForm($path, $libelle = "", $method = 0)
|
||||
}
|
||||
}
|
||||
print("</select>"). EOLH;
|
||||
print('<input type="submit" formaction="index.php" value="' . _("Annuler") . '">') . EOL;
|
||||
print('<input type="submit" value="' . _("Envoyer") . '">') . EOL;
|
||||
print('<input type="submit" formaction="index.php" value="' . _("Annuler") . '"/>') . EOL;
|
||||
print('<input type="submit" value="' . _("Envoyer") . '"/>') . EOL;
|
||||
print('</form>') . EOL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user