$v) array_push($post, $k); $sublink = $post[0]; /* PAGE DES STATISTIQUES * */ // if( $sublink == 'view' ){ // On recupere tous les utilisateurs debug(); $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{ foreach( $answer->get('users') as $user){ $clusters = new Repo('user/getClusters', array($user['id_user'])); $clusters = $clusters->answer(); echo "
"; // Prenom Nom echo "".$user['username']." (".$user['firstname']." ".$user['lastname'].")"; // 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 "
"; } var_dump( $answer->get('users') ); } echo '
'; // }