132 lines
1.7 KiB
PHP
Executable File
132 lines
1.7 KiB
PHP
Executable File
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
require_once __ROOT__.'/manager/autoloader.php';
|
|
?>
|
|
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
<nav class='sub-menu-side'>
|
|
<span data-sublink='analytics'>
|
|
<span class='svg'><?php echo file_get_contents( 'http://'.$_SERVER['HTTP_HOST'].'/f/svg/analytics/st/sub-menu-side' ); ?></span>
|
|
<span>Statistiques</span>
|
|
</span>
|
|
|
|
<span data-sublink='view' >
|
|
<span class='svg'><?php echo file_get_contents( 'http://'.$_SERVER['HTTP_HOST'].'/f/svg/view/st/sub-menu-side' ); ?></span>
|
|
<span>Consulter le suivi</span>
|
|
</span>
|
|
|
|
<span data-sublink='start' >
|
|
<span class='svg'><?php echo file_get_contents( 'http://'.$_SERVER['HTTP_HOST'].'/f/svg/sync/st/sub-menu-side' ); ?></span>
|
|
<span>Demarrer un suivi</span>
|
|
</span>
|
|
|
|
<span data-sublink='search' >
|
|
<span class='svg'><?php echo file_get_contents( 'http://'.$_SERVER['HTTP_HOST'].'/f/svg/search/st/sub-menu-side' ); ?></span>
|
|
<span>Recherche</span>
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$post = array();
|
|
foreach($_POST as $k=>$v)
|
|
array_push($post, $k);
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
/* PAGE DES STATISTIQUES
|
|
*
|
|
*/
|
|
if( $sublink == 'analytics' ){
|
|
|
|
echo '<section>';
|
|
echo 'Statistiques';
|
|
var_dump( manager\Database::getPDO()->query('SELECT * from user')->fetchAll() );
|
|
echo '</section>';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CONSULTATION DU SUIVI
|
|
*
|
|
*/
|
|
if( $sublink == 'view' ){
|
|
|
|
echo '<section>';
|
|
echo 'Consultation du suivi';
|
|
echo '</section>';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* DEMARRER UN SUIVI
|
|
*
|
|
*/
|
|
if( $sublink == 'start' ){
|
|
|
|
echo '<section>';
|
|
echo 'Demarrer un suivi';
|
|
echo '</section>';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* RECHERCHE
|
|
*
|
|
*/
|
|
if( $sublink == 'search' ){
|
|
|
|
echo '<section>';
|
|
echo 'Recherche';
|
|
echo '</section>';
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|