Visualisation modules en tant que correcteur : admin@settings/rôles

This commit is contained in:
xdrm-brackets 2015-11-23 16:40:54 +01:00
parent 17b118f885
commit 335bfaa2ab
2 changed files with 22 additions and 4 deletions

View File

@ -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;
}

View File

@ -55,6 +55,25 @@ if( permission('admin') ){
echo "<td><input type='checkbox' id='".$user['id']."referent'><label for='".$user['id']."referent'></label> référent</td>";
echo "</tr>";
if( $user['semestreList'] != null ){
echo "<tr class='transparentbg'><td></td><td colspan=4>";
echo "<table class='basic col4'><tbody>";
foreach($user['semestreList'] as $semestre){
foreach($semestre['UElist'] as $ue){
foreach($ue['modules'] as $module){
echo "<tr><td data-mod='".$module['id']."'>".$module['nom']." - ".$module['libelle']."</td><td>".$ue['nom']." - ".$ue['libelle']."</td><td>".$semestre['nom']."</td>";
echo "<td><input type='checkbox' id='".$user['id']."correcteur".$module['id']."' checked><label for='".$user['id']."correcteur".$module['id']."'></label> correcteur";
echo "</td></tr>";
}
}
}
echo "</tbody></table></tr>";
}
}
echo "</tbody></table>";