SMMP/public_html/view/extensions.php

135 lines
1.8 KiB
PHP
Raw Normal View History

2016-10-18 14:03:03 +00:00
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
require_once __ROOT__.'/vendor/autoload.php';
2017-01-30 17:39:21 +00:00
use \api\core\Request;
2016-10-18 14:03:03 +00:00
use \orm\core\Table;
?>
<!-- [1] Gestion du sous-menu de gauche -->
<nav class='sub-menu-side'>
<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>
<span>Général</span>
</span>
<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>
<span>Consulter le suivi</span>
</span>
<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>
<span>Demarrer un suivi</span>
</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>
<span>Recherche</span>
</span>
</nav>
<?php
2016-07-04 13:45:29 +00:00
$post = [];
foreach($_POST as $k=>$v)
array_push($post, $k);
$sublink = $post[0];
/* PAGE DES STATISTIQUES
*
*/
// if( $sublink == 'analytics' ){
echo "<section data-sublink='analytics'>";
echo 'Statistiques';
2016-08-06 09:32:50 +00:00
var_dump( Table::get('user')->select('*')->fetch() );
echo '</section>';
// }
/* CONSULTATION DU SUIVI
*
*/
// if( $sublink == 'view' ){
echo "<section data-sublink='view'>";
echo 'Consultation du suivi';
echo '</section>';
// }
/* DEMARRER UN SUIVI
*
*/
// if( $sublink == 'start' ){
echo "<section data-sublink='start'>";
echo 'Demarrer un suivi';
echo '</section>';
// }
/* RECHERCHE
*
*/
// if( $sublink == 'search' ){
echo "<section data-sublink='search'>";
echo 'Recherche';
echo '</section>';
// }
?>