Affichage résultats (étu)

This commit is contained in:
xdrm-brackets 2016-01-09 17:08:25 +01:00
parent b4d0d3eaf0
commit 6f541c94e7
2 changed files with 16 additions and 3 deletions

View File

@ -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.'%'

View File

@ -201,9 +201,21 @@ if( permission('admin') ){ // si on est admin
if( $answerEtu->request == 'success' ){
echo "<section name='search' data-title='recherche'>";
echo "<section name='search' data-title='recherche' class='basic'>";
var_dump($answerEtu->results);
echo "<table class='basic col4'>";
echo "<tbody>";
echo "<tr class='transparentbg noborder'><td colspan=4><strong>ÉTUDIANTS</strong></td></tr>";
foreach($answerEtu->results as $ETUDIANT){
echo "<tr>";
echo "<td><span class='link' data-etu='".$ETUDIANT['identifiant']."'>".$ETUDIANT['identifiant']."</span></td>";
echo "<td>".$ETUDIANT['prenom']."</td>";
echo "<td>".$ETUDIANT['nom']."</td>";
echo "<td>".$ETUDIANT['mail']."</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</section>";