mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-03 18:42:46 +02:00
Copie du site du TFJM² à adapter aux Correspondances
This commit is contained in:
41
server_files/views/tournois.php
Normal file
41
server_files/views/tournois.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?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">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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="border: 1px solid black">
|
||||
<?php
|
||||
foreach ($tournaments as $tournament) {
|
||||
?>
|
||||
<tr style="border: 1px solid black">
|
||||
<td style="border: 1px solid black; text-align: center"><a href="<?= $URL_BASE ?>/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>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot style="border: 1px solid black">
|
||||
<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>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<?php require_once "footer.php" ?>
|
Reference in New Issue
Block a user