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 "
"; foreach($answer->UEs as $UE){ // pour chaque UE echo ""; echo ""; echo ''; echo ''; echo ''; echo ''; echo ''; foreach($UE['modules'] as $module) // pour chaque module foreach($module['controles'] as $controle) // pour chaque contrôle foreach($controle['notes'] as $note){ // pour chaque note echo ''; echo ''; echo ''; echo ""; echo ''; echo ''; } echo ''; echo '
'.$UE['nom'].' - '.$UE['libelle'].'
"'.$controle['intitule'].'"'.number_format($note['valeur'], 2).' / '.$controle['base'].'".$module['nom']." - ".$module['libelle']."Coefficient '.number_format($controle['coefficient'], 2).'
'; } //////////////////////////////////////////////////////////////////////////////// echo '
'; }else echo "
Aucune note trouvée
"; } ?>