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" } } '; $db = new db(); $idVotation = getpost("id"); print('

LISTE DES VOTATIONS

'); if (empty($idVotation)) { choixVotation('/vote/vote.resultat.php'); }else { print('

VOTE

'); $db->resultats($idVotation); print ('

'); } $db->close(); require_once 'footer.html'; ?>