ajout du nombre de votant, et correction bug de date
This commit is contained in:
@ -229,15 +229,19 @@ function listeAdherents()
|
||||
function listeVotants($idVotation, $idVote, $listeAdherents)
|
||||
{
|
||||
global $db;
|
||||
$nv = 0;
|
||||
$text = '';
|
||||
|
||||
$query = "SELECT DISTINCT idVotant FROM votes WHERE idVotation=" . $idVotation . ' AND idVote=' . $idVote;
|
||||
$result = $db->query($query);
|
||||
print (EOLH . '<div id="listeVotants' . $idVote . '" style="display: none; line-height: 0.8;">');
|
||||
|
||||
while ($idVotants = $db->result->fetch_assoc())
|
||||
{
|
||||
|
||||
print($listeAdherents[$idVotants['idVotant']] . EOLH);
|
||||
$nv++;
|
||||
$text .= $listeAdherents[$idVotants['idVotant']] . EOLH;
|
||||
}
|
||||
print('</div><button id="button' . $idVote . '" onclick="show(\'listeVotants\',\'' . $idVote . '\')">Voir la liste des votants</button>' . EOLH);
|
||||
print('Nombre de votants : ' . $nv . EOLH . '<div id="listeVotants' . $idVote . '" style="display: none; line-height: 0.8;">' . $text . '</div>');
|
||||
print('<button id="button' . $idVote . '" onclick="show(\'listeVotants\',\'' . $idVote . '\')">Voir la liste des votants</button>' . EOLH);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user