Modifications mineures
This commit is contained in:
parent
a08dc1ac29
commit
55223f73a3
5
todo.md
5
todo.md
|
@ -7,6 +7,11 @@
|
||||||
############
|
############
|
||||||
# EN COURS #
|
# EN COURS #
|
||||||
############
|
############
|
||||||
|
|
||||||
|
|
||||||
|
- [ ] [view/users] Gestion des filtres
|
||||||
|
- [ ] [view/machines] Gestion des filtres
|
||||||
|
|
||||||
- [ ] [?] Plusieurs pages pour listes
|
- [ ] [?] Plusieurs pages pour listes
|
||||||
- [ ] [?] Gestion de la mise a jour de la liste d'utilisateurs lors de l'ajout/modif/suppr
|
- [ ] [?] 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\ModuleRequest;
|
||||||
use \manager\ManagerError;
|
use \manager\ManagerError;
|
||||||
use \manager\ResourceDispatcher;
|
use \manager\ResourceDispatcher;
|
||||||
|
use \manager\Repo;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- [1] Gestion du sous-menu de gauche -->
|
<!-- [1] Gestion du sous-menu de gauche -->
|
||||||
|
|
||||||
<nav class='sub-menu-side'>
|
<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 class='svg'><?php echo ResourceDispatcher::getResource( 'f/svg/view/st/sub-menu-side' ); ?></span>
|
||||||
<span>Tout afficher</span>
|
<span>Tout afficher</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -32,6 +33,30 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<section>
|
|
||||||
Bienvenue sur le DASHBOARD
|
<?php
|
||||||
</section>
|
|
||||||
|
$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>';
|
||||||
|
|
||||||
|
|
|
@ -225,4 +225,25 @@
|
||||||
echo "<button id='edit_submit' disabled>Modifier</button>";
|
echo "<button id='edit_submit' disabled>Modifier</button>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
|
echo '</section>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* [4] Gestion de filtrage
|
||||||
|
=========================================================*/
|
||||||
|
echo "<section data-sublink='filter'>";
|
||||||
|
|
||||||
|
echo "<form class='neutral'>";
|
||||||
|
|
||||||
|
echo "</form>";
|
||||||
|
|
||||||
echo '</section>';
|
echo '</section>';
|
Loading…
Reference in New Issue