Gestion aucun résultat uniquement pour étudiants

This commit is contained in:
xdrm-brackets 2016-01-09 17:47:07 +01:00
parent 265d221496
commit 20e5329df5
1 changed files with 5 additions and 0 deletions

View File

@ -206,6 +206,11 @@ if( permission('admin') ){ // si on est admin
echo "<table class='basic col4'>";
echo "<tbody>";
echo "<tr class='transparentbg noborder'><td colspan=4><strong>ÉTUDIANTS</strong></td></tr>";
// si aucun étudiant trouvé
if( count($answerEtu->results) == 0 )
echo "<tr><td colspan=4>Aucun étudiant trouvé</td></tr>";
foreach($answerEtu->results as $ETUDIANT){
echo "<tr>";
echo "<td><span class='link' data-etu='".$ETUDIANT['identifiant']."'>".$ETUDIANT['identifiant']."</span></td>";