1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/vote.resultat.php
2023-03-16 14:54:43 +01:00

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';
?>