$v) array_push($post, $k); $sublink = $post[0]; // On recupere toutes les machines debug(); $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""; echo "
"; } var_dump( $answer->get('machines') ); } echo '
'; /* [2] Creation de machine =========================================================*/ echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo '
';