2019-09-07 11:42:36 +00:00
|
|
|
<?php require_once "header.php" ?>
|
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
<h2>Informations sur l'équipe</h2>
|
2019-09-06 11:48:50 +00:00
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
Nom de l'équipe : <?= $team->getName() ?><br/>
|
|
|
|
Trigramme : <?= $team->getTrigram() ?><br/>
|
|
|
|
Tournoi : <a href="<?= $URL_BASE . "/tournoi/" . $tournament->getName() ?>"><?= $tournament->getName() ?></a><br/>
|
2019-09-06 11:48:50 +00:00
|
|
|
<?php
|
|
|
|
for ($i = 1; $i <= 2; ++$i) {
|
2019-09-09 22:49:55 +00:00
|
|
|
if ($team->getEncadrants()[$i - 1] == NULL)
|
2019-09-06 11:48:50 +00:00
|
|
|
continue;
|
2019-09-06 23:33:05 +00:00
|
|
|
$encadrant = User::fromId($team->getEncadrants()[$i - 1]);
|
|
|
|
$id = $encadrant->getId();
|
|
|
|
echo "Encadrant $i : <a href=\"$URL_BASE/informations/$id/" . $encadrant->getFirstName() . " " . $encadrant->getSurname() . "\">" . $encadrant->getFirstName() . " " . $encadrant->getSurname() . "</a><br />";
|
2019-09-06 11:48:50 +00:00
|
|
|
}
|
|
|
|
for ($i = 1; $i <= 6; ++$i) {
|
2019-09-06 23:33:05 +00:00
|
|
|
if ($team->getParticipants()[$i - 1] == NULL)
|
2019-09-06 11:48:50 +00:00
|
|
|
continue;
|
2019-09-06 23:33:05 +00:00
|
|
|
$participant = User::fromId($team->getParticipants()[$i - 1]);
|
|
|
|
$id = $participant->getId();
|
|
|
|
echo "Participant $i : <a href=\"$URL_BASE/informations/$id/" . $participant->getFirstName() . " " . $participant->getSurname() . "\">" . $participant->getFirstName() . " " . $participant->getSurname() . "</a><br />";
|
2019-09-06 11:48:50 +00:00
|
|
|
}
|
2019-09-06 23:33:05 +00:00
|
|
|
if ($team->isSelectedForFinal()) {
|
2019-09-07 12:31:28 +00:00
|
|
|
$final_name = $FINAL->getName();
|
2019-09-06 11:48:50 +00:00
|
|
|
echo "<strong>Équipe sélectionnée pour la <a href=\"$URL_BASE/tournoi/$final_name\">finale nationale</a>.</strong>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
<hr/>
|
2019-09-06 11:48:50 +00:00
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
<h2>Autorisations</h2>
|
2019-09-06 11:48:50 +00:00
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
<?php printDocuments($documents) ?>
|
|
|
|
|
|
|
|
<form method="POST">
|
|
|
|
<input style="width: 100%;" type="submit" name="download_zip" value="Télécharger l'archive"/>
|
|
|
|
</form>
|
2019-09-06 11:48:50 +00:00
|
|
|
|
2019-09-06 23:33:05 +00:00
|
|
|
<?php if ($team->isSelectedForFinal()) { ?>
|
2019-09-07 23:35:05 +00:00
|
|
|
<hr/>
|
|
|
|
<h2>Autorisations pour la finale</h2>
|
|
|
|
<?php printDocuments($documents_final) ?>
|
|
|
|
<form method="POST">
|
2019-09-09 10:15:48 +00:00
|
|
|
<input type="hidden" name="final" value="true" />
|
|
|
|
<input style="width: 100%;" type="submit" name="download_zip" value="Télécharger l'archive"/>
|
2019-09-07 23:35:05 +00:00
|
|
|
</form>
|
|
|
|
<?php } ?>
|
2019-09-06 11:48:50 +00:00
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
<?php if ($team->getValidationStatus() == ValidationStatus::WAITING && $_SESSION["role"] == Role::ADMIN) { ?>
|
|
|
|
<form method="POST">
|
|
|
|
<input style="width: 100%;" type="submit" name="validate" value="Valider l'équipe"/>
|
|
|
|
</form>
|
2019-09-06 11:48:50 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
2019-09-07 23:35:05 +00:00
|
|
|
if (!$team->isSelectedForFinal() && $_SESSION["role"] == Role::ADMIN) { ?>
|
|
|
|
<hr/>
|
|
|
|
<form method="POST">
|
|
|
|
<input style="width: 100%;" type="submit" name="select" value="Sélectionner pour la finale nationale"/>
|
|
|
|
</form>
|
2019-09-07 11:42:36 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php require_once "footer.php" ?>
|