Interface admin@rôles quasi-temrinale
This commit is contained in:
parent
335bfaa2ab
commit
5aa3aab665
|
@ -30,7 +30,7 @@ div.p.center input{
|
||||||
margin: .2em;
|
margin: .2em;
|
||||||
padding: .8em;
|
padding: .8em;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 1px solid #989898
|
border: 1px solid #989898;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************/
|
/*************************/
|
||||||
|
|
|
@ -21,6 +21,10 @@ if( connected() ){ // si l'utilisateur est connecté
|
||||||
if( permission('admin') ){
|
if( permission('admin') ){
|
||||||
// inclusion du manager utilisateur
|
// inclusion du manager utilisateur
|
||||||
require_once __ROOT__.'/manager/user.php';
|
require_once __ROOT__.'/manager/user.php';
|
||||||
|
require_once __ROOT__.'/manager/database.php';
|
||||||
|
|
||||||
|
// on récupère la liste de tous les modules
|
||||||
|
$completeModuleList = DataBase::getInstance()->getExhaustiveModuleList();
|
||||||
|
|
||||||
// création de la requête
|
// création de la requête
|
||||||
$request = new stdClass(); $answer = new stdClass();
|
$request = new stdClass(); $answer = new stdClass();
|
||||||
|
@ -56,23 +60,49 @@ if( permission('admin') ){
|
||||||
|
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
|
||||||
if( $user['semestreList'] != null ){
|
|
||||||
echo "<tr class='transparentbg'><td></td><td colspan=4>";
|
/* LISTE DES MODULES CORRIGEABLES */
|
||||||
|
$userModulesUID = array();
|
||||||
|
|
||||||
|
echo "<tr class='transparentbg noborder'><td></td><td colspan=4>";
|
||||||
echo "<table class='basic col4'><tbody>";
|
echo "<table class='basic col4'><tbody>";
|
||||||
|
|
||||||
|
if( $user['semestreList'] != null ){
|
||||||
|
|
||||||
foreach($user['semestreList'] as $semestre){
|
foreach($user['semestreList'] as $semestre){
|
||||||
foreach($semestre['UElist'] as $ue){
|
foreach($semestre['UElist'] as $ue){
|
||||||
foreach($ue['modules'] as $module){
|
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>";
|
array_push($userModulesUID, $module['id']);
|
||||||
echo "<td><input type='checkbox' id='".$user['id']."correcteur".$module['id']."' checked><label for='".$user['id']."correcteur".$module['id']."'></label> correcteur";
|
echo "<tr>";
|
||||||
echo "</td></tr>";
|
echo "<td data-mod='".$module['id']."'>".$module['nom']." - ".$module['libelle']."</td>";
|
||||||
|
echo "<td>".$ue['nom']." - ".$ue['libelle']."</td>";
|
||||||
|
echo "<td>".$semestre['formation']." - ".$semestre['nom']."</td>";
|
||||||
|
echo "<td>";
|
||||||
|
echo "<input type='checkbox' id='".$user['id']."correcteur".$module['id']."' checked><label for='".$user['id']."correcteur".$module['id']."'></label> correcteur";
|
||||||
|
echo "</td>";
|
||||||
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</tbody></table></tr>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* AJOUT DE MODULES */
|
||||||
|
// saisie d'un nouveau module
|
||||||
|
echo "<tr class='grayscale'>";
|
||||||
|
echo "<td><select name='modules'>";
|
||||||
|
foreach($completeModuleList as $module){ if( !in_array($module['id'], $userModulesUID) ){
|
||||||
|
echo "<option value='".$module['id']."'>".$module['nom']." - ".$module['libelle']."</option>";
|
||||||
|
}}
|
||||||
|
echo "</select></td>";
|
||||||
|
echo "<td><div class='confirm active set_correcteur'>Définir comme correcteur</div></td>";
|
||||||
|
echo "<td></td>";
|
||||||
|
echo "<td></td>";
|
||||||
|
echo "</tr>";
|
||||||
|
|
||||||
|
echo "</tbody></table></tr>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
echo "</tbody></table>";
|
echo "</tbody></table>";
|
||||||
|
|
Loading…
Reference in New Issue