mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 18:22:23 +00:00
49 lines
2.5 KiB
PHP
49 lines
2.5 KiB
PHP
<?php require_once "header.php" ?>
|
|
|
|
<h2>Liste des tournois</h2>
|
|
|
|
<table style="border: 1px solid black; width: 100%">
|
|
<thead style="border: 1px solid black">
|
|
<tr>
|
|
<th style="border: 1px solid black; text-align: center">Lieu</th>
|
|
<th style="border: 1px solid black; text-align: center">Dates</th>
|
|
<th style="border: 1px solid black; text-align: center">Inscription avant le</th>
|
|
<th style="border: 1px solid black; text-align: center">Date de rendu des solutions</th>
|
|
<th style="border: 1px solid black; text-align: center">Places disponibles</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="border: 1px solid black">
|
|
<?php
|
|
while (($data = $response->fetch()) !== FALSE) {
|
|
?>
|
|
<tr style="border: 1px solid black">
|
|
<td style="border: 1px solid black; text-align: center"><a href="<?= $URL_BASE ?>/tournoi/<?= $data["name"] ?>"><?= $data["name"] ?></a></td>
|
|
<td style="border: 1px solid black; text-align: center">Du <?= echoDate($data["date_start"]) ?> au <?= echoDate($data["date_end"]) ?></td>
|
|
<td style="border: 1px solid black; text-align: center"><?= echoDate($data["date_inscription"]) ?></td>
|
|
<td style="border: 1px solid black; text-align: center"><?= echoDate($data["date_solutions"]) ?></td>
|
|
<td style="border: 1px solid black; text-align: center"><?= $data["size"] ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr style="border: 1px solid black">
|
|
<td style="border: 1px solid black; text-align: center"><a href="<?= $URL_BASE ?>/tournoi/<?= $final_data["name"] ?>"><?= $final_data["name"] ?></a></td>
|
|
<td colspan="2" style="border: 1px solid black; text-align: center">Du <?= echoDate($final_data["date_start"]) ?> au <?= echoDate($final_data["date_end"]) ?></td>
|
|
<!-- <td style="border: 1px solid black; text-align: center"><?= echoDate($final_data["date_inscription"]) ?></td> -->
|
|
<td style="border: 1px solid black; text-align: center"><?= echoDate($final_data["date_solutions"]) ?></td>
|
|
<td style="border: 1px solid black; text-align: center"><?= $final_data["size"] ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot style="border: 1px solid black">
|
|
<tr>
|
|
<th style="border: 1px solid black; text-align: center">Lieu</th>
|
|
<th style="border: 1px solid black; text-align: center">Dates</th>
|
|
<th style="border: 1px solid black; text-align: center">Inscription avant le</th>
|
|
<th style="border: 1px solid black; text-align: center">Date de rendu des solutions</th>
|
|
<th style="border: 1px solid black; text-align: center">Places disponibles</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
<?php require_once "footer.php" ?>
|