2016-10-18 14:03:03 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
|
|
|
|
require_once __ROOT__.'/autoloader.php';
|
|
|
|
use \api\core\ModuleRequest;
|
2016-02-13 17:47:20 +00:00
|
|
|
use \manager\ManagerError;
|
2016-10-18 14:03:03 +00:00
|
|
|
use \orm\core\Table;
|
2016-02-03 22:22:18 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
|
2016-02-02 13:03:22 +00:00
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
|
2016-02-02 22:29:30 +00:00
|
|
|
<nav class='sub-menu-side'>
|
2016-02-03 09:13:31 +00:00
|
|
|
<span data-sublink='analytics'>
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/analytics.svg' ); ?></span>
|
2016-02-03 09:13:31 +00:00
|
|
|
<span>Statistiques</span>
|
2016-02-03 07:45:42 +00:00
|
|
|
</span>
|
|
|
|
|
2016-02-03 09:13:31 +00:00
|
|
|
<span data-sublink='view' >
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/view.svg' ); ?></span>
|
2016-02-03 09:13:31 +00:00
|
|
|
<span>Consulter le suivi</span>
|
2016-02-03 07:45:42 +00:00
|
|
|
</span>
|
|
|
|
|
2016-02-03 09:13:31 +00:00
|
|
|
<span data-sublink='start' >
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/sync.svg' ); ?></span>
|
2016-02-03 09:13:31 +00:00
|
|
|
<span>Demarrer un suivi</span>
|
2016-02-03 07:45:42 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span data-sublink='search' >
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/search.svg' ); ?></span>
|
2016-02-03 07:45:42 +00:00
|
|
|
<span>Recherche</span>
|
|
|
|
</span>
|
|
|
|
|
2016-02-02 13:03:22 +00:00
|
|
|
</nav>
|
|
|
|
|
2016-02-03 10:30:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-03 11:40:01 +00:00
|
|
|
<?php
|
2016-02-03 10:30:46 +00:00
|
|
|
|
2016-07-04 13:45:29 +00:00
|
|
|
$post = [];
|
2016-02-03 11:40:01 +00:00
|
|
|
foreach($_POST as $k=>$v)
|
|
|
|
array_push($post, $k);
|
2016-02-03 10:30:46 +00:00
|
|
|
|
2016-02-03 11:40:01 +00:00
|
|
|
$sublink = $post[0];
|
2016-02-03 10:30:46 +00:00
|
|
|
|
2016-02-03 11:40:01 +00:00
|
|
|
|
|
|
|
/* PAGE DES STATISTIQUES
|
|
|
|
*
|
|
|
|
*/
|
2016-02-06 10:41:50 +00:00
|
|
|
// if( $sublink == 'analytics' ){
|
2016-02-03 11:40:01 +00:00
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
echo "<section data-sublink='analytics'>";
|
2016-02-03 11:40:01 +00:00
|
|
|
echo 'Statistiques';
|
2016-08-06 09:32:50 +00:00
|
|
|
var_dump( Table::get('user')->select('*')->fetch() );
|
2016-02-03 11:40:01 +00:00
|
|
|
echo '</section>';
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
// }
|
2016-02-03 11:40:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CONSULTATION DU SUIVI
|
|
|
|
*
|
|
|
|
*/
|
2016-02-06 10:41:50 +00:00
|
|
|
// if( $sublink == 'view' ){
|
2016-02-03 11:40:01 +00:00
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
echo "<section data-sublink='view'>";
|
2016-02-03 11:40:01 +00:00
|
|
|
echo 'Consultation du suivi';
|
|
|
|
echo '</section>';
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
// }
|
2016-02-03 11:40:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* DEMARRER UN SUIVI
|
|
|
|
*
|
|
|
|
*/
|
2016-02-06 10:41:50 +00:00
|
|
|
// if( $sublink == 'start' ){
|
2016-02-03 11:40:01 +00:00
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
echo "<section data-sublink='start'>";
|
2016-02-03 11:40:01 +00:00
|
|
|
echo 'Demarrer un suivi';
|
|
|
|
echo '</section>';
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
// }
|
2016-02-03 11:40:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* RECHERCHE
|
|
|
|
*
|
|
|
|
*/
|
2016-02-06 10:41:50 +00:00
|
|
|
// if( $sublink == 'search' ){
|
2016-02-03 11:40:01 +00:00
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
echo "<section data-sublink='search'>";
|
2016-02-03 11:40:01 +00:00
|
|
|
echo 'Recherche';
|
|
|
|
echo '</section>';
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
// }
|
2016-02-03 11:40:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-08 15:04:41 +00:00
|
|
|
?>
|