44 lines
2.4 KiB
PHP
44 lines
2.4 KiB
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>
|