2015-10-29 23:01:35 +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';
|
|
|
|
require_once __ROOT__.'/manager/career.php';
|
|
|
|
|
|
|
|
/****************************************
|
|
|
|
* *
|
|
|
|
* SECTION "PARCOURS" *
|
|
|
|
* *
|
|
|
|
*****************************************
|
|
|
|
*
|
|
|
|
* [1] Mes modules (eleves) notes
|
|
|
|
* [2] Mes ue (eleves) notes
|
|
|
|
* [3] Mes semestres (eleves) notes
|
|
|
|
* [4] Graphiques (eleves) notes
|
|
|
|
*
|
|
|
|
*****************************************/
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
2015-11-06 13:05:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-29 23:01:35 +00:00
|
|
|
<!-- mes modules -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
/**************************************/
|
|
|
|
/*** MES MODULES (version étudiant) ***/
|
|
|
|
/**************************************/
|
|
|
|
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 = 'getNotesByModules';
|
|
|
|
$request->etudiant = $_SESSION['identifiant'];
|
|
|
|
$request->semestre = $_SESSION['semestre'];
|
|
|
|
$request->annee = $_SESSION['annee'];
|
|
|
|
|
|
|
|
career_switch_level_1($request, $answer);
|
|
|
|
|
|
|
|
if( $answer->request == 'success' ){ // si on a bien récupéré les modules/notes
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
echo "<section name='marksbymodules' title='Mes modules' class='basic'>";
|
|
|
|
|
|
|
|
foreach($answer->notes as $module){
|
|
|
|
|
2015-11-03 22:20:54 +00:00
|
|
|
echo "<table class='basic col4'>";
|
2015-10-29 23:01:35 +00:00
|
|
|
echo "<thead class='active'>";
|
|
|
|
echo '<tr>';
|
|
|
|
echo '<th colspan=5>'.$module['module']['nom'].' - '.$module['module']['libelle'].'</th>';
|
|
|
|
echo '</tr>';
|
|
|
|
|
|
|
|
echo '</thead>';
|
|
|
|
echo '<tbody>';
|
|
|
|
foreach($module['notes'] as $note){
|
|
|
|
echo '<tr>';
|
2015-11-03 22:20:54 +00:00
|
|
|
echo "<td><span class=link>".$note['module']." - ".$note['modulelib']."</span></td>";
|
2015-11-04 08:15:35 +00:00
|
|
|
echo '<td><span class=unstressed>"</span>'.$note['intitule'].'<span class=unstressed>"</span></td>';
|
|
|
|
echo '<td>'.number_format($note['valeur'], 2).' <span class=unstressed>/</span> '.$note['base'].'</td>';
|
|
|
|
echo '<td>Coefficient '.$note['coefficient'].'</td>';
|
2015-10-29 23:01:35 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
echo '</tbody>';
|
|
|
|
echo '</table>';
|
|
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
echo '</section>';
|
|
|
|
}else
|
|
|
|
echo "Erreur interne.";
|
|
|
|
|
|
|
|
} ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- mes UEs -->
|
|
|
|
|
|
|
|
<?php
|
2015-11-03 20:59:16 +00:00
|
|
|
/**********************************/
|
2015-10-29 23:01:35 +00:00
|
|
|
/*** MES UEs (version étudiant) ***/
|
2015-11-03 20:59:16 +00:00
|
|
|
/**********************************/
|
2015-10-29 23:01:35 +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();
|
|
|
|
debug();
|
|
|
|
|
|
|
|
$request->level_1 = 'getNotesByUEs';
|
|
|
|
$request->etudiant = $_SESSION['identifiant'];
|
|
|
|
$request->semestre = $_SESSION['semestre'];
|
|
|
|
$request->annee = $_SESSION['annee'];
|
|
|
|
|
|
|
|
career_switch_level_1($request, $answer);
|
|
|
|
|
|
|
|
if( $answer->request == 'success' ){ // si on a bien récupéré les UE/notes
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
echo "<section name='marksbyue' title='Mes UE' class='basic'>";
|
|
|
|
|
|
|
|
foreach($answer->notes as $UE){
|
|
|
|
|
2015-11-03 22:20:54 +00:00
|
|
|
echo "<table class='basic col4'>";
|
2015-10-29 23:01:35 +00:00
|
|
|
echo "<thead class='active'>";
|
|
|
|
echo '<tr>';
|
|
|
|
echo '<th colspan=5>'.$UE['UE']['nom'].' - '.$UE['UE']['libelle'].'</th>';
|
|
|
|
echo '</tr>';
|
|
|
|
|
|
|
|
echo '</thead>';
|
|
|
|
echo '<tbody>';
|
|
|
|
foreach($UE['notes'] as $note){
|
|
|
|
echo '<tr>';
|
2015-11-03 22:20:54 +00:00
|
|
|
echo "<td><span class=link>".$note['module']." - ".$note['modulelib']."</span></td>";
|
2015-11-04 08:15:35 +00:00
|
|
|
echo '<td><span class=unstressed>"</span>'.$note['intitule'].'<span class=unstressed>"</span></td>';
|
|
|
|
echo '<td>'.number_format($note['valeur'], 2).' <span class=unstressed>/</span> '.$note['base'].'</td>';
|
2015-11-03 22:20:54 +00:00
|
|
|
echo '<td>'.$note['coefficient'].'</td>';
|
2015-10-29 23:01:35 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
echo '</tbody>';
|
|
|
|
echo '</table>';
|
|
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
echo '</section>';
|
|
|
|
}else
|
|
|
|
echo "Erreur interne.";
|
|
|
|
|
|
|
|
} ?>
|