// On n'a pas de LVR sur Rouen if($j!=130) { $nb_mat++; if($tabmatieres[$j][-1]=='NOTNONCA') { $nb_mat_notnonca++; } } } } //==================================================== $y=$y_lignes_disc; //$h_ligne_a_titre_indicatif=10; $h_ligne_a_titre_indicatif=fs_pt2mm($fs_txt)*$sc_interligne; // Hauteur pour chaque matière: //$hauteur_toutes_matieres=$y_cadre_bas-$marge-$y; // 10 pour la ligne 'A titre indicatif' $hauteur_toutes_matieres=$y_cadre_bas-$h_ligne_a_titre_indicatif-$y; // 10 pour la ligne 'A titre indicatif' $h_par_matiere=$hauteur_toutes_matieres/$nb_mat; // Boucle sur les matières $TOTAL=0; $SUR_TOTAL=array(); $SUR_TOTAL[1]=0; $SUR_TOTAL[2]=0; // Les notes con calculées (à titre indicatif) sont en bas de tableau $temoin_notnonca=0; $cpt=0; for($j=$indice_premiere_matiere;$j<=$indice_max_matieres;$j++) {
$pdf->Cell(90,25, "ACADEMIE DE Rouen",'',2,''); $pdf->SetXY(10,17); $pdf->Cell(90,26, "",'LRBT',2,''); // 100 points pour 26 mm */ // Utiliser ma fonction cell_ajustee() pour faire tenir au mieux (*) les textes longs dans les cases // ((*) mieux si possible que drawTextBox()) //$use_cell_ajustee="y"; // Taille des textes $fs_titre=11; $fs_titre_mm=fs_pt2mm($fs_titre); $fs_txt=10; $fs_txt_mm=fs_pt2mm($fs_txt); // Ratio de l'interligne par rapport à la taille de police $r_interligne=0.3; $sc_interligne=1+$r_interligne; $l_page=297; $h_page=210; $marge=10; // Bloc disciplines $larg_col_disc=65; $x_col_note_mc=$marge+$larg_col_disc; $larg_col_note_classe=29; $x_col_note_glob=$marge+$larg_col_disc+$larg_col_note_classe;
$pdf->SetFont('DejaVu','B',$fs_titre); $pdf->SetXY($marge,$y_fsb); $pdf->Cell(210-2*$marge,10, "FICHE SCOLAIRE DU BREVET",$bord_debug,1,'C'); //$pdf->SetXY($marge,$pdf->GetY()+$pdf->FontSize*$sc_interligne); //$pdf->SetXY($marge,$pdf->GetY()); $pdf->Cell(210-2*$marge,10, "Série ".$tab_type_brevet[$type_brevet],$bord_debug,1,'C'); //$pdf->SetFont('DejaVu'); $pdf->SetFont('DejaVu','B',$fs_txt); $pdf->SetXY($marge,$pdf->GetY()); //$pdf->SetFontSize($fs_txt); $pdf->Cell($pdf->GetStringWidth("ACADÉMIE : "),fs_pt2mm($pdf->FontSize)*$sc_interligne, "ACADÉMIE : ",0,0,'L'); $pdf->SetFont('DejaVu','',$fs_txt); //$pdf->Cell($larg_acad,fs_pt2mm($pdf->FontSize)*$sc_interligne, strtoupper($fb_academie),0,1,'L'); $pdf->Cell($larg_acad,fs_pt2mm($pdf->FontSize)*$sc_interligne, casse_mot($fb_academie),0,1,'L'); $pdf->SetFont('DejaVu','',$fs_txt); //$pdf->SetXY($marge,15); $pdf->SetXY($marge,$pdf->GetY()+$pdf->FontSize*$r_interligne); //$pdf->Cell($larg_acad,fs_pt2mm($pdf->FontSize)*$sc_interligne, "Département: $fb_departement ".$pdf->GetY(),0,2,''); $pdf->Cell($larg_acad,$pdf->FontSize*$sc_interligne, "Département: $fb_departement",0,1,''); // LRBT: Left Right Bottom Top //================================================ // INFOS ELEVE $pdf->SetFont('DejaVu','',$fs_txt); //$pdf->SetXY($marge,$y_nom_ele); $pdf->SetXY($marge,$pdf->GetY()); $pdf->Cell($larg_col_nom,$pdf->FontSize*$sc_interligne, "Nom : ".$lig1->nom,$bord_debug,1,'');