2021-10-14 17:58:21 +02:00
|
|
|
<?php
|
2022-09-21 14:47:18 +02:00
|
|
|
|
2021-10-14 17:58:21 +02:00
|
|
|
require_once 'session_init.php';
|
|
|
|
require_once 'config.inc.php';
|
|
|
|
require_once 'db.class.php';
|
2022-09-14 13:05:25 +02:00
|
|
|
require_once 'entete.php';
|
2021-10-22 20:12:02 +02:00
|
|
|
require_once 'fonctions.inc.php';
|
|
|
|
print '<script type="text/javascript">
|
|
|
|
function show(object, idVote)
|
|
|
|
{
|
|
|
|
if (document.getElementById(object+idVote).style.display === "none")
|
|
|
|
{
|
|
|
|
document.getElementById(object+idVote).style.display = "block";
|
|
|
|
document.getElementById("button"+idVote).innerText = "Cacher la liste des votants"
|
|
|
|
}else
|
|
|
|
{
|
|
|
|
document.getElementById(object+idVote).style.display = "none";
|
|
|
|
document.getElementById("button"+idVote).innerText = "Voir la liste des votants"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>';
|
2021-10-14 17:58:21 +02:00
|
|
|
|
2022-09-14 13:05:25 +02:00
|
|
|
$db = new db();
|
2022-10-09 14:22:16 +02:00
|
|
|
$idVotation = getpost("id");
|
2022-09-19 12:04:33 +02:00
|
|
|
|
2022-09-14 13:05:25 +02:00
|
|
|
print(' <br><br>
|
2021-10-14 17:58:21 +02:00
|
|
|
<!-- lalis Grid Section -->
|
|
|
|
|
|
|
|
<section id="content">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2022-09-14 13:05:25 +02:00
|
|
|
<div class="col-lg-12 text-center"><h3>LISTE DES VOTATIONS</h3>');
|
2022-09-19 12:04:33 +02:00
|
|
|
|
2022-10-09 14:22:16 +02:00
|
|
|
if (empty($idVotation))
|
2022-09-14 13:05:25 +02:00
|
|
|
{
|
|
|
|
choixVotation('/vote.resultat.php');
|
|
|
|
}else
|
|
|
|
{
|
|
|
|
print('
|
2021-10-14 17:58:21 +02:00
|
|
|
<h3>VOTE</h3>
|
|
|
|
<h4>');
|
2022-10-19 15:51:41 +02:00
|
|
|
$db->resultats($idVotation);
|
|
|
|
print (' <div>
|
2021-10-14 17:58:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>');
|
|
|
|
|
|
|
|
}
|
2022-09-19 12:04:33 +02:00
|
|
|
$db->close();
|
2021-10-14 17:58:21 +02:00
|
|
|
|
|
|
|
require_once 'footer.html';
|
|
|
|
?>
|