ajout saisie de la liste des votes
This commit is contained in:
@ -17,12 +17,19 @@ print(' <div class="row">
|
||||
<h3>Nouvelle votation</h3>
|
||||
<h4>');
|
||||
|
||||
if (array_key_exists("titre", $_GET))
|
||||
$titre = getpost("titre");
|
||||
$libelle = getpost("libelle");
|
||||
$dateDebut = getpost("dateDebut");
|
||||
$dateFin = getpost("dateFin");
|
||||
|
||||
if ($titre !== null and $libelle!== null and $dateDebut!== null and $dateFin !== null)
|
||||
{
|
||||
var_dump($_get);
|
||||
$db = new db();
|
||||
$query = "INSERT INTO liste_votations ('titre', 'libelle', 'status', 'dateDebut', 'dateFin') VALUES('" . $titre . "', '" . $libelle . "', '0', '" . $dateDebut . "', '" . $dateFin . "')"; // clotûre
|
||||
$db->query($query);
|
||||
}else
|
||||
{
|
||||
votationForm($path);
|
||||
votationForm($path, $titre, $libelle, $dateDebut, $dateFin);
|
||||
}
|
||||
|
||||
print(' </div>
|
||||
|
Reference in New Issue
Block a user