135 lines
4.5 KiB
PHP
Executable File
135 lines
4.5 KiB
PHP
Executable File
<?php define('__ROOT__', dirname(__FILE__) );
|
|
require_once __ROOT__.'/manager/security.php';
|
|
|
|
/* VARIABLES DES NOTIFICATIONS */
|
|
$notifNotifNum = 5;
|
|
|
|
?>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Système d'Information du Département Informatique</title>
|
|
|
|
<!-- Informations de la page -->
|
|
<meta charset='utf-8'>
|
|
<meta name='author' content='Aurélien CLERAC; Cédric ELOUNDOU; Guillaume FAUVET; Adrien MARQUES {xdrm}'>
|
|
<meta name='desctiption' content="Système d'Information du Département Informatique" >
|
|
|
|
<!-- Dépendences CSS -->
|
|
<link type='text/css' rel='stylesheet' href='css/font.css' /> <!-- Positionnement global des pages -->
|
|
<link type='text/css' rel='stylesheet' href='css/layout.css' /> <!-- Positionnement global des pages -->
|
|
<link type='text/css' rel='stylesheet' href='css/header.css' /> <!-- Gestion du header -->
|
|
<link type='text/css' rel='stylesheet' href='css/container.css'/> <!-- Gestion du container -->
|
|
<link type='text/css' rel='stylesheet' href='css/menu.css' /> <!-- Gestion du menu -->
|
|
<link type='text/css' rel='stylesheet' href='css/global.css' /> <!-- Style global -->
|
|
|
|
|
|
<!-- Dépendences Javascript -->
|
|
<script type='text/javascript' src='API.js' ></script> <!-- Gestion des raccourcis clavier -->
|
|
<script type='text/javascript' src='js/pageManager.js' ></script> <!-- Gestion des raccourcis clavier -->
|
|
<script type='text/javascript' src='js/shortcut.js' ></script> <!-- Gestion des raccourcis clavier -->
|
|
<script type='text/javascript' src='js/dragndrop.js' ></script> <!-- Gestion des raccourcis clavier -->
|
|
|
|
</head>
|
|
<body><!-- CORPS DE LA PAGE -->
|
|
|
|
<div id='DRAGNDROP'></div>
|
|
|
|
|
|
<div id='WRAPPER'>
|
|
|
|
<!-- MENU DE LA PAGE -->
|
|
<nav id='MENU'>
|
|
<?php
|
|
if( $_SESSION['identifiant'] != null ) // si $_SESSION['identifiant'] est défini
|
|
echo "<div class='userdata M'>".$_SESSION['identifiant']."</div>";
|
|
else
|
|
echo "<div class='userdata'>Connexion</div>";
|
|
?>
|
|
<span data-link='home' >Accueil </span>
|
|
<?php if( $_SESSION['identifiant'] != null ){ ?>
|
|
<span data-link='groups' >Composition</span>
|
|
<span data-link='modules' >Modules </span>
|
|
<span data-link='career' >Parcours </span>
|
|
<span data-link='settings'>Paramètres </span>
|
|
<?php } ?>
|
|
</nav>
|
|
|
|
<!-- HEADER DE LA PAGE -->
|
|
<div id='HEADER'>
|
|
<div class='notifbar'>
|
|
|
|
<!-- bouton d'ouverture du formulaire de connection/déconnection -->
|
|
<?php
|
|
|
|
|
|
|
|
if( $_SESSION['identifiant'] != null ){ // si l'utilisateur est connecté, on affiche les notifications
|
|
|
|
/* BOUTON DE DECONNECTION */
|
|
echo "<div id='LOGOUT' data-info='Déconnection'></div>";
|
|
|
|
/* NOTIFICATIONS */
|
|
|
|
/* membres */
|
|
// if( $memberNotifNum > 0 ) echo "<div class='member' data-num='".$memberNotifNum."'></div>";
|
|
// else echo "<div class='member'></div>";
|
|
|
|
// messages
|
|
// if( $messageNotifNum > 0 ) echo "<div class='message' data-num='".$messageNotifNum."'></div>";
|
|
// else echo "<div class='message'></div>";
|
|
|
|
/* notifications */
|
|
if( $notifNotifNum > 0 ) echo "<div class='notification' data-num='".$notifNotifNum."'></div>";
|
|
else echo "<div class='notification'></div>";
|
|
|
|
}else // si l'utilisateur n'est pas connecté on affiche le bouton de CONNECTION
|
|
echo "<div id='LOGOUT' data-info='Connexion'></div>";
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<nav class='subsections'></nav>
|
|
<input type='text' placeholder='Type for search' class='searchbar'>
|
|
</div>
|
|
|
|
<!-- CONTENEUR DE LA PAGE -->
|
|
<div id='CONTAINER'></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id='AUTH_FILTER'></div>
|
|
<?php if( $_SESSION['identifiant'] == null ){ // si on est pas connecté ?>
|
|
<form id='AUTH' action='' method='POST'>
|
|
<label>Connexion</label>
|
|
<input type='text' name='identifiant' placeholder='Username'>
|
|
<input type='password' name='mdp' placeholder='Password'>
|
|
<span class='errorbox'> </span>
|
|
<input type='button' value='Connection'>
|
|
</form>
|
|
<?php }else{ // si on est connecté ?>
|
|
<form id='AUTH' action='' method='POST'>
|
|
<label>Déconnection</label>
|
|
<input type='button' value='Déconnection'>
|
|
</form>
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Dépendences Javascript après chargement des éléments -->
|
|
<script type='text/javascript' src='js/actionScript.js'></script>
|
|
|
|
</body>
|
|
</html>
|