1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/index2.php

43 lines
856 B
PHP
Raw Normal View History

2022-09-29 11:32:23 +02:00
<?php
2022-10-19 16:19:16 +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>");
print('<a href="' . $vote_url . 'gestion/saisieVotes.php?idVotation=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
2022-09-29 13:31:30 +02:00
if ($votation["status"] == 1)
{
print(_("Cloturé"));
}else
{
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>');
require_once './footer.html';
?>