44 lines
960 B
PHP
44 lines
960 B
PHP
<?php
|
|
require_once 'session_init.php';
|
|
require_once 'config.inc.php';
|
|
require_once 'db.class.php';
|
|
require_once 'entete.php';
|
|
|
|
$db = new db();
|
|
print(' <br><br>
|
|
<!-- lalis Grid Section -->
|
|
|
|
<section id="content">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center">
|
|
<h3>Gestion des votes</h3>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
');
|
|
$votationsList = $db->queryVotationList();
|
|
print ("<table>");
|
|
foreach($votationsList as $votation)
|
|
{
|
|
print("<tr><td>");
|
|
print('<a href="' . $vote_url . 'vote.resultat.php?v=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
|
if ($votation["status"] == 1)
|
|
{
|
|
print(_("Cloturé"));
|
|
}else
|
|
{
|
|
print('<a href="' . $vote_url . 'vote.form.php?v=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
|
print(_("En cours"));
|
|
}
|
|
print('</td></tr>');
|
|
}
|
|
print('</table>');
|
|
print('
|
|
</div>
|
|
</div>
|
|
</section>');
|
|
|
|
require_once 'footer.html';
|
|
?>
|