sid/index.php

139 lines
5.0 KiB
PHP
Raw Normal View History

2015-10-23 11:08:33 +00:00
<?php define('__ROOT__', dirname(__FILE__) );
require_once __ROOT__.'/manager/security.php';
/* VARIABLES DES NOTIFICATIONS */
$notifNotifNum = 5;
?>
<!DOCTYPE html>
<html>
<head>
2015-10-22 12:05:10 +00:00
<title>Système d'Information du Département Informatique</title>
<!-- Informations de la page -->
<meta name='Content-Type' content='text/html; charset=utf-8'>
<meta charset='utf-8'>
2016-01-07 11:23:47 +00:00
<meta name='author' content='Adrien MARQUÈS alias {xdrm};'>
<meta name='desctiption' content="Système d'Information du Département Informatique" >
<!-- 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 -->
<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='js/lib/adjust.js' ></script> <!-- Gestion des corrections Javascript -->
<script type='text/javascript' src='js/lib/API.js' ></script> <!-- Gestion des dialogues client/serveur -->
<script type='text/javascript' src='js/lib/page-manager.js' ></script> <!-- Gestion réseau/chargement/liens/URL -->
<script type='text/javascript' src='js/lib/shortcut-manager.js' ></script> <!-- Gestion des raccourcis clavier -->
</head>
2016-01-03 19:57:59 +00:00
<body class='trHoverActivated_'>
2016-01-03 19:57:59 +00:00
<!-- CORPS DE LA PAGE -->
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'>
<?php
if( $_SESSION['identifiant'] != null ) // si $_SESSION['identifiant'] est défini
echo "<div class='userdata ".$_SESSION['sexe']."'>".$_SESSION['identifiant']."</div>";
else
echo "<div class='userdata'>Connexion</div>";
?>
2015-10-22 21:06:25 +00:00
<span data-link='home' >Accueil </span>
<?php if( $_SESSION['identifiant'] != null ){ ?>
2015-11-26 13:38:04 +00:00
<span data-link='groups' >Groupes </span>
<span data-link='modules' >Modules </span>
2015-11-26 13:38:04 +00:00
<span data-link='career' >Notes </span>
2015-10-22 21:06:25 +00:00
<span data-link='settings'>Paramètres </span>
<div id="CURRENTYEAR">Année scolaire en cours<br><span><?php echo anneeScolaire($_SESSION['annee']); ?></span></div>
<?php } ?>
2015-10-20 20:10:38 +00:00
</nav>
2015-10-21 11:22:34 +00:00
<!-- 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éconnexion'></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>";
?>
2015-10-21 11:22:34 +00:00
</div>
<nav class='subsections'></nav>
2015-10-21 11:22:34 +00:00
<input type='text' placeholder='Type for search' class='searchbar'>
</div>
2015-10-21 08:53:45 +00:00
<!-- CONTENEUR DE LA PAGE -->
<div id='CONTAINER'></div>
2016-01-07 11:23:47 +00:00
<!-- LICENCE CREATIVE COMMONS -->
<a style='z-index:110; position: fixed; bottom: 10px; right: 10px;' rel="license" href="http://creativecommons.org/licenses/by/3.0/fr/">
2016-01-07 14:09:20 +00:00
<img alt="Licence Creative Commons" style="border-width:0" src="https://i.creativecommons.org/l/by/3.0/fr/88x31.png" />
</a>
2015-10-21 11:22:34 +00:00
2015-10-21 08:53:45 +00:00
</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'>&nbsp</span>
<input type='button' value='Connexion'>
</form>
<?php }else{ // si on est connecté ?>
<form id='AUTH' action='' method='POST'>
<label>Déconnexion</label>
<input type='button' value='ME déconnecter'>
</form>
<?php } ?>
2015-10-21 08:53:45 +00:00
2016-01-07 11:23:47 +00:00
<!-- Dépendences Javascript après chargement des éléments -->
<script type='text/javascript' src='js/action-script.js'></script>
</body>
</html>