コード例 #1
0
ファイル: fb_lille_pdf.php プロジェクト: rhertzog/lcs
				//$pdf->SetXY($marge,80);
				$x=$marge;
				$y_disc=$pdf->GetY();
				$y_lignes_disc=$y_disc+3*$pdf->FontSize*$sc_interligne;
				// On trace le cadre d'entête du tableau
				$pdf->Cell($l_page-2*$marge,3*$pdf->FontSize*$sc_interligne, "",'LRBT',0,'C');
				$pdf->SetXY($marge,$y_disc);
				$h_titre_disc=3*$pdf->FontSize*$sc_interligne;
				$pdf->Cell($larg_col_disc,$h_titre_disc, "DISCIPLINES",'LRBT',0,'C');

				$h_texte_titre_disc=$pdf->FontSize*$sc_interligne;

				$pdf->SetFontSize(9);
				$x_tmp=$pdf->GetX();
				//$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note_classe, 2*$pdf->FontSize*$sc_interligne, 'C', 'M', 0);
				$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note_classe, 2*$h_texte_titre_disc, 'C', 'M', 0);
				$pdf->SetXY($x_tmp,$pdf->GetY());
				//$pdf->Cell($larg_col_note_classe,$pdf->FontSize*$sc_interligne, "(0 à 20)",'',0,'C');
				$pdf->Cell($larg_col_note_classe,$h_texte_titre_disc, "(0 à 20)",'',0,'C');

				$x_tmp=$pdf->GetX();
				$pdf->SetXY($x_tmp,$y_disc);
				//$pdf->Cell(2*$larg_col_note_glob,$pdf->FontSize*$sc_interligne, "3ème",'LRBT',1,'C');
				$pdf->Cell(2*$larg_col_note_glob,$h_texte_titre_disc, "3ème",'LRBT',1,'C');
				$pdf->SetXY($x_tmp,$pdf->GetY());
				//$pdf->Cell($larg_col_note_glob,2*$pdf->FontSize*$sc_interligne, "LV2",'LRBT',0,'C');
				$pdf->Cell($larg_col_note_glob,2*$h_texte_titre_disc, "LV2",'LRBT',0,'C');
				$texte="Module déc.Prof. 6 heures";
				//$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note_glob, 2*$pdf->FontSize*$sc_interligne, 'C', 'M', 1);
				$pdf->drawTextBox($texte, $larg_col_note_glob, 2*$h_texte_titre_disc, 'C', 'M', 1);
コード例 #2
0
ファイル: fb_rouen_pdf.php プロジェクト: rhertzog/lcs
				$y_disc=$pdf->GetY();
				$y_lignes_disc=$y_disc+20;
				// On trace le cadre d'entête du tableau
				$pdf->Cell(210-2*$marge,20, "",'LRBT',0,'C');
				$pdf->SetXY($x,$y_disc);
				$pdf->Cell($larg_col_disc,20, "DISCIPLINES",'LRBT',0,'C');
				//$pdf->SetXY(60,80);
				$pdf->Cell($larg_col_classe_3eme_college,5, "Classe de 3ème de collège",'LRBT',1,'C');
				$y=$pdf->GetY();

				$pdf->SetXY($x_col_note_mc,$y);
				$pdf->Cell($larg_col_note,20-5, "",'LRBT',0,'C');
				$pdf->SetXY($x_col_note_mc,$y);
				$pdf->SetFontSize(9);
				//$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note, 11, 'C', 'M', 1);
				$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note, 11, 'C', 'M', 0);
				$pdf->SetXY($x_col_note_mc,$pdf->GetY());
				//$pdf->drawTextBox('0 à 20', $larg_col_note, 4, 'C', 'M', 1);
				$pdf->drawTextBox('0 à 20', $larg_col_note, 4, 'C', 'M', 0);

				$pdf->SetXY($x_col_note_me,$y);
				$pdf->Cell($larg_col_note,20-5, "",'LRBT',0,'C');
				$pdf->SetXY($x_col_note_me,$y);
				$pdf->drawTextBox("Note moyenne de l'élève", $larg_col_note, 11, 'C', 'M', 0);
				$pdf->SetXY($x_col_note_me,$pdf->GetY());
				$pdf->drawTextBox('0 à 20', $larg_col_note, 4, 'C', 'M', 0);

				//$pdf->SetFontSize($fs_txt);
				$texte="Appréciations des professeurs";
				$font_size=adjust_size_font($texte,$larg_col_app,$fs_txt,0.3);
				$pdf->SetFontSize($font_size);
コード例 #3
0
 if ($nb_eleve_aff === 0) {
     $enplus = 5;
 }
 if ($nb_eleve_aff != 0) {
     $enplus = 0;
 }
 $pdf->SetXY($X_bloc_matiere - 5, $Y_decal - $hauteur_regroupement + $espace_entre_matier);
 //$pdf->SetFillColor($couleur_categorie_cote1[$classe_id], $couleur_categorie_cote2[$classe_id], $couleur_categorie_cote3[$classe_id]);
 $pdf->SetFillColor($tab_modele_pdf["couleur_categorie_cote1"][$classe_id], $tab_modele_pdf["couleur_categorie_cote2"][$classe_id], $tab_modele_pdf["couleur_categorie_cote3"][$classe_id]);
 //if($couleur_categorie_cote[$classe_id] === '1') { $mode_choix_c = '2'; } else { $mode_choix_c = '1'; }
 if ($tab_modele_pdf["couleur_categorie_cote"][$classe_id] === '1') {
     $mode_choix_c = '2';
 } else {
     $mode_choix_c = '1';
 }
 $pdf->drawTextBox("", 5, $hauteur_regroupement, 'C', 'T', $mode_choix_c);
 //texte à afficher
 $hauteur_caractere_vertical = '8';
 //if ( $taille_texte_categorie_cote[$classe_id] != '' and $taille_texte_categorie_cote[$classe_id] != '0') { $hauteur_caractere_vertical = $taille_texte_categorie_cote[$classe_id]; } else { $hauteur_caractere_vertical = '8'; }
 if ($tab_modele_pdf["taille_texte_categorie_cote"][$classe_id] != '' and $tab_modele_pdf["taille_texte_categorie_cote"][$classe_id] != '0') {
     $hauteur_caractere_vertical = $tab_modele_pdf["taille_texte_categorie_cote"][$classe_id];
 } else {
     $hauteur_caractere_vertical = '8';
 }
 $pdf->SetFont('DejaVu', '', $hauteur_caractere_vertical);
 $text_s = unhtmlentities($matiere[$ident_eleve_aff][$id_periode][$m]['categorie']);
 $longeur_test_s = $pdf->GetStringWidth($text_s);
 // gestion de la taille du texte vertical
 $taille_texte = $hauteur_regroupement;
 $grandeur_texte = 'test';
 while ($grandeur_texte != 'ok') {
コード例 #4
0
ファイル: fb_montpellier_pdf.php プロジェクト: rhertzog/lcs
				$pdf->Cell($larg_col_classe_3eme_college,5, "Classe de 3ème de collège",'LRBT',1,'C');
				$y_disc=$pdf->GetY();
				$y_lignes_disc=$y_disc+15;
				// On trace le cadre d'entête du tableau
				$pdf->Cell(210-2*$marge,15, "",'LRBT',0,'C');
				$pdf->SetXY($marge,$y_disc);
				$pdf->Cell($larg_col_disc,15, "DISCIPLINES",'LRBT',0,'C');
				//$pdf->SetXY(60,80);
				$y=$pdf->GetY();

				$pdf->SetXY($x_col_note_mc,$y);
				$pdf->Cell($larg_col_note,15, "",'LRBT',0,'C');
				$pdf->SetXY($x_col_note_mc,$y);
				$pdf->SetFontSize(9);
				//$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note, 11, 'C', 'M', 1);
				$pdf->drawTextBox('Note moyenne de la classe', $larg_col_note, 11, 'C', 'M', 0);
				$pdf->SetXY($x_col_note_mc,$pdf->GetY());
				//$pdf->drawTextBox('0 à 20', $larg_col_note, 4, 'C', 'M', 1);
				$pdf->drawTextBox('0 à 20', $larg_col_note, 4, 'C', 'M', 0);

				$pdf->SetXY($x_col_note_me,$y);
				$pdf->Cell($larg_col_note,20-5, "",'LRBT',0,'C');
				$pdf->SetXY($x_col_note_me,$y);
				$pdf->drawTextBox("Note moyenne de l'élève", $larg_col_note, 11, 'C', 'M', 0);
				$pdf->SetXY($x_col_note_me,$pdf->GetY());
				$pdf->drawTextBox('0 à 20', $larg_col_note, 4, 'C', 'M', 0);

				//$pdf->SetFontSize($fs_txt);
				$texte="Appréciations des professeurs";
				$font_size=adjust_size_font($texte,$larg_col_app,$fs_txt,0.3);
				$pdf->SetFontSize($font_size);