ajout de la liste des votants lors de l'affichage des résultats
This commit is contained in:
@ -4,7 +4,22 @@ require_once 'session_init.php';
|
||||
require_once 'config.inc.php';
|
||||
require_once 'db.class.php';
|
||||
require_once 'entete.html';
|
||||
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>';
|
||||
$idVotation = $_GET["id"];
|
||||
$db = new db();
|
||||
|
||||
@ -34,6 +49,7 @@ if ( empty($idVotation))
|
||||
if ( time() < $votation['tf'] )
|
||||
{
|
||||
echo $votation["libelle"] . "</h4>";
|
||||
$listeAdherents = listeAdherents();
|
||||
print (' <hr class="star-primary">
|
||||
</div>
|
||||
</div>
|
||||
@ -77,8 +93,8 @@ if ( empty($idVotation))
|
||||
{
|
||||
print("<h5>Aucun candidat n'emporte le vote, car il y a plus de 50% de votes blancs.</h5>");
|
||||
}
|
||||
|
||||
print("</pre></div><br>");
|
||||
listeVotants($idVotation, $vote["id"], $listeAdherents);
|
||||
print("</pre></div><br>" . EOLH);
|
||||
}
|
||||
}else
|
||||
{
|
||||
|
Reference in New Issue
Block a user