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

54 lines
1.1 KiB
PHP
Raw Normal View History

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';
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();
$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
if (empty($idVotation))
2022-09-14 13:05:25 +02:00
{
2023-03-16 14:54:43 +01:00
choixVotation('/vote/vote.resultat.php');
2022-09-14 13:05:25 +02:00
}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';
?>