adding list of votes
This commit is contained in:
parent
de10eb8046
commit
86b0ef046f
@ -2,6 +2,6 @@ Options -Indexes
|
||||
AuthName "back_office"
|
||||
AuthBasicProvider file
|
||||
AuthType Basic
|
||||
AuthUserFile "/var/www/html/vote/gestionsite/.htpasswd"
|
||||
AuthUserFile "/var/www/html/vote/gestion/.htpasswd"
|
||||
require valid-user
|
||||
|
||||
|
@ -18,7 +18,7 @@ function queryVotationName($db, $idVotation) :string
|
||||
return $votationLine["libelle"];
|
||||
}
|
||||
|
||||
function queryVotes($db, $idVotation) :array
|
||||
function queryVotes($db, $idVotation)
|
||||
{
|
||||
$query = "SELECT * FROM liste_votes WHERE id='" . $idVotation . "'";
|
||||
$db->query($query);
|
||||
@ -47,11 +47,14 @@ print('<br><br>
|
||||
print(' <div class="row">
|
||||
<div class="col-lg-12 text-center">');
|
||||
$votes = queryVotes($db, $idVotation);
|
||||
if (!empty($votes))
|
||||
{
|
||||
foreach ($votes as $value)
|
||||
{
|
||||
print ($value[0] . " " . $value[1] . EOLH);
|
||||
}
|
||||
echo EOLH . EOLH;
|
||||
}
|
||||
|
||||
print(' <h3>Nouveau vote pour la votation');
|
||||
|
||||
|
Reference in New Issue
Block a user