diff --git a/page/career.php b/page/career.php index 82b44e5..271472b 100755 --- a/page/career.php +++ b/page/career.php @@ -1142,7 +1142,7 @@ if( (permission('master') || permission('admin')) && $etudiantOpt != null ){ $parcoursChart[$index]['UEs'] = array(); foreach($semestre['UEs'] as $UE){ array_push( $parcoursChart[$index]['UEs'], - array( 'id' => $UE['id'], 'moyenne' => $UE['moyenne'] ) + array( 'id' => $UE['id'], 'moyenne' => $UE['moyenne'], 'capitalisation' => !in_array($UE['id'], $semestre['inactive']) ) ); } } diff --git a/src/svg_v2.php b/src/svg_v2.php index ab87925..83ac62c 100755 --- a/src/svg_v2.php +++ b/src/svg_v2.php @@ -116,6 +116,10 @@ function displayParcours($parcours, $selected){ }else // si pas de note, on met la couleur par défaut $themeColor = $normColor; + // si le semestre n'est pas pris en compte dans la capitalisation, on l'affiche en violet + if( !$UE['capitalisation'] ) + $themeColor = '#b18cff'; + echo ""; } }