$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 "
"; // Barre de recherche echo ""; /* (1) On récupère les données ---------------------------------------------------------*/ $selReq = Database::getPDO()->query("select count(distinct id_user) as users, max(timestamp) as last from history group by id_machine"); $selected = Database::delNumeric( $selReq->fetchAll() ); foreach($selected as $m=>$mac){ echo "
" } echo '
';