2019-09-12 10:18:15 +00:00
|
|
|
<?php require_once "header.php" ?>
|
|
|
|
|
2019-09-25 21:20:05 +00:00
|
|
|
<div class="mt-4 mb-4">
|
2019-10-04 20:36:23 +00:00
|
|
|
<h2 class="display-3">
|
|
|
|
<?= $problem == 0 ? "Équipes sans problème" : "Problème " . $problem ?>
|
|
|
|
</h2>
|
2019-09-25 21:20:05 +00:00
|
|
|
</div>
|
2019-09-12 10:18:15 +00:00
|
|
|
|
2019-09-19 22:02:01 +00:00
|
|
|
<hr/>
|
2019-09-12 10:18:15 +00:00
|
|
|
|
2019-10-04 20:36:23 +00:00
|
|
|
<h2>Équipes inscrites <?= $problem > 0 ? "pour ce problème" : "sans problème choisi" ?> :</h2>
|
2019-09-12 10:18:15 +00:00
|
|
|
|
2019-12-13 18:50:32 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<a href="mailto:contact@correspondances-maths.fr?<? foreach ($validated_emails as $email) echo "bcc=" . $email . "&" ?>subject=Correspondances de Jeunes Mathématicien·ne·s" target="_blank">Envoyer un mail à toutes les équipes validées</a><br />
|
|
|
|
<a href="mailto:contact@correspondances-maths.fr?<? foreach ($not_validated_emails as $email) echo "bcc=" . $email . "&" ?>subject=Correspondances de Jeunes Mathématicien·ne·s" target="_blank">Envoyer un mail à toutes les équipes non validées</a>
|
|
|
|
</div>
|
|
|
|
|
2019-09-25 21:20:05 +00:00
|
|
|
<table class="table table-striped table-bordered table-hover">
|
2019-09-19 22:02:01 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th scope="col">
|
2019-09-19 22:02:01 +00:00
|
|
|
Équipe
|
|
|
|
</th>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th scope="col">
|
2019-09-19 22:02:01 +00:00
|
|
|
Trigramme
|
|
|
|
</th>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th scope="col">
|
2019-09-19 22:02:01 +00:00
|
|
|
Date d'inscription
|
|
|
|
</th>
|
2019-10-22 12:55:33 +00:00
|
|
|
<?php if ($problem > 0) { ?>
|
|
|
|
<th scope="col">
|
|
|
|
État de validation de l'inscription
|
|
|
|
</th>
|
|
|
|
<?php } ?>
|
2019-09-19 22:02:01 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-09-12 10:18:15 +00:00
|
|
|
<?php
|
2019-09-19 22:02:01 +00:00
|
|
|
/** @var Team $team */
|
|
|
|
foreach ($teams as $team) {
|
|
|
|
?>
|
|
|
|
<tr>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th scope="row">
|
2019-09-19 22:02:01 +00:00
|
|
|
<?php
|
|
|
|
if (isset($_SESSION["role"]) && $_SESSION["role"] == Role::ADMIN)
|
2019-09-23 22:16:50 +00:00
|
|
|
echo "<a href=\"/equipe/" . $team->getTrigram() . "\">" . $team->getName() . "</a>";
|
2019-09-19 22:02:01 +00:00
|
|
|
else
|
|
|
|
echo $team->getName();
|
|
|
|
?>
|
2019-09-25 21:20:05 +00:00
|
|
|
</th>
|
|
|
|
<td><?= $team->getTrigram() ?></td>
|
|
|
|
<td><?= formatDate($team->getInscriptionDate()) ?></td>
|
2019-10-22 12:55:33 +00:00
|
|
|
<?php if ($problem > 0) { ?>
|
|
|
|
<td><?= ValidationStatus::getTranslatedName($team->getValidationStatus()) ?></td>
|
|
|
|
<?php } ?>
|
2019-09-19 22:02:01 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
2019-09-12 10:18:15 +00:00
|
|
|
?>
|
2019-09-19 22:02:01 +00:00
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th>
|
2019-09-19 22:02:01 +00:00
|
|
|
Équipe
|
|
|
|
</th>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th>
|
2019-09-19 22:02:01 +00:00
|
|
|
Trigramme
|
|
|
|
</th>
|
2019-09-25 21:20:05 +00:00
|
|
|
<th>
|
2019-09-19 22:02:01 +00:00
|
|
|
Date d'inscription
|
|
|
|
</th>
|
2019-10-22 12:55:33 +00:00
|
|
|
<?php if ($problem > 0) { ?>
|
|
|
|
<th>
|
|
|
|
État de validation de l'inscription
|
|
|
|
</th>
|
|
|
|
<?php } ?>
|
2019-09-19 22:02:01 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
2019-09-12 10:18:15 +00:00
|
|
|
|
|
|
|
<?php require_once "footer.php" ?>
|
|
|
|
|