diff --git a/manager/repo/group.php b/manager/repo/group.php index bf9e722..8e665d7 100755 --- a/manager/repo/group.php +++ b/manager/repo/group.php @@ -536,7 +536,8 @@ class groupRepo{ $statement = DataBase::getPDO()->prepare("SELECT * FROM utilisateur WHERE nom LIKE :a - OR prenom LIKE :b"); + OR prenom LIKE :b + ORDER BY identifiant, prenom, nom ASC"); $statement->execute(array( ':a' => '%'.$keyword.'%', ':b' => '%'.$keyword.'%' diff --git a/page/home.php b/page/home.php index cc9a5f8..5a0ccaf 100755 --- a/page/home.php +++ b/page/home.php @@ -201,9 +201,21 @@ if( permission('admin') ){ // si on est admin if( $answerEtu->request == 'success' ){ - echo "
"; + echo "
"; - var_dump($answerEtu->results); + echo ""; + echo ""; + echo ""; + foreach($answerEtu->results as $ETUDIANT){ + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo ""; + echo "
ÉTUDIANTS
".$ETUDIANT['identifiant']."".$ETUDIANT['prenom']."".$ETUDIANT['nom']."".$ETUDIANT['mail']."
"; echo "
";