2015-10-23 11:08:33 +00:00
|
|
|
<?php define('__ROOT__', dirname(__FILE__) );
|
|
|
|
require_once __ROOT__.'/manager/security.php';
|
|
|
|
|
2015-10-21 17:13:56 +00:00
|
|
|
/* VARIABLES DES NOTIFICATIONS */
|
2015-10-28 17:08:12 +00:00
|
|
|
$notifNotifNum = 5;
|
2015-10-21 17:13:56 +00:00
|
|
|
|
2015-10-20 08:44:40 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2015-10-22 12:05:10 +00:00
|
|
|
<title>Système d'Information du Département Informatique</title>
|
2015-10-20 08:44:40 +00:00
|
|
|
|
|
|
|
<!-- Informations de la page -->
|
|
|
|
<meta charset='utf-8'>
|
2015-11-06 13:05:14 +00:00
|
|
|
<meta name='author' content='Adrien MARQUES {xdrm}; Aurélien CLERAC; Adrien MARQUES {xdrm}; Cédric ELOUNDOU; Adrien MARQUES {xdrm}; Guillaume FAUVET; Adrien MARQUES {xdrm}'>
|
|
|
|
<meta name='desctiption' content="Système d'Information du Département Informatique" >
|
2015-10-20 08:44:40 +00:00
|
|
|
|
|
|
|
<!-- Dépendences CSS -->
|
2015-10-22 11:50:56 +00:00
|
|
|
<link type='text/css' rel='stylesheet' href='css/font.css' /> <!-- Positionnement global des pages -->
|
2015-10-20 08:44:40 +00:00
|
|
|
<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 -->
|
2015-10-21 20:56:56 +00:00
|
|
|
<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 -->
|
2015-10-26 00:32:18 +00:00
|
|
|
<script type='text/javascript' src='js/dragndrop.js' ></script> <!-- Gestion des raccourcis clavier -->
|
2015-10-20 08:44:40 +00:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body><!-- CORPS DE LA PAGE -->
|
2015-10-31 16:25:19 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
if( $_SESSION['identifiant'] != null ){
|
|
|
|
echo "<input type='hidden' name='identifiant' value='".$_SESSION['identifiant']."'>";
|
|
|
|
echo "<input type='hidden' name='droits' value='".$_SESSION['droits']."' >";
|
|
|
|
echo "<input type='hidden' name='semestre' value='".$_SESSION['semestre']."' >";
|
|
|
|
echo "<input type='hidden' name='annee' value='".$_SESSION['annee']."' >";
|
|
|
|
}
|
|
|
|
?>
|
2015-10-26 00:32:18 +00:00
|
|
|
|
|
|
|
<div id='DRAGNDROP'></div>
|
2015-10-20 08:44:40 +00:00
|
|
|
|
|
|
|
|
2015-10-21 08:53:45 +00:00
|
|
|
<div id='WRAPPER'>
|
2015-10-21 11:22:34 +00:00
|
|
|
|
2015-10-20 20:10:38 +00:00
|
|
|
<!-- MENU DE LA PAGE -->
|
|
|
|
<nav id='MENU'>
|
2015-10-21 22:27:12 +00:00
|
|
|
<?php
|
2015-10-28 17:08:12 +00:00
|
|
|
if( $_SESSION['identifiant'] != null ) // si $_SESSION['identifiant'] est défini
|
|
|
|
echo "<div class='userdata M'>".$_SESSION['identifiant']."</div>";
|
2015-10-21 22:27:12 +00:00
|
|
|
else
|
2015-10-23 08:04:26 +00:00
|
|
|
echo "<div class='userdata'>Connexion</div>";
|
2015-10-21 22:27:12 +00:00
|
|
|
?>
|
2015-10-22 21:06:25 +00:00
|
|
|
<span data-link='home' >Accueil </span>
|
2015-10-28 17:08:12 +00:00
|
|
|
<?php if( $_SESSION['identifiant'] != null ){ ?>
|
2015-10-22 21:06:25 +00:00
|
|
|
<span data-link='groups' >Composition</span>
|
2015-10-29 23:01:35 +00:00
|
|
|
<span data-link='modules' >Modules </span>
|
|
|
|
<span data-link='career' >Parcours </span>
|
2015-10-22 21:06:25 +00:00
|
|
|
<span data-link='settings'>Paramètres </span>
|
2015-10-28 17:08:12 +00:00
|
|
|
<?php } ?>
|
2015-10-20 20:10:38 +00:00
|
|
|
</nav>
|
2015-10-20 08:44:40 +00:00
|
|
|
|
2015-10-21 11:22:34 +00:00
|
|
|
<!-- HEADER DE LA PAGE -->
|
|
|
|
<div id='HEADER'>
|
|
|
|
<div class='notifbar'>
|
2015-10-22 16:55:26 +00:00
|
|
|
|
|
|
|
<!-- bouton d'ouverture du formulaire de connection/déconnection -->
|
|
|
|
<?php
|
|
|
|
|
2015-10-22 08:29:43 +00:00
|
|
|
|
2015-10-22 16:55:26 +00:00
|
|
|
|
2015-10-28 17:08:12 +00:00
|
|
|
if( $_SESSION['identifiant'] != null ){ // si l'utilisateur est connecté, on affiche les notifications
|
2015-10-22 16:55:26 +00:00
|
|
|
|
|
|
|
/* BOUTON DE DECONNECTION */
|
2015-11-04 08:15:35 +00:00
|
|
|
echo "<div id='LOGOUT' data-info='Déconnexion'></div>";
|
2015-10-22 16:55:26 +00:00
|
|
|
|
|
|
|
/* 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 */
|
2015-10-23 08:04:26 +00:00
|
|
|
if( $notifNotifNum > 0 ) echo "<div class='notification' data-num='".$notifNotifNum."'></div>";
|
|
|
|
else echo "<div class='notification'></div>";
|
2015-10-22 16:55:26 +00:00
|
|
|
|
|
|
|
}else // si l'utilisateur n'est pas connecté on affiche le bouton de CONNECTION
|
2015-10-23 08:04:26 +00:00
|
|
|
echo "<div id='LOGOUT' data-info='Connexion'></div>";
|
2015-10-22 16:55:26 +00:00
|
|
|
|
2015-10-21 17:13:56 +00:00
|
|
|
?>
|
2015-10-22 16:55:26 +00:00
|
|
|
|
2015-10-21 11:22:34 +00:00
|
|
|
</div>
|
|
|
|
|
2015-10-30 11:52:50 +00:00
|
|
|
<nav class='subsections'></nav>
|
2015-10-21 11:22:34 +00:00
|
|
|
<input type='text' placeholder='Type for search' class='searchbar'>
|
|
|
|
</div>
|
2015-10-20 08:44:40 +00:00
|
|
|
|
2015-10-21 08:53:45 +00:00
|
|
|
<!-- CONTENEUR DE LA PAGE -->
|
2015-10-21 20:56:56 +00:00
|
|
|
<div id='CONTAINER'></div>
|
2015-10-20 08:44:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-21 11:22:34 +00:00
|
|
|
|
2015-10-21 08:53:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2015-10-21 22:13:58 +00:00
|
|
|
|
2015-10-28 17:08:12 +00:00
|
|
|
<?php if( $_SESSION['identifiant'] == null ){ // si on est pas connecté ?>
|
2015-10-22 08:29:43 +00:00
|
|
|
<form id='AUTH' action='' method='POST'>
|
2015-10-23 08:04:26 +00:00
|
|
|
<label>Connexion</label>
|
2015-10-28 17:08:12 +00:00
|
|
|
<input type='text' name='identifiant' placeholder='Username'>
|
2015-11-03 11:09:14 +00:00
|
|
|
<input type='password' name='mdp' placeholder='Password'>
|
|
|
|
<span class='errorbox'> </span>
|
2015-11-04 08:15:35 +00:00
|
|
|
<input type='button' value='Connexion'>
|
2015-10-22 08:29:43 +00:00
|
|
|
</form>
|
|
|
|
<?php }else{ // si on est connecté ?>
|
|
|
|
<form id='AUTH' action='' method='POST'>
|
2015-11-04 08:15:35 +00:00
|
|
|
<label>Déconnexion</label>
|
|
|
|
<input type='button' value='ME déconnecter'>
|
2015-10-22 08:29:43 +00:00
|
|
|
</form>
|
|
|
|
<?php } ?>
|
|
|
|
|
2015-10-21 22:13:58 +00:00
|
|
|
|
2015-10-21 08:53:45 +00:00
|
|
|
|
2015-10-20 08:44:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Dépendences Javascript après chargement des éléments -->
|
|
|
|
<script type='text/javascript' src='js/actionScript.js'></script>
|
|
|
|
|
|
|
|
</body>
|
2015-10-20 21:41:55 +00:00
|
|
|
</html>
|