mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-27 05:42:24 +00:00
116 lines
5.7 KiB
PHP
116 lines
5.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="description" content="Inscrivez-vous pour le TFJM² <?= $YEAR ?> !">
|
|
<meta name="keywords" content="TFJM,TFJM²,Tournoi,Français,Jeunes,Mathématiciennes,Mathématiciens">
|
|
<meta name="author" content="Yohann D'ANELLO (yohann.danello[at]animath.fr)">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Site d'inscription pour le TFJM² <?= $YEAR ?></title>
|
|
<link rel="stylesheet" type="text/css" href="/style.css">
|
|
<link REL="shortcut icon" href="/favicon.ico">
|
|
|
|
<!-- Bootstrap -->
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
|
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container.fluid bg-light">
|
|
<nav class="navbar navbar-expand-lg navbar-light">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="https://tfjm.org/">
|
|
<img src="/logo.svg" alt="Logo TFJM²" id="navbar-logo">
|
|
</a>
|
|
<ul class="navbar-nav mr-auto">
|
|
<li class="nav-item active">
|
|
<a href="/" class="nav-link">Accueil</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/tournois">Liste des tournois</a>
|
|
<ul class="deroule">
|
|
<li class="nav-item active"><a class="nav-link" href="/profils-orphelins">Profils orphelins</a></li>
|
|
<li class="nav-item active"><a class="nav-link" href="/profils">Tous les profils</a></li>
|
|
<li class="nav-item active"><a class="nav-link" href="/organisateurs">Organisateurs</a></li>
|
|
</ul>
|
|
</li>
|
|
<?php if (isset($_SESSION["user_id"])) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/mon-compte">Mon compte</a>
|
|
</li>
|
|
<?php if ($_SESSION["role"] == Role::ENCADRANT || $_SESSION["role"] == Role::PARTICIPANT) { ?>
|
|
<?php if ($_SESSION["team"] == NULL) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/ajouter_equipe">Ajouter une équipe</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/rejoindre_equipe">Rejoindre une équipe</a>
|
|
</li>
|
|
<?php } else { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/mon-equipe">Mon équipe</a>
|
|
</li>
|
|
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED || true) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="https://paypal.me/galaxyoyo42">Paiement</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/solutions">Solutions</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/syntheses">Notes de synthèse</a>
|
|
</li>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/ajouter_tournoi">Ajouter un tournoi</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/ajouter_organisateur">Ajouter un organisateur</a>
|
|
</li>
|
|
<?php } ?>
|
|
<?php if ($_SESSION["role"] == Role::ADMIN || $_SESSION["role"] == Role::ORGANIZER) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/solutions_orga">Solutions</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/syntheses_orga">Notes de synthèse</a>
|
|
</li>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</ul>
|
|
<ul class="navbar-nav">
|
|
<?php if (!isset($_SESSION["user_id"])) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/connexion">Connexion</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/inscription">Inscription</a>
|
|
</li>
|
|
<?php } else { ?>
|
|
<?php if (isset($_SESSION["admin"])) { ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/?view-as-admin">Retourner en vue administrateur</a>
|
|
</li>
|
|
<?php } ?>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/deconnexion">Déconnexion</a>
|
|
</li>
|
|
<?php } ?>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
|
|
<div class="container">
|
|
<div class="mt-4 mb-4">
|
|
</div>
|
|
|
|
<?php
|
|
if (isset($has_error) && $has_error) { ?>
|
|
<div class="alert alert-danger">
|
|
<strong>Erreur :</strong> <?= $error_message ?>
|
|
</div>
|
|
<?php }
|