diff --git a/manager/database.php b/manager/database.php index 9afa77d..8935548 100755 --- a/manager/database.php +++ b/manager/database.php @@ -235,12 +235,11 @@ class DataBase{ $roleUsers = userRepo::getRoleUsers(); foreach($roleUsers as $iter=>$user){ - $uelist = $this->getModulesByUEByEnseignant($user['id'], null, $annee); - if( is_array($uelist) ) - $roleUsers[$iter]['uelist'] = $uelist; + $semestreList = $this->getModulesByUEByEnseignant($user['id'], null, $annee); + if( is_array($semestreList) ) $roleUsers[$iter]['semestreList'] = $semestreList; + else $roleUsers[$iter]['semestreList'] = null; } - var_dump( $roleUsers ); return $roleUsers; } diff --git a/page/settings.php b/page/settings.php index a43b29a..dc8af2d 100755 --- a/page/settings.php +++ b/page/settings.php @@ -55,6 +55,25 @@ if( permission('admin') ){ echo "
".$module['nom']." - ".$module['libelle']." | ".$ue['nom']." - ".$ue['libelle']." | ".$semestre['nom']." | "; + echo "correcteur"; + echo " |