mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 05:02:23 +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" ?>
|
<?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%">
|
<table class="table table-striped table-bordered table-hover">
|
||||||
<thead style="border: 1px solid black">
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="border: 1px solid black; text-align: center">Nom</th>
|
<th scope="col">Nom</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Dates</th>
|
<th scope="col">Dates</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Inscription avant le</th>
|
<th scope="col">Inscription avant le</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Date de rendu des solutions</th>
|
<th scope="col">Date de rendu des solutions</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Places disponibles</th>
|
<th scope="col">Places disponibles</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody style="border: 1px solid black">
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach ($tournaments as $tournament) {
|
foreach ($tournaments as $tournament) {
|
||||||
?>
|
?>
|
||||||
<tr style="border: 1px solid black">
|
<tr>
|
||||||
<td style="border: 1px solid black; text-align: center"><a href="/tournoi/<?= $tournament->getName() ?>"><?= $tournament->getName() ?></a></td>
|
<th scope="row">
|
||||||
<td style="border: 1px solid black; text-align: center">Du <?= formatDate($tournament->getStartDate()) ?> au <?= formatDate($tournament->getEndDate()) ?></td>
|
<a href="/tournoi/<?= $tournament->getName() ?>"><?= $tournament->getName() ?></a>
|
||||||
<td style="border: 1px solid black; text-align: center"><?= formatDate($tournament->getSolutionsDate()) ?></td>
|
</th>
|
||||||
<td style="border: 1px solid black; text-align: center"><?= formatDate($tournament->getSynthesesDate()) ?></td>
|
<td>Du <?= formatDate($tournament->getStartDate()) ?> au <?= formatDate($tournament->getEndDate()) ?></td>
|
||||||
<td style="border: 1px solid black; text-align: center"><?= $tournament->getSize() ?></td>
|
<td><?= formatDate($tournament->getSolutionsDate()) ?></td>
|
||||||
|
<td><?= formatDate($tournament->getSynthesesDate()) ?></td>
|
||||||
|
<td><?= $tournament->getSize() ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot style="border: 1px solid black">
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="border: 1px solid black; text-align: center">Nom</th>
|
<th>Nom</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Dates</th>
|
<th>Dates</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Inscription avant le</th>
|
<th>Inscription avant le</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Date de rendu des solutions</th>
|
<th>Date de rendu des solutions</th>
|
||||||
<th style="border: 1px solid black; text-align: center">Places disponibles</th>
|
<th>Places disponibles</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user