From 6b0acd8719be786a90061fe652329b9affa681e6 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 3 Nov 2015 23:31:41 +0100 Subject: [PATCH] Modification affichage notes + correction section [COMPOSITION/MON GROUPE] --- manager/database.php | 6 +++--- page/career.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manager/database.php b/manager/database.php index e18a440..0e1714d 100755 --- a/manager/database.php +++ b/manager/database.php @@ -306,11 +306,11 @@ class DataBase{ // on cherche le groupe associƩ $getNomGroupe = $this->pdo->prepare("SELECT g.nom ". "FROM utilisateur as u, groupe as g, appartenance as app ". - "WHERE app.identifiant = u.id_etudiant ". + "WHERE app.id_etudiant = u.identifiant ". "AND app.id_groupe = g.id_groupe ". - "AND app.id_semestre = :semestreUID ". - "AND u.identifiant = :etudiantUID ". + + "AND app.id_semestre = :semestreUID ". "ORDER BY g.nom"); $getNomGroupe->execute(array( ':etudiantUID' => $etudiantUID, diff --git a/page/career.php b/page/career.php index 1f8adde..f5c9d9d 100755 --- a/page/career.php +++ b/page/career.php @@ -54,7 +54,7 @@ if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // s echo ''; echo "".$note['module']." - ".$note['modulelib'].""; echo ''.$note['intitule'].''; - echo ''.$note['valeur'].'/'.$note['base'].''; + echo ''.$note['valeur']." / ".$note['base'].''; echo ''.$note['coefficient'].''; echo ''; } @@ -108,7 +108,7 @@ if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // s echo ''; echo "".$note['module']." - ".$note['modulelib'].""; echo ''.$note['intitule'].''; - echo ''.$note['valeur'].'/'.$note['base'].''; + echo ''.$note['valeur']." / ".$note['base'].''; echo ''.$note['coefficient'].''; echo ''; }