2019-09-09 23:48:52 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!--suppress HtmlUnknownTarget -->
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
2019-09-12 16:47:57 +00:00
|
|
|
<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>
|
2019-09-09 23:48:52 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= $URL_BASE ?>/style.css"/>
|
2019-09-12 16:47:57 +00:00
|
|
|
<link REL="shortcut icon" href="<?= $URL_BASE ?>/favicon.ico"/>
|
2019-09-09 23:48:52 +00:00
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
2019-09-19 22:02:01 +00:00
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/vendor/bootstrap/css/bootstrap.min.css">
|
2019-09-09 23:48:52 +00:00
|
|
|
|
|
|
|
<!-- Custom fonts for this template -->
|
2019-09-19 22:02:01 +00:00
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/vendor/font-awesome/css/font-awesome.min.css">
|
2019-09-09 23:48:52 +00:00
|
|
|
|
|
|
|
<!-- Plugin CSS -->
|
2019-09-19 22:02:01 +00:00
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/vendor/datatables/dataTables.bootstrap4.css">
|
2019-09-09 23:48:52 +00:00
|
|
|
|
|
|
|
<!-- Custom styles for this template -->
|
2019-09-19 22:02:01 +00:00
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/css2/sb-admin.css">
|
2019-09-09 23:48:52 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<ul id="menu">
|
2019-09-10 18:25:26 +00:00
|
|
|
<li id="menu-logo"><img src="<?= $URL_BASE ?>/logo.png" alt="Logo Corres2Math"></li>
|
2019-09-12 10:18:15 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/">Accueil</a></li>
|
2019-09-18 22:46:32 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/calendrier">Calendrier</a></li>
|
|
|
|
<li>
|
|
|
|
<!-- TODO Menu déroulant -->
|
|
|
|
<a>Liste des problèmes</a>
|
|
|
|
<ul>
|
|
|
|
<li><a href="<?= $URL_BASE ?>/probleme/1">Problème 1</a></li>
|
|
|
|
<li><a href="<?= $URL_BASE ?>/probleme/2">Problème 2</a></li>
|
|
|
|
<li><a href="<?= $URL_BASE ?>/probleme/3">Problème 3</a></li>
|
|
|
|
<li><a href="<?= $URL_BASE ?>/probleme/4">Problème 4</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php if (!isset($_SESSION["user_id"])) { ?>
|
2019-09-12 16:47:57 +00:00
|
|
|
<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 { ?>
|
2019-09-16 22:19:01 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/mon-compte">Mon compte</a></li>
|
2019-09-12 16:47:57 +00:00
|
|
|
<?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 { ?>
|
2019-09-16 22:19:01 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/mon-equipe">Mon équipe</a></li>
|
2019-09-12 18:10:30 +00:00
|
|
|
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED) {
|
|
|
|
switch (Phase::getCurrentPhase()) {
|
|
|
|
case Phase::PHASE1: ?>
|
2019-09-19 22:02:01 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/envoyer-video-1">Envoyer ma vidéo (phase 1)</a></li>
|
2019-09-12 18:10:30 +00:00
|
|
|
<?php break;
|
2019-09-21 18:39:40 +00:00
|
|
|
case Phase::PHASE2: ?>
|
2019-09-20 12:57:06 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/poser-questions-2">Poser des questions (phase 2)</a></li>
|
2019-09-21 18:39:40 +00:00
|
|
|
<?php break;
|
|
|
|
case Phase::PHASE3: ?>
|
|
|
|
<li><a href="<?= $URL_BASE ?>/repondre-questions-3">Répondre aux questions (phase 3)</a></li>
|
|
|
|
<?php break;
|
2019-09-12 18:10:30 +00:00
|
|
|
}
|
|
|
|
} ?>
|
2019-09-12 16:47:57 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
|
2019-09-12 14:19:47 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/ajouter_admin">Ajouter un administrateur</a></li>
|
2019-09-16 22:19:01 +00:00
|
|
|
<li><a href="<?= $URL_BASE ?>/videos-solutions">Vidéos des solutions</a></li>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } ?>
|
2019-09-12 16:47:57 +00:00
|
|
|
<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";
|
|
|
|
}
|
|
|
|
?>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id="main-container">
|
|
|
|
<div id="main-content">
|
2019-09-19 22:02:01 +00:00
|
|
|
<div class="container-fluid">
|
|
|
|
<?php
|
|
|
|
if (isset($has_error) && $has_error) {
|
|
|
|
echo "<h2>Erreur : " . $error_message . "</h2>";
|
|
|
|
}
|