Modifications mineures
This commit is contained in:
parent
865c2685f8
commit
d938f2f82f
5
todo.md
5
todo.md
|
@ -7,6 +7,11 @@
|
|||
############
|
||||
# EN COURS #
|
||||
############
|
||||
|
||||
|
||||
- [ ] [view/users] Gestion des filtres
|
||||
- [ ] [view/machines] Gestion des filtres
|
||||
|
||||
- [ ] [?] Plusieurs pages pour listes
|
||||
- [ ] [?] Gestion de la mise a jour de la liste d'utilisateurs lors de l'ajout/modif/suppr
|
||||
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
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='displayall'>
|
||||
<span data-sublink='view'>
|
||||
<span class='svg'><?php echo ResourceDispatcher::getResource( 'f/svg/view/st/sub-menu-side' ); ?></span>
|
||||
<span>Tout afficher</span>
|
||||
</span>
|
||||
|
@ -32,6 +33,30 @@
|
|||
|
||||
|
||||
|
||||
<section>
|
||||
Bienvenue sur le DASHBOARD
|
||||
</section>
|
||||
|
||||
<?php
|
||||
|
||||
$post = array();
|
||||
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>';
|
||||
|
||||
|
|
|
@ -226,3 +226,24 @@
|
|||
echo "</form>";
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* [4] Gestion de filtrage
|
||||
=========================================================*/
|
||||
echo "<section data-sublink='filter'>";
|
||||
|
||||
echo "<form class='neutral'>";
|
||||
|
||||
echo "</form>";
|
||||
|
||||
echo '</section>';
|
Loading…
Reference in New Issue