1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 05:08:46 +02:00

Phase 1 : affichage des vidéos pour les admins

This commit is contained in:
galaxyoyo
2019-09-17 00:19:01 +02:00
parent a8db4a421c
commit 1e67b8569d
11 changed files with 50 additions and 16 deletions

View File

@ -32,7 +32,7 @@
<li><a href="<?= $URL_BASE ?>/inscription">Inscription</a></li>
<?php }
} else { ?>
<li><a href="<?= $URL_BASE ?>/mon_compte">Mon compte</a></li>
<li><a href="<?= $URL_BASE ?>/mon-compte">Mon compte</a></li>
<?php if ($_SESSION["role"] == Role::ENCADRANT || $_SESSION["role"] == Role::PARTICIPANT) { ?>
<?php if ($_SESSION["team"] == NULL) {
if (date("Y-m-d H:i:s") < $CONFIG->getInscriptionDate()) { ?>
@ -40,7 +40,7 @@
<li><a href="<?= $URL_BASE ?>/rejoindre_equipe">Rejoindre une équipe</a></li>
<?php }
} else { ?>
<li><a href="<?= $URL_BASE ?>/mon_equipe">Mon équipe</a></li>
<li><a href="<?= $URL_BASE ?>/mon-equipe">Mon équipe</a></li>
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED) {
switch (Phase::getCurrentPhase()) {
case Phase::PHASE1: ?>
@ -52,6 +52,7 @@
<?php } ?>
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
<li><a href="<?= $URL_BASE ?>/ajouter_admin">Ajouter un administrateur</a></li>
<li><a href="<?= $URL_BASE ?>/videos-solutions">Vidéos des solutions</a></li>
<?php } ?>
<li><a href="<?= $URL_BASE ?>/deconnexion">Déconnexion</a></li>
<hr/>