$v) array_push($post, $k); $sublink = $post[0]; /* [1] Affichage des machines =========================================================*/ $request = new ModuleRequest('machineDefault/getAll'); // On utilise la methode 'getAll' du module 'machineDefault' $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('machines') as $machine){ $clusters = new Repo('machine/getClusters', array($machine['id_machine'])); $clusters = $clusters->answer(); echo "
"; // Prenom Nom echo "#".$machine['name'].""; // Code RFID echo ""; echo ResourceDispatcher::getResource('f/svg/card/st/container'); echo ""; echo $machine['code']; 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""; // 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 ""; echo "
"; } var_dump( $answer->get('machines') ); } echo '
'; /* [2] Creation de machine =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
'; /* [3] Suppression de machine =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
'; /* [4] Modification de machine =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
';