54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
require_once 'session_init.php';
|
|
require_once 'config.inc.php';
|
|
require_once 'db.class.php';
|
|
require_once 'entete.php';
|
|
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>';
|
|
|
|
$db = new db();
|
|
$idVotation = getpost("id");
|
|
|
|
print(' <br><br>
|
|
<!-- lalis Grid Section -->
|
|
|
|
<section id="content">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center"><h3>LISTE DES VOTATIONS</h3>');
|
|
|
|
if (empty($idVotation))
|
|
{
|
|
choixVotation('/vote/vote.resultat.php');
|
|
}else
|
|
{
|
|
print('
|
|
<h3>VOTE</h3>
|
|
<h4>');
|
|
$db->resultats($idVotation);
|
|
print (' <div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>');
|
|
|
|
}
|
|
$db->close();
|
|
|
|
require_once 'footer.html';
|
|
?>
|