mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-24 05:08:46 +02:00
Pas d'inscription possible après la date limite
This commit is contained in:
@ -2,11 +2,11 @@
|
||||
<!--suppress HtmlUnknownTarget -->
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content= "width=device-width, initial-scale=1.0" />
|
||||
<title>Site d'inscription pour les Correspondances des Jeunes Mathématicien·ne·s <?= $YEAR ?></title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Site d'inscription pour les Correspondances des Jeunes Mathématicien·ne·s <?= $YEAR ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?= $URL_BASE ?>/style.css"/>
|
||||
<link REL="shortcut icon" href="<?= $URL_BASE ?>/favicon.ico" />
|
||||
<link REL="shortcut icon" href="<?= $URL_BASE ?>/favicon.ico"/>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link rel="stylesheet" type="text/css" href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/vendor/bootstrap/css/bootstrap.min.css">
|
||||
@ -27,36 +27,40 @@
|
||||
<li><a href="<?= $URL_BASE ?>/">Accueil</a></li>
|
||||
<li><a href="<?= $URL_BASE ?>/problemes">Liste des problèmes</a></li>
|
||||
<?php if (!isset($_SESSION["user_id"])) { ?>
|
||||
<li><a href="<?= $URL_BASE ?>/connexion">Connexion</a></li>
|
||||
<li><a href="<?= $URL_BASE ?>/inscription">Inscription</a></li>
|
||||
<?php } else { ?>
|
||||
<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) { ?>
|
||||
<li><a href="<?= $URL_BASE ?>/ajouter_equipe">Ajouter une équipe</a></li>
|
||||
<li><a href="<?= $URL_BASE ?>/rejoindre_equipe">Rejoindre une équipe</a></li>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?= $URL_BASE ?>/connexion">Connexion</a></li>
|
||||
<?php if (date("Y-m-d H:i:s") < $CONFIG->getInscriptionDate()) { ?>
|
||||
<li><a href="<?= $URL_BASE ?>/inscription">Inscription</a></li>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<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()) { ?>
|
||||
<li><a href="<?= $URL_BASE ?>/ajouter_equipe">Ajouter une équipe</a></li>
|
||||
<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>
|
||||
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED || true) { ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED || true) { ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
|
||||
<li><a href="<?= $URL_BASE ?>/ajouter_admin">Ajouter un administrateur</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="<?= $URL_BASE ?>/deconnexion">Déconnexion</a></li>
|
||||
<hr />
|
||||
<?php
|
||||
if ($_SESSION["role"] != Role::ADMIN) {
|
||||
echo "<li><a href=\"?be-admin=1\">Devenir administrateur</a></li>\n";
|
||||
}
|
||||
if ($_SESSION["role"] != Role::PARTICIPANT) {
|
||||
echo "<li><a href=\"?be-participant=1\">Devenir participant</a></li>\n";
|
||||
}
|
||||
if ($_SESSION["role"] != Role::ENCADRANT) {
|
||||
echo "<li><a href=\"?be-encadrant=1\">Devenir encadrant</a></li>\n";
|
||||
}
|
||||
?>
|
||||
<li><a href="<?= $URL_BASE ?>/deconnexion">Déconnexion</a></li>
|
||||
<hr/>
|
||||
<?php
|
||||
if ($_SESSION["role"] != Role::ADMIN) {
|
||||
echo "<li><a href=\"?be-admin=1\">Devenir administrateur</a></li>\n";
|
||||
}
|
||||
if ($_SESSION["role"] != Role::PARTICIPANT) {
|
||||
echo "<li><a href=\"?be-participant=1\">Devenir participant</a></li>\n";
|
||||
}
|
||||
if ($_SESSION["role"] != Role::ENCADRANT) {
|
||||
echo "<li><a href=\"?be-encadrant=1\">Devenir encadrant</a></li>\n";
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
|
Reference in New Issue
Block a user