1
0
This commit is contained in:
Daniel Tartavel 2022-09-19 13:06:33 +02:00
parent e7a4ea6b25
commit 5f6a1e827b

View File

@ -5,17 +5,22 @@ require_once 'db.class.php';
require_once 'entete.php';
require_once 'fonctions.inc.php';
$db = new db();
print('<br><br>
<!-- lalis Grid Section -->
<section id="content">
<div class="container">') . EOL;
print(' <div class="row">
<div class="col-lg-12 text-center">
<h3>Nouveau vote</h3>');
<h3>Nouveau vote pour la votation : </h3>');
$path = $_SERVER["PHP_SELF"];
$idVotation = getpost("id");
$query = "SELECT libelle FROM liste_votations WHERE id='" . $idVotation . "'";
$db->query($query);
if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation))
{
$idVotation = $GLOBALS["idVotation"];
@ -33,13 +38,13 @@ if (empty($idVotation))
votesForm($path);
}else
{
$db = new db();
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
print($query);
//$db->query($query);
$db->close();
}
}
$db->close();
print(' </div>
</div>
</div>