2019-09-09 23:48:52 +00:00
|
|
|
<?php require_once "header.php" ?>
|
|
|
|
|
|
|
|
<h1><?= $user->getFirstName() . " " . $user->getSurname() ?></h1>
|
|
|
|
|
|
|
|
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
2019-09-23 22:16:50 +00:00
|
|
|
Équipe : <?= $team === null ? "Pas d'équipe" : "<a href=\"/equipe/" . $team->getTrigram() . "\">" . $team->getName() . " (" . $team->getTrigram() . ")</a>" ?><br />
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php if ($user->getRole() == Role::PARTICIPANT) { ?>
|
|
|
|
Lycée : <?= $user->getSchool() ?><br />
|
2019-09-10 23:17:05 +00:00
|
|
|
Classe : <?= SchoolClass::getTranslatedName($user->getClass()) ?><br />
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } elseif ($user->getDescription() != "") { ?>
|
|
|
|
Description : <?= $user->getDescription() ?><br />
|
|
|
|
<?php }
|
|
|
|
|
|
|
|
echo "<hr />";
|
|
|
|
|
2019-09-10 23:17:05 +00:00
|
|
|
if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
2019-09-09 23:48:52 +00:00
|
|
|
<h2>Autorisations</h2>
|
|
|
|
<?php
|
2019-09-12 10:18:15 +00:00
|
|
|
printDocuments($documents);
|
2019-09-09 23:48:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
require_once "footer.php";
|