2019-09-07 11:42:36 +00:00
|
|
|
<?php require_once "header.php" ?>
|
|
|
|
|
2019-09-06 23:33:05 +00:00
|
|
|
<h1><?= $user->getFirstName() . " " . $user->getSurname() ?></h1>
|
2019-09-02 17:45:28 +00:00
|
|
|
|
2019-09-06 23:33:05 +00:00
|
|
|
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
|
|
|
Équipe : <?= $team === null ? "Pas d'équipe" : "<a href=\"$URL_BASE/equipe/" . $team->getTrigram() . "\">" . $team->getName() . " (" . $team->getTrigram() . ")</a>" ?><br />
|
2019-09-02 17:45:28 +00:00
|
|
|
<?php } ?>
|
2019-09-07 14:37:00 +00:00
|
|
|
Date de naissance : <?= formatDate($user->getBirthDate()) ?><br />
|
2019-09-06 23:33:05 +00:00
|
|
|
Sexe : <?= $user->getGender() == "M" ? "Masculin" : "Féminin" ?><br />
|
|
|
|
Adresse : <?= $user->getAddress() . ", " . $user->getPostalCode() . " " . $user->getCity() . ($user->getCountry() == "France" ? "" : ", " . $user->getCountry()) ?><br />
|
|
|
|
Adresse e-mail : <a href="mailto:<?= $user->getEmail() ?>"><?= $user->getEmail() ?></a><br />
|
|
|
|
Numéro de téléphone : <?= $user->getPhoneNumber() ?><br />
|
2019-09-02 17:45:28 +00:00
|
|
|
|
2019-09-06 23:33:05 +00:00
|
|
|
<?php if ($user->getRole() == Role::PARTICIPANT) { ?>
|
|
|
|
Lycée : <?= $user->getSchool() ?><br />
|
2019-09-07 23:35:05 +00:00
|
|
|
Classe : <?php SchoolClass::getTranslatedName($user->getClass()) ?><br />
|
2019-09-06 23:33:05 +00:00
|
|
|
Nom du responsable légal : <?= $user->getResponsibleName() ?><br />
|
|
|
|
Numéro de téléphone du responsable légal : <?= $user->getResponsiblePhone() ?><br />
|
|
|
|
Adresse e-mail du responsable légal : <a href="mailto:<?= $user->getResponsibleEmail() ?>"><?= $user->getResponsibleEmail() ?></a>
|
|
|
|
<?php } elseif ($user->getDescription() != "") { ?>
|
|
|
|
Description : <?= $user->getDescription() ?><br />
|
2019-09-02 17:45:28 +00:00
|
|
|
<?php }
|
|
|
|
|
2019-09-02 19:25:06 +00:00
|
|
|
echo "<hr />";
|
|
|
|
|
2019-09-06 23:33:05 +00:00
|
|
|
if ($user->getRole() == Role::ADMIN || $user->getRole() == Role::ORGANIZER) {
|
2019-09-07 23:35:05 +00:00
|
|
|
foreach ($tournaments as $tournament) {
|
|
|
|
echo "Organise le tournoi <a href=\"$URL_BASE/tournoi/" . $tournament->getName(). "\">" . $tournament->getName() . "</a><br />";
|
2019-09-02 17:45:28 +00:00
|
|
|
}
|
|
|
|
}
|
2019-09-06 23:33:05 +00:00
|
|
|
elseif ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
2019-09-02 17:45:28 +00:00
|
|
|
<h2>Autorisations</h2>
|
2019-09-07 23:35:05 +00:00
|
|
|
<?php
|
|
|
|
printDocuments($documents);
|
|
|
|
|
|
|
|
if ($team->isSelectedForFinal()) { ?>
|
|
|
|
<hr />
|
|
|
|
<h2>Autorisations pour la finale</h2>
|
|
|
|
<?php
|
|
|
|
printDocuments($documents_final);
|
|
|
|
}
|
2019-09-07 11:42:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
require_once "footer.php";
|