1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-11-27 04:53:02 +00:00
plateforme-tfjm2/server_files/views/header.php

76 lines
3.5 KiB
PHP
Raw Normal View History

2019-09-06 11:48:50 +00:00
<!DOCTYPE html>
2019-09-08 10:44:00 +00:00
<!--suppress HtmlUnknownTarget -->
2019-09-06 11:48:50 +00:00
<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 le TFJM² <?= $YEAR ?></title>
<link rel="stylesheet" type="text/css" href="/style.css"/>
<link REL="shortcut icon" href="/favicon.ico" />
2019-09-06 11:48:50 +00:00
<!-- 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">
<!-- Custom fonts for this template -->
<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">
<!-- Plugin CSS -->
<link rel="stylesheet" type="text/css" href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/vendor/datatables/dataTables.bootstrap4.css">
<!-- Custom styles for this template -->
<link rel="stylesheet" type="text/css" href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/css2/sb-admin.css">
</head>
<body>
<ul id="menu">
<li id="menu-logo"><img src="/logo.svg" alt="Logo TFJM²"></li>
<li><a href="/">Accueil</a></li>
<li><a href="/tournois">Liste des tournois</a></li>
2019-09-06 11:48:50 +00:00
<?php if (!isset($_SESSION["user_id"])) { ?>
<li><a href="/connexion">Connexion</a></li>
<li><a href="/inscription">Inscription</a></li>
2019-09-06 11:48:50 +00:00
<?php } else { ?>
<li><a href="/mon_compte">Mon compte</a></li>
<?php if ($_SESSION["role"] == Role::ENCADRANT || $_SESSION["role"] == Role::PARTICIPANT) { ?>
<?php if ($_SESSION["team"] == NULL) { ?>
<li><a href="/ajouter_equipe">Ajouter une équipe</a></li>
<li><a href="/rejoindre_equipe">Rejoindre une équipe</a></li>
2019-09-06 11:48:50 +00:00
<?php } else { ?>
<li><a href="/mon_equipe">Mon équipe</a></li>
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED || true) { ?>
2019-09-06 11:48:50 +00:00
<li><a href="https://paypal.me/galaxyoyo42">Paiement</a></li>
<li><a href="/solutions">Solutions</a></li>
<li><a href="/syntheses">Notes de synthèse</a></li>
2019-09-06 11:48:50 +00:00
<?php } ?>
<?php } ?>
<?php } ?>
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
<li><a href="/ajouter_tournoi">Ajouter un tournoi</a></li>
<li><a href="/ajouter_organisateur">Ajouter un organisateur</a></li>
2019-09-06 11:48:50 +00:00
<?php } ?>
<?php if ($_SESSION["role"] == Role::ADMIN || $_SESSION["role"] == Role::ORGANIZER) { ?>
<li><a href="/solutions_orga">Solutions</a></li>
<li><a href="/syntheses_orga">Notes de synthèse</a></li>
2019-09-06 11:48:50 +00:00
<?php } ?>
<li><a href="/deconnexion">Déconnexion</a></li>
2019-09-06 11:48:50 +00:00
<hr />
<?php
if ($_SESSION["role"] != Role::ADMIN) {
echo "<li><a href=\"?be-admin=1\">Devenir administrateur</a></li>\n";
2019-09-06 11:48:50 +00:00
}
if ($_SESSION["role"] != Role::ORGANIZER) {
echo "<li><a href=\"?be-organizer=1\">Devenir organisateur</a></li>\n";
2019-09-06 11:48:50 +00:00
}
if ($_SESSION["role"] != Role::PARTICIPANT) {
echo "<li><a href=\"?be-participant=1\">Devenir participant</a></li>\n";
2019-09-06 11:48:50 +00:00
}
if ($_SESSION["role"] != Role::ENCADRANT) {
echo "<li><a href=\"?be-encadrant=1\">Devenir encadrant</a></li>\n";
2019-09-06 11:48:50 +00:00
}
?>
<?php } ?>
</ul>
<div id="main-container">
<div id="main-content">
2019-08-21 20:56:46 +00:00
<div class="container-fluid">