63 lines
1.8 KiB
PHP
Executable File
63 lines
1.8 KiB
PHP
Executable File
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
require_once __ROOT__.'/manager/autoloader.php';
|
|
use \manager\ModuleRequest;
|
|
use \manager\ManagerError;
|
|
use \manager\ResourceDispatcher;
|
|
use \manager\Repo;
|
|
?>
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
<nav class='sub-menu-side'>
|
|
<span data-sublink='view'>
|
|
<span class='svg'><?php echo ResourceDispatcher::getResource( 'f/svg/view/st/sub-menu-side' ); ?></span>
|
|
<span>Tout afficher</span>
|
|
</span>
|
|
|
|
<span data-sublink='filter' >
|
|
<span class='svg'><?php echo ResourceDispatcher::getResource( 'f/svg/filter/st/sub-menu-side' ); ?></span>
|
|
<span>Filtrer</span>
|
|
</span>
|
|
|
|
<span data-sublink='search' >
|
|
<span class='svg'><?php echo ResourceDispatcher::getResource( 'f/svg/search/st/sub-menu-side' ); ?></span>
|
|
<span>Recherche</span>
|
|
</span>
|
|
|
|
<span data-sublink='remove' >
|
|
<span class='svg'><?php echo ResourceDispatcher::getResource( 'f/svg/remove/st/sub-menu-side' ); ?></span>
|
|
<span>Vider l'historique</span>
|
|
</span>
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$post = [];
|
|
foreach($_POST as $k=>$v)
|
|
array_push($post, $k);
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
|
|
/* [1] VIEW -> Liste des utilisateurs
|
|
=========================================================*/
|
|
$getusers = new ModuleRequest('userDefault/getAll'); // On utilise la methode 'getAll' du module 'userDefault'
|
|
$nbusers = count( $getusers->dispatch()->get('users') ); // On recupere la reponse
|
|
|
|
$getmachines = new ModuleRequest('machineDefault/getAll'); // On utilise la methode 'getAll' du module 'machineDefault'
|
|
$nbmachines = count( $getmachines->dispatch()->get('machines') ); // On recupere la reponse
|
|
|
|
echo "<section data-sublink='view' class='list'>";
|
|
|
|
// Barre de recherche
|
|
echo "<input type='text' class='searchbar' placeholder='Recherche'>";
|
|
|
|
|
|
echo '</section>';
|
|
|