$chapeau_moyenne = 'oui';
 }
 //eleve
 //if($active_moyenne_eleve[$classe_id]==='1' and $active_moyenne[$classe_id] === '1' and $ordre_moyenne[$cpt_ordre] === 'eleve' ) {
 if ($tab_modele_pdf["active_moyenne_eleve"][$classe_id] === '1' and $tab_modele_pdf["active_moyenne"][$classe_id] === '1' and $ordre_moyenne[$cpt_ordre] === 'eleve') {
     $ajout_espace_au_dessus = 4;
     $hauteur_de_la_cellule = $hauteur_entete_pardeux;
     //if ( $entete_model_bulletin[$classe_id] === '2' and $active_moyenne_eleve[$classe_id] === '1' and $nb_entete_moyenne > 1 )
     if ($tab_modele_pdf["entete_model_bulletin"][$classe_id] === '2' and $tab_modele_pdf["active_moyenne_eleve"][$classe_id] === '1' and $nb_entete_moyenne > 1) {
         $hauteur_de_la_cellule = $hauteur_entete;
         $ajout_espace_au_dessus = 0;
     }
     //$pdf->SetXY($X_note_app[$classe_id]+$largeur_utilise, $Y_note_app[$classe_id]+$ajout_espace_au_dessus);
     $pdf->SetXY($tab_modele_pdf["X_note_app"][$classe_id] + $largeur_utilise, $tab_modele_pdf["Y_note_app"][$classe_id] + $ajout_espace_au_dessus);
     //$pdf->SetFillColor($couleur_reperage_eleve1[$classe_id], $couleur_reperage_eleve2[$classe_id], $couleur_reperage_eleve3[$classe_id]);
     $pdf->SetFillColor($tab_modele_pdf["couleur_reperage_eleve1"][$classe_id], $tab_modele_pdf["couleur_reperage_eleve2"][$classe_id], $tab_modele_pdf["couleur_reperage_eleve3"][$classe_id]);
     //$pdf->Cell($largeur_d_une_moyenne[$classe_id], $hauteur_de_la_cellule, "Elève",1,0,'C',$active_reperage_eleve[$classe_id]);
     $pdf->Cell($tab_modele_pdf["largeur_d_une_moyenne"][$classe_id], $hauteur_de_la_cellule, "Elève", 1, 0, 'C', $tab_modele_pdf["active_reperage_eleve"][$classe_id]);
     $pdf->SetFillColor(0, 0, 0);
     //$largeur_utilise = $largeur_utilise + $largeur_d_une_moyenne[$classe_id];
     $largeur_utilise = $largeur_utilise + $tab_modele_pdf["largeur_d_une_moyenne"][$classe_id];
 }
 //classe
 //if($active_moyenne_classe[$classe_id]==='1' and $active_moyenne[$classe_id] === '1' and $ordre_moyenne[$cpt_ordre] === 'classe' ) {
 if ($tab_modele_pdf["active_moyenne_classe"][$classe_id] === '1' and $tab_modele_pdf["active_moyenne"][$classe_id] === '1' and $ordre_moyenne[$cpt_ordre] === 'classe') {
     //$pdf->SetXY($X_note_app[$classe_id]+$largeur_utilise, $Y_note_app[$classe_id]+4);
     $pdf->SetXY($tab_modele_pdf["X_note_app"][$classe_id] + $largeur_utilise, $tab_modele_pdf["Y_note_app"][$classe_id] + 4);
     $hauteur_caractere = '8.5';
     $pdf->SetFont('DejaVu', '', $hauteur_caractere);
     $text_moy_classe = 'Classe';
     //if ( $entete_model_bulletin[$classe_id] === '2' ) { $text_moy_classe = 'Moy.'; }
示例#2
0
				//===================================================
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$texte="Total des points";
				$pdf->SetXY($x_col_app,$pdf->GetY());
				$pdf->Cell($larg_col_app,$pdf->FontSize*$sc_interligne, $texte,'',0,'R');

				if($num_fb_col==1) {
					$t_col1=$TOTAL."/".$SUR_TOTAL[1];
					$t_col2="    /".$SUR_TOTAL[2];
				}
				else {
					$t_col1="    /".$SUR_TOTAL[1];
					$t_col2=$TOTAL."/".$SUR_TOTAL[2];
				}
				$pdf->SetFillColor(200,200,200);
				$pdf->Cell($larg_col_note,$pdf->FontSize*$sc_interligne, $t_col1,'LRBT',0,'C',true);
				$pdf->Cell($larg_col_note,$pdf->FontSize*$sc_interligne, $t_col2,'LRBT',1,'C',true);

				//===================================================
				// Option facultative
				for($j=$indice_premiere_matiere;$j<=$indice_max_matieres;$j++) {
					if($tabmatieres[$j][0]!='') {
						if(($tabmatieres[$j][-4]!='non dispensee dans l etablissement')&&($tabmatieres[$j][0]=="OPTION FACULTATIVE")) {
							//$pdf->SetXY($marge,100+($j-101)*$h_par_matiere);
							//$y=$y_lignes_disc+$cpt*$h_par_matiere;
							$y=$pdf->GetY();
							$pdf->SetXY($marge,$y);

							$pdf->SetFont('DejaVu','',$fs_txt);