1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-26 18:22:21 +00:00
plateforme-corres2math/server_files/views/probleme.php

70 lines
1.5 KiB
PHP
Raw Normal View History

<?php require_once "header.php" ?>
2019-09-25 21:20:05 +00:00
<div class="mt-4 mb-4">
<h2 class="display-3">Problème <?= $problem ?></h2>
</div>
<hr/>
<h2>Équipes inscrites pour ce problème :</h2>
2019-09-25 21:20:05 +00:00
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
2019-09-25 21:20:05 +00:00
<th scope="col">
Équipe
</th>
2019-09-25 21:20:05 +00:00
<th scope="col">
Trigramme
</th>
2019-09-25 21:20:05 +00:00
<th scope="col">
Date d'inscription
</th>
2019-09-25 21:20:05 +00:00
<th scope="col">
État de validation de l'inscription
</th>
</tr>
</thead>
<tbody>
<?php
/** @var Team $team */
foreach ($teams as $team) {
?>
<tr>
2019-09-25 21:20:05 +00:00
<th scope="row">
<?php
if (isset($_SESSION["role"]) && $_SESSION["role"] == Role::ADMIN)
echo "<a href=\"/equipe/" . $team->getTrigram() . "\">" . $team->getName() . "</a>";
else
echo $team->getName();
?>
2019-09-25 21:20:05 +00:00
</th>
<td><?= $team->getTrigram() ?></td>
<td><?= formatDate($team->getInscriptionDate()) ?></td>
<td><?= ValidationStatus::getTranslatedName($team->getValidationStatus()) ?></td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
2019-09-25 21:20:05 +00:00
<th>
Équipe
</th>
2019-09-25 21:20:05 +00:00
<th>
Trigramme
</th>
2019-09-25 21:20:05 +00:00
<th>
Date d'inscription
</th>
2019-09-25 21:20:05 +00:00
<th>
État de validation de l'inscription
</th>
</tr>
</tfoot>
</table>
<?php require_once "footer.php" ?>