mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 17:42:24 +00:00
💄 Rework on tournois.php
Signed-off-by: Hadrien RENAUD <hadrien.renaud@polytechnique.edu>
This commit is contained in:
parent
5004e1fb14
commit
eb2fb734c6
@ -1,39 +1,43 @@
|
||||
<?php require_once "header.php" ?>
|
||||
|
||||
<h2>Liste des tournois</h2>
|
||||
<div class="mt-4 mb-4">
|
||||
<h2 class="display-3">Liste des tournois</h2>
|
||||
</div>
|
||||
|
||||
<table style="border: 1px solid black; width: 100%">
|
||||
<thead style="border: 1px solid black">
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border: 1px solid black; text-align: center">Nom</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>
|
||||
<th scope="col">Nom</th>
|
||||
<th scope="col">Dates</th>
|
||||
<th scope="col">Inscription avant le</th>
|
||||
<th scope="col">Date de rendu des solutions</th>
|
||||
<th scope="col">Places disponibles</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="border: 1px solid black">
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($tournaments as $tournament) {
|
||||
?>
|
||||
<tr style="border: 1px solid black">
|
||||
<td style="border: 1px solid black; text-align: center"><a href="/tournoi/<?= $tournament->getName() ?>"><?= $tournament->getName() ?></a></td>
|
||||
<td style="border: 1px solid black; text-align: center">Du <?= formatDate($tournament->getStartDate()) ?> au <?= formatDate($tournament->getEndDate()) ?></td>
|
||||
<td style="border: 1px solid black; text-align: center"><?= formatDate($tournament->getSolutionsDate()) ?></td>
|
||||
<td style="border: 1px solid black; text-align: center"><?= formatDate($tournament->getSynthesesDate()) ?></td>
|
||||
<td style="border: 1px solid black; text-align: center"><?= $tournament->getSize() ?></td>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<a href="/tournoi/<?= $tournament->getName() ?>"><?= $tournament->getName() ?></a>
|
||||
</th>
|
||||
<td>Du <?= formatDate($tournament->getStartDate()) ?> au <?= formatDate($tournament->getEndDate()) ?></td>
|
||||
<td><?= formatDate($tournament->getSolutionsDate()) ?></td>
|
||||
<td><?= formatDate($tournament->getSynthesesDate()) ?></td>
|
||||
<td><?= $tournament->getSize() ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot style="border: 1px solid black">
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th style="border: 1px solid black; text-align: center">Nom</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>
|
||||
<th>Nom</th>
|
||||
<th>Dates</th>
|
||||
<th>Inscription avant le</th>
|
||||
<th>Date de rendu des solutions</th>
|
||||
<th>Places disponibles</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user