1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-26 19:42:20 +00:00
plateforme-corres2math/server_files/views/informations.php

44 lines
1.5 KiB
PHP
Raw Normal View History

<?php require_once "header.php" ?>
2019-09-24 23:15:03 +00:00
<div class="mt-4 mb-4">
<h1 class="display-4"><?= $user->getFirstName() . " " . $user->getSurname() ?></h1>
</div>
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
2019-09-24 23:15:03 +00:00
<div class="alert alert-info">
<strong>Équipe
:</strong> <?= $team === null ? "Pas d'équipe" : "<a href=\"/equipe/" . $team->getTrigram() . "\">"
. $team->getName() . " (" . $team->getTrigram() . ")</a>" ?>
</div>
<?php } ?>
<?php if ($user->getRole() == Role::PARTICIPANT) { ?>
<div class="alert alert-info">
2019-09-24 23:15:03 +00:00
<strong>Lycée :</strong> <?= $user->getSchool() ?><br/>
<strong>Classe :</strong> <?= SchoolClass::getTranslatedName($user->getClass()) ?>
</div>
<?php } elseif ($user->getDescription() != "") { ?>
2019-09-24 23:15:03 +00:00
<div class="alert alert-info">
<strong>Description :</strong> <?= $user->getDescription() ?>
</div>
2019-09-24 23:15:03 +00:00
<?php } ?>
<div class="alert alert-info">
<strong>Adresse e-mail :</strong> <a href="mailto:<?= $user->getEmail() ?>"><?= $user->getEmail() ?></a>
</div>
<div class="alert alert-info">
<strong>Autorise Animath à envoyer des mails :</strong> <?= $user->doReceiveAnimathMails() ? "oui" : "non" ?>
</div>
2019-09-24 23:15:03 +00:00
<hr/>
2019-09-24 23:15:03 +00:00
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
<div class="mt-4 mb-4">
<h1 class="display-5">Autorisation de droit à l'image :</h1>
</div>
2019-09-24 23:15:03 +00:00
<?php
printDocuments($documents);
}
require_once "footer.php";