NxTIC/view.php

123 lines
4.9 KiB
PHP
Raw Normal View History

<?php use \manager\ResourceDispatcher; ?>
2016-04-12 08:21:12 +00:00
<!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:400,700,600,300' rel='stylesheet' type='text/css'>
<link type='text/css' rel='stylesheet' href='/f/css/reset/css' /> <!-- Reset du css natif des browsers -->
<link type='text/css' rel='stylesheet' href='/f/css/font/css' /> <!-- Positionnement global des pages -->
<link type='text/css' rel='stylesheet' href='/f/css/layout/css' /> <!-- Positionnement global des pages -->
<link type='text/css' rel='stylesheet' href='/f/css/header/css' /> <!-- Gestion du header -->
<link type='text/css' rel='stylesheet' href='/f/css/menu-side/css' /> <!-- Gestion du menu -->
<link type='text/css' rel='stylesheet' href='/f/css/container/css' /> <!-- Gestion du container -->
<link type='text/css' rel='stylesheet' href='/f/css/global/css' /> <!-- Style global -->
<!-- Dépendences Javascript -->
<script type='text/javascript' src='/f/js/input-checker/js/lib' ></script> <!-- Gestion dynamique des saisies -->
<script type='text/javascript' src='/f/js/reset/js/lib' ></script> <!-- Corrections Javascript natif (ajouts) -->
<script type='text/javascript' src='/f/js/api/js/lib' ></script> <!-- Gestion des transactions avec le serveur -->
<script type='text/javascript' src='/f/js/page-manager/js/lib' ></script> <!-- Gestion réseau/chargement/liens/URL -->
</head>
<body>
2016-04-12 08:21:12 +00:00
<!-- LOGIN -->
2016-04-12 12:27:54 +00:00
<?php if( connected() ) echo "<div id='LOGIN'>";
else echo "<div id='LOGIN' class='active'>"; ?>
<?php //var_dump(session_id()); ?>
2016-04-12 08:21:12 +00:00
<div id='login-icon'></div>
<div id='login-close'>Accéder à la plateforme</div>
2016-04-12 08:21:12 +00:00
<form method='POST' action='' id='login-form'>
<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' id='login-submit'>
<!-- Si on a de mauvais logins -->
<?php if( $_SESSION['login_status'] == 'error '){ echo "<span id='login-error'>Votre identifiant/mot de passe est incorrect.</span>"; } ?>
2016-04-12 12:27:54 +00:00
<span id='lost-password'>Mot de passe oublié ?</span>
</form>
2016-04-12 08:21:12 +00:00
</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'>
<span data-link='dashboard' class='sep'><?= ResourceDispatcher::getResource('f/svg/home/st/menu-side'); ?>Tableau de bord</span>
2016-04-10 16:27:38 +00:00
<div class='sub'>
<span data-sublink='presentation'>Presentation</span>
</div>
<span data-link='input' ><?= ResourceDispatcher::getResource('f/svg/input/st/menu-side'); ?>Acquisition</span>
2016-04-10 11:20:37 +00:00
<div class='sub'>
<span data-sublink='survey'>Questionnaire</span>
<span data-sublink='facebook'>Facebook</span>
<span data-sublink='telephone'>Journal telephonique</span>
2016-04-10 11:20:37 +00:00
</div>
2016-04-10 16:27:38 +00:00
<span data-link='analytics' ><?= ResourceDispatcher::getResource('f/svg/analytics/st/menu-side'); ?>Statistiques</span>
<span data-link='charts' class='sep'><?= ResourceDispatcher::getResource('f/svg/charts/st/menu-side'); ?>Visualisation</span>
<div class='sub'>
<span data-sublink='network'>Reseau</span>
</div>
2016-04-10 16:27:38 +00:00
<?php if( permission('admin') ){ ?>
<span data-link='settings' ><?= ResourceDispatcher::getResource('f/svg/settings/st/menu-side' ); ?>Paramètres</span>
<div class='sub'>
<span data-sublink='tokens'>Gestion des tokens</span>
<span data-sublink='users'>Gestion des utilisateurs</span>
</div>
<?php } ?>
</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/js'></script>
</body>
</html>