2015-10-28 17:08:12 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
|
|
require_once __ROOT__.'/manager/security.php';
|
|
|
|
require_once __ROOT__.'/manager/groups.php';
|
|
|
|
require_once __ROOT__.'/manager/modules.php';
|
2015-10-22 12:06:49 +00:00
|
|
|
|
2015-10-28 17:08:12 +00:00
|
|
|
/****************************************
|
|
|
|
* *
|
2015-10-29 23:01:35 +00:00
|
|
|
* SECTION "MODULES" *
|
2015-10-28 17:08:12 +00:00
|
|
|
* *
|
|
|
|
*****************************************
|
|
|
|
*
|
2015-10-29 23:01:35 +00:00
|
|
|
* [1] MES MODULES (studend + prof)
|
|
|
|
* [2] MES MODULES (prof)
|
2015-10-28 17:08:12 +00:00
|
|
|
*
|
|
|
|
*****************************************/
|
|
|
|
?>
|
2015-10-22 12:06:49 +00:00
|
|
|
|
2015-10-28 17:08:12 +00:00
|
|
|
|
|
|
|
<!-- mes modules -->
|
|
|
|
|
|
|
|
<?php
|
2015-10-28 22:33:16 +00:00
|
|
|
/**************************************/
|
|
|
|
/*** MES MODULES (version étudiant) ***/
|
|
|
|
/**************************************/
|
2015-10-28 17:08:12 +00:00
|
|
|
if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // si l'utilisateur est connecté et que c'est un élève
|
|
|
|
|
|
|
|
$request = new stdClass(); $answer = new stdClass();
|
|
|
|
|
|
|
|
$request->level_1 = 'getByEtudiant';
|
|
|
|
$request->etudiant = $_SESSION['identifiant'];
|
2015-10-29 23:01:35 +00:00
|
|
|
$request->semestre = $_SESSION['semestre'];
|
|
|
|
$request->annee = $_SESSION['annee'];
|
2015-10-28 17:08:12 +00:00
|
|
|
|
|
|
|
modules_switch_level_1($request, $answer);
|
|
|
|
|
|
|
|
if( $answer->request == 'success' ){ // si on a bien récupéré les membres du groupe
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2015-10-28 22:33:16 +00:00
|
|
|
echo "<section name='mymodules' title='Mes modules' class='basic'>";
|
|
|
|
|
2015-11-03 22:20:54 +00:00
|
|
|
foreach($answer->UEs as $UE){
|
2015-10-28 17:08:12 +00:00
|
|
|
echo "<table class='basic'>";
|
2015-10-28 22:33:16 +00:00
|
|
|
echo "<thead class='active'>";
|
|
|
|
echo '<tr>';
|
2015-11-03 22:20:54 +00:00
|
|
|
echo '<th colspan=5>'.$UE['nom'].' - '.$UE['libelle'].'</th>';
|
2015-10-28 22:33:16 +00:00
|
|
|
echo '</tr>';
|
|
|
|
echo '</thead>';
|
|
|
|
echo '<tbody>';
|
2015-11-03 22:20:54 +00:00
|
|
|
foreach($UE['modules'] as $MODULE){
|
|
|
|
echo '<tr>';
|
|
|
|
echo '<td>'.$MODULE['nom'].'</td>';
|
|
|
|
echo '<td>'.$MODULE['libelle'].'</td>';
|
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
|
2015-10-28 22:33:16 +00:00
|
|
|
echo '</tbody>';
|
2015-10-28 17:08:12 +00:00
|
|
|
echo '</table>';
|
|
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2015-10-28 22:33:16 +00:00
|
|
|
echo '</section>';
|
2015-10-28 17:08:12 +00:00
|
|
|
}else
|
|
|
|
echo "Erreur interne.";
|
|
|
|
|
|
|
|
} ?>
|