Exemple #1
0
 {
   // ... un pour la moyenne des pourcentages d'acquisition
   if( $aff_moyenne_scores )
   {
     if($tab_moyenne_scores_eleve[$matiere_id][$eleve_id] !== FALSE)
     {
       $pourcentage = $tab_moyenne_scores_eleve[$matiere_id][$eleve_id].'%';
       $texte_bilan = ($conversion_sur_20) ? $pourcentage.' soit '.sprintf("%04.1f",$tab_moyenne_scores_eleve[$matiere_id][$eleve_id]/5).'/20' : $pourcentage ;
     }
     else
     {
       $pourcentage = '';
       $texte_bilan = '---';
     }
     if($make_html) { $releve_HTML_table_foot .= '<tr><td class="nu">&nbsp;</td><td colspan="'.$bilan_colspan.'">Moyenne '.$info_ponderation_complete.' des scores d\'acquisitions : '.$texte_bilan.'</td></tr>'.NL; }
     if($make_pdf)  { $releve_PDF->ligne_synthese('Moyenne '.$info_ponderation_complete.' des scores d\'acquisitions : '.$texte_bilan); }
     if($make_csv)  { $releve_CSV .= $separateur.$pourcentage; }
   }
   // ... un pour le nombre d'items considérés acquis ou pas
   if( $aff_pourcentage_acquis )
   {
     if($tab_pourcentage_acquis_eleve[$matiere_id][$eleve_id] !== FALSE)
     {
       $pourcentage = $tab_pourcentage_acquis_eleve[$matiere_id][$eleve_id].'%';
       $texte_bilan  = '('.$tab_infos_acquis_eleve[$matiere_id][$eleve_id].') : '.$pourcentage;
       $texte_bilan .= ($conversion_sur_20) ? ' soit '.sprintf("%04.1f",$tab_pourcentage_acquis_eleve[$matiere_id][$eleve_id]/5).'/20' : '' ;
     }
     else
     {
       $pourcentage = '';
       $texte_bilan = '---';
 // affichage des bilans des scores
 if ($aff_etat_acquisition) {
     // ... un pour la moyenne des pourcentages d'acquisition
     if ($aff_moyenne_scores) {
         if ($tab_moyenne_scores_eleve[$matiere_id][$eleve_id] !== FALSE) {
             $pourcentage = $tab_moyenne_scores_eleve[$matiere_id][$eleve_id] . '%';
             $texte_bilan = $conversion_sur_20 ? $pourcentage . ' soit ' . sprintf("%04.1f", $tab_moyenne_scores_eleve[$matiere_id][$eleve_id] / 5) . '/20' : $pourcentage;
         } else {
             $pourcentage = '';
             $texte_bilan = '---';
         }
         if ($make_html) {
             $releve_HTML_table_foot .= '<tr><td class="nu">&nbsp;</td><td colspan="' . $bilan_colspan . '">Moyenne ' . $info_ponderation_complete . ' des scores d\'acquisitions : ' . $texte_bilan . '</td></tr>' . NL;
         }
         if ($make_pdf) {
             $releve_PDF->ligne_synthese('Moyenne ' . $info_ponderation_complete . ' des scores d\'acquisitions : ' . $texte_bilan);
         }
         if ($make_csv) {
             $releve_CSV .= $separateur . $pourcentage;
         }
     }
     // ... un pour le nombre d'items considérés acquis ou pas
     if ($aff_pourcentage_acquis) {
         if ($tab_pourcentage_acquis_eleve[$matiere_id][$eleve_id] !== FALSE) {
             $pourcentage = $tab_pourcentage_acquis_eleve[$matiere_id][$eleve_id] . '%';
             $texte_bilan = '(' . $tab_infos_acquis_eleve[$matiere_id][$eleve_id] . ') : ' . $pourcentage;
             $texte_bilan .= $conversion_sur_20 ? ' soit ' . sprintf("%04.1f", $tab_pourcentage_acquis_eleve[$matiere_id][$eleve_id] / 5) . '/20' : '';
         } else {
             $pourcentage = '';
             $texte_bilan = '---';
         }