$pdf->SetXY($x2, $y2); cell_ajustee_une_ligne(($texte),$pdf->GetX(),$pdf->GetY(),$largeur_dispo,$h_ligne,$taille_max_police,$fonte,$graisse,$alignement,$bordure); $x2+=$largeur_dispo; $y2+=$h_cell; } } // 20140603 $graisse='B'; //============================================= for($j=0;$j<$nb_matieres;$j++) { $tab_stat[$j]=calcul_moy_med($tab_notes[$j]); } $tab_stat2=calcul_moy_med($tab_moy); //============================================= if($y2+$h_ligne>$hauteur_page-$marge_basse) { $pdf->AddPage(); $y2=$y0; } $x2=$x0; $pdf->SetXY($x2, $y2); $largeur_dispo=$largeur_col_nom_ele; $texte="Moyenne"; cell_ajustee_une_ligne(($texte),$pdf->GetX(),$pdf->GetY(),$largeur_dispo,$h_ligne,$taille_max_police,$fonte,$graisse,$alignement,$bordure); $x2+=$largeur_dispo; $largeur_dispo=$largeur_col_note;
} } if($avec_salle=='y') { $pdf->Cell($larg_col5,$h_cell,$tab_salle[$j],'LRBT',1,'C'); } } //=========================================================== $pdf->SetY($pdf->GetY()+$h_cell); $pdf->SetFont('DejaVu','B',10); $pdf->Cell($largeur_page,$h_cell,"Statistiques :",'',1,'L'); $pdf->SetFont('DejaVu','',10); $tab_stat=calcul_moy_med($tab_note); $pdf->SetFont('DejaVu','B',10); $texte="1er quartile"; $larg_col1=$pdf->GetStringWidth($texte)+4; $larg_col2=$pdf->GetStringWidth("20.0")+4; $pdf->SetFont('DejaVu','B',10); $texte="Moyenne"; $pdf->Cell($larg_col1,$h_cell,$texte,'LRBT',0,'L'); $pdf->SetFont('DejaVu','',10); $texte=$tab_stat['moyenne']; $pdf->Cell($larg_col2,$h_cell,$texte,'LRBT',1,'C'); $pdf->SetFont('DejaVu','B',10); $texte="1er quartile";