From 6f541c94e7c5ba1982a5ed4e9407cd5a85ed1496 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 9 Jan 2016 17:08:25 +0100 Subject: [PATCH] =?UTF-8?q?Affichage=20r=C3=A9sultats=20(=C3=A9tu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/repo/group.php | 3 ++- page/home.php | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) 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 "
";