1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 13:37:25 +02:00

Le tournoi de la finale nationale est désormais une variable globale

This commit is contained in:
galaxyoyo
2019-09-07 14:31:28 +02:00
parent cb760cb059
commit 25a31b7f40
7 changed files with 15 additions and 15 deletions

View File

@ -33,7 +33,7 @@ for ($i = 1; $i <= 6; ++$i) {
?>
Code d'accès : <strong><?= $team->getAccessCode() ?></strong><br/>
<?php if ($team->isSelectedForFinal()) {
$final_name = $_SESSION["final"]->getName();
$final_name = $FINAL->getName();
echo "<strong>Équipe sélectionnée pour la <a href=\"$URL_BASE/tournoi/$final_name\">finale nationale</a>.</strong><br />";
} ?>
@ -120,7 +120,7 @@ Code d'accès : <strong><?= $team->getAccessCode() ?></strong><br/>
</td>
<td>
<select style="width: 100%;" id="type" name="type">
<?php if ($_SESSION["user"]->getBirthDate() > strval($YEAR - 18) . substr($tournament_data["date_start"], 4)) { ?>
<?php if ($_SESSION["user"]->getBirthDate() > strval($YEAR - 18) . substr($tournament->getStartDate(), 4)) { ?>
<option value="parental_consent">Autorisation parentale</option>
<?php } ?>
<option value="photo_consent">Autorisation de droit à l'image</option>