2022-09-29 11:32:23 +02:00
|
|
|
<?php
|
2022-10-19 16:34:21 +02:00
|
|
|
require_once 'session_init.php';
|
2022-09-29 11:32:23 +02:00
|
|
|
require_once 'config.inc.php';
|
2022-09-29 11:39:00 +02:00
|
|
|
require_once 'db.class.php';
|
2022-09-29 11:32:23 +02:00
|
|
|
require_once 'entete.php';
|
|
|
|
|
2022-09-29 11:54:25 +02:00
|
|
|
$db = new db();
|
2022-09-29 11:32:23 +02:00
|
|
|
print(' <br><br>
|
|
|
|
<!-- lalis Grid Section -->
|
|
|
|
|
|
|
|
<section id="content">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 text-center">
|
2022-09-29 13:15:43 +02:00
|
|
|
<h3>Gestion des votes</h3>
|
2022-09-29 11:32:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2022-09-29 14:01:42 +02:00
|
|
|
');
|
2022-09-29 11:54:25 +02:00
|
|
|
$votationsList = $db->queryVotationList();
|
2022-09-29 14:01:42 +02:00
|
|
|
print ("<table>");
|
2022-09-29 11:32:23 +02:00
|
|
|
foreach($votationsList as $votation)
|
|
|
|
{
|
2022-09-29 13:35:40 +02:00
|
|
|
print("<tr><td>");
|
2022-09-29 13:31:30 +02:00
|
|
|
if ($votation["status"] == 1)
|
|
|
|
{
|
2023-03-16 15:23:41 +01:00
|
|
|
print('<a href="' . $vote_url . 'vote.resultat.php?id=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
2022-09-29 13:31:30 +02:00
|
|
|
print(_("Cloturé"));
|
|
|
|
}else
|
|
|
|
{
|
2023-03-16 14:50:35 +01:00
|
|
|
print('<a href="' . $vote_url . 'vote.form.php?v=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
2022-09-29 13:31:30 +02:00
|
|
|
print(_("En cours"));
|
|
|
|
}
|
2022-09-29 14:01:42 +02:00
|
|
|
print('</td></tr>');
|
2022-09-29 11:32:23 +02:00
|
|
|
}
|
2022-09-29 14:01:42 +02:00
|
|
|
print('</table>');
|
|
|
|
print('
|
2022-09-29 11:32:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>');
|
|
|
|
|
2022-10-19 16:28:36 +02:00
|
|
|
require_once 'footer.html';
|
2022-09-29 11:32:23 +02:00
|
|
|
?>
|