127 lines
5.5 KiB
PHP
Executable File
127 lines
5.5 KiB
PHP
Executable File
<?php use \manager\ResourceDispatcher;
|
|
use \manager\MenuManager; ?>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>SOCIOVIEW - Tableau de bord</title>
|
|
|
|
<!-- Informations de la page -->
|
|
<meta name='Content-Type' content='text/html; charset=utf-8'>
|
|
<meta charset='utf-8'>
|
|
<meta name='author' content='Adrien MARQUÈS alias {xdrm};'>
|
|
<meta name='description' content="Tableau de bord pour une enquete sociologique sur les liens sociaux entre les reseaux sociaux et la vie hors-ligne">
|
|
|
|
<!-- Dépendences CSS -->
|
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans|Noto+Serif|Inconsolata' rel='stylesheet' type='text/css'>
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/reset' /> <!-- Reset du css natif des browsers -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/font' /> <!-- Positionnement global des pages -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/layout' /> <!-- Positionnement global des pages -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/header' /> <!-- Gestion du header -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/menu-side' /> <!-- Gestion du menu -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/container' /> <!-- Gestion du container -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/global' /> <!-- Style global -->
|
|
<link type='text/css' rel='stylesheet' href='/f/css/min/css/notif' /> <!-- Inclusion du system de notifs -->
|
|
|
|
|
|
<!-- Dépendences Javascript -->
|
|
<script type='text/javascript' src='/f/js/crc32-min/js/lib' ></script> <!-- Système de hash unique et rapide -->
|
|
<script type='text/javascript' src='/f/js/local-storage-interface-min/js/lib' ></script> <!-- Interface de gestion du 'localStorage' -->
|
|
<script type='text/javascript' src='/f/js/html-builder-min/js/lib' ></script> <!-- Gestion de construction de HTML -->
|
|
<script type='text/javascript' src='/f/js/input-checker-min/js/lib' ></script> <!-- Gestion dynamique des saisies -->
|
|
<script type='text/javascript' src='/f/js/form-deflater-min/js/lib' ></script> <!-- Gestion des formulaires js-friendly -->
|
|
<script type='text/javascript' src='/f/js/reset-min/js/lib' ></script> <!-- Corrections Javascript natif (ajouts) -->
|
|
<script type='text/javascript' src='/f/js/api-min/js/lib' ></script> <!-- Gestion des transactions avec le serveur -->
|
|
<script type='text/javascript' src='/f/js/page-manager-min/js/lib' ></script> <!-- Gestion réseau/chargement/liens/URL -->
|
|
<script type='text/javascript' src='/f/js/notif-min/js/lib' ></script> <!-- Gestion des notifications -->
|
|
<script type='text/javascript' src='/f/js/shortcut-manager/js/lib' ></script> <!-- Gestion des raccourcis clavier -->
|
|
|
|
<!-- Dépendences Spéficiques pré-chargeables -->
|
|
<script type='text/javascript' src='/f/js/input-html-phone-data-min/js/includes' ></script> <!-- Gestion du constructeur HTML pour la page d'acquisition 'phone' -->
|
|
<script type='text/javascript' src='/f/js/input-html-facebook-data-min/js/includes' ></script> <!-- Gestion du constructeur HTML pour la page d'acquisition 'facebook' -->
|
|
|
|
<!-- Librairies Externes Javascript -->
|
|
<script type='text/javascript' src='/f/js/_charts-min/js/lib' ></script> <!-- Librairie pour les graphiques -->
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<!-- LOGIN -->
|
|
<?php if( connected() ) echo "<div id='LOGIN'>";
|
|
else echo "<div id='LOGIN' class='active'>"; ?>
|
|
|
|
<?php //var_dump(session_id()); ?>
|
|
<div id='login-icon'></div>
|
|
<div id='login-close'>Accéder à la plateforme</div>
|
|
|
|
<form method='POST' action='' id='login-form'>
|
|
|
|
<!-- SI ON EST PAS CONNECTE -> FORMULAIRE DE LOGIN -->
|
|
<?php if( !connected() ){ ?>
|
|
<input type='text' placeholder='Identifiant ou adresse mail' name='login' id='login-login'>
|
|
<input type='password' placeholder='Mot de passe' name='password' id='login-password'>
|
|
<input type='submit' value='Connexion' name='login-sub'>
|
|
|
|
<span id='lost-password'>Mot de passe oublié ?</span>
|
|
|
|
<!-- SI ON EST CONNECTE -> FORMULAIRE DE LOGOUT -->
|
|
<?php }else{ ?>
|
|
<input type='submit' value='Déconnexion' name='logout-sub'>
|
|
<?php } ?>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<!-- CONTENEUR DES NOTIFICATIONS -->
|
|
<div id='notification-container'></div>
|
|
|
|
|
|
|
|
<!-- CORPS DE LA PAGE -->
|
|
<div id='WRAPPER'>
|
|
|
|
<!-- HEADER DE LA PAGE -->
|
|
<div id='HEADER'>
|
|
|
|
<!-- ZONE DE RECHERCHE -->
|
|
<input type='text' placeholder='Recherche...' id='searchbar'>
|
|
|
|
<!-- ZONE UTILISATEUR -->
|
|
<div id='user-data'>
|
|
<?php if( connected() ){
|
|
echo "<span id='user-name'>".$_SESSION['username']."</span>";
|
|
echo "<span id='user-picture' class='active'></span>";
|
|
}else{
|
|
echo "<span id='user-name'>Me connecter</span>";
|
|
echo "<span id='user-picture'></span>";
|
|
}?>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- MENU DE LA PAGE -->
|
|
<nav id='MENU-SIDE'>
|
|
<?php
|
|
$menuInflater = new MenuManager();
|
|
echo $menuInflater->inflate();
|
|
?>
|
|
</nav>
|
|
|
|
|
|
<!-- CONTENEUR DE LA PAGE -->
|
|
<div id='CONTAINER'></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Dépendences Javascript après chargement des éléments -->
|
|
<script type='text/javascript' src='/f/js/action-script-min/js'></script>
|
|
|
|
</body>
|
|
</html>
|