$v) array_push($post, $k); $sublink = $post[0]; /* [1] VIEW -> Liste des utilisateurs =========================================================*/ $request = new ModuleRequest('userDefault/getAll'); // On utilise la methode 'getAll' du module 'userDefault' $answer = $request->dispatch(); // On recupere la reponse echo "
"; // echo 'Liste des utilisateurs:
'; // si erreur, on affiche l'explicitation if( $answer->error != ManagerError::Success ) var_dump( ManagerError::explicit($answer->error) ); // Si aucune erreur, on affiche les resultats else{ // Barre de recherche echo ""; // Liste des utilisateurs foreach( $answer->get('users') as $user){ $clusters = new Repo('user/getClusters', array($user['id_user'])); $clusters = $clusters->answer(); echo "
"; // Prenom Nom echo "".$user['firstname']." ".$user['lastname']." #".$user['username'].""; // Icone vers la modification echo ""; echo ResourceDispatcher::getResource('f/svg/edit/st/sub-menu-side'); echo ""; // Icone vers la suppression echo ""; echo ResourceDispatcher::getResource('f/svg/remove/st/sub-menu-side'); echo ""; // Code RFID echo ""; echo ResourceDispatcher::getResource('f/svg/card/st/container'); echo ""; echo $user['code']; echo ""; echo""; // Adresse email echo ""; echo ResourceDispatcher::getResource('f/svg/mail/st/container'); echo ""; echo $user['mail']; echo ""; echo""; // Groupes de la machine echo ""; echo ResourceDispatcher::getResource('f/svg/group/st/container'); if( $clusters != false ) foreach($clusters as $cluster) echo "".$cluster['name'].""; echo""; echo "
"; } } echo '
'; /* [2] Creation d'utilisateur =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
'; /* [3] Suppression d'utilisateur =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
'; /* [4] Modification d'utilisateur =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
';