Visualisation modules en tant que correcteur : admin@settings/rôles
This commit is contained in:
parent
17b118f885
commit
335bfaa2ab
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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>";
|
||||
|
||||
|
|
Loading…
Reference in New Issue