Пример #1
0
				$texte="NOMS et PRENOMS : ".mb_strtoupper($lig1->nom)." ".ucfirst(mb_strtolower($lig1->prenom));
				$pdf->Cell($pdf->GetStringWidth($texte),$pdf->FontSize*$sc_interligne, $texte,0,0,'L');

				$texte1="FICHE SCOLAIRE BREVET - ";
				$l1=$pdf->GetStringWidth($texte1);

				$texte3="   SESSION : ".$fb_session;
				$l3=$pdf->GetStringWidth($texte3);

				$pdf->SetFont('DejaVu','B',$fs_titre);
				$texte2="SERIE ".$tab_type_brevet[$type_brevet];
				$l2=$pdf->GetStringWidth($texte2);

				$x=$pdf->GetX()+($l_page-$pdf->GetX()-($l1+$l2+$l3))/2;
				$pdf->SetFont('DejaVu','',$fs_titre);
				$pdf->SetXY($x,$pdf->GetY());
				$pdf->Cell($pdf->GetStringWidth($texte1),$pdf->FontSize*$sc_interligne, $texte1,0,0,'L');
				$pdf->SetFont('DejaVu','B',$fs_titre);
				$pdf->Cell($pdf->GetStringWidth($texte2),$pdf->FontSize*$sc_interligne, $texte2,0,0,'L');
				$pdf->SetFont('DejaVu','',$fs_titre);
				$pdf->Cell($pdf->GetStringWidth($texte3),$pdf->FontSize*$sc_interligne, $texte3,0,1,'L');

				// Problème potentiel de largeur

				// Deuxième ligne
				if($lig1->sexe=='F') {
					$texte="Née le :";
				}
				else {
					$texte="Né le :";
				}
Пример #2
0
         $chaine_longueur_max_matiere = $texte;
     }
 }
 $taille_police_matiere = ajuste_FontSize(" " . $chaine_longueur_max_matiere . " ", $h_ligne_titre_tableau, 12, 'B', 3);
 //====================================================
 //$texte_titre=$current_group['profs']['proflist_string']." - ".$current_group['description']." en ".$current_group['classlist_string'];
 $texte_titre = $chaine_titre;
 $pdf->SetXY($x0, $y0);
 $texte = $texte_titre;
 $largeur_dispo = $largeur_page - $marge_gauche - $marge_droite;
 $hauteur_caractere = 12;
 $h_ligne = $h_ligne_titre_page;
 $graisse = 'B';
 $alignement = 'C';
 $bordure = '';
 cell_ajustee_une_ligne($texte, $pdf->GetX(), $pdf->GetY(), $largeur_dispo, $h_ligne, $hauteur_caractere, $fonte, $graisse, $alignement, $bordure);
 $y2 = $y0 + $h_ligne_titre_page;
 //===========================
 // Ligne d'entête du tableau
 //$pdf->SetXY($x0,$y0);
 $pdf->SetXY($x0, $y2);
 $largeur_dispo = $largeur_col_nom_ele;
 $texte = $ligne1_csv[1];
 $graisse = 'B';
 //$alignement='L';
 $alignement = 'C';
 $bordure = 'LRBT';
 cell_ajustee_une_ligne($texte, $pdf->GetX(), $pdf->GetY(), $largeur_dispo, $h_ligne_titre_tableau, $taille_max_police, $fonte, $graisse, $alignement, $bordure);
 $pdf->SetFont($fonte, 'B', $taille_police_matiere);
 $alignement = 'C';
 $x2 = $x0 + $largeur_col_nom_ele;
     $pdf->SetFont('DejaVu', 'B', 14);
 }
 $pdf->Cell(90, 7, $gepiSchoolName, 0, 2, '');
 $pdf->SetFont('DejaVu', '', 10);
 if ($gepiSchoolAdress1 != '') {
     $pdf->Cell(90, 5, $gepiSchoolAdress1, 0, 2, '');
 }
 if ($gepiSchoolAdress2 != '') {
     $pdf->Cell(90, 5, $gepiSchoolAdress2, 0, 2, '');
 }
 $pdf->Cell(90, 5, $gepiSchoolZipCode . " " . $gepiSchoolCity, 0, 2, '');
 $passealaligne = '0';
 // entête téléphone
 // emplacement du cadre télécome
 $x_telecom = $pdf->GetX();
 $y_telecom = $pdf->GetY();
 //if( $entente_tel[$classe_id]==='1' ) {
 if ($tab_modele_pdf["entente_tel"][$classe_id] === '1') {
     $grandeur = '';
     $text_tel = '';
     //if ( $tel_image[$classe_id] != '' ) {
     if ($tab_modele_pdf["tel_image"][$classe_id] != '') {
         $a = $pdf->GetX();
         $b = $pdf->GetY();
         //$ima = '../images/imabulle/'.$tel_image[$classe_id].'.jpg';
         $ima = '../images/imabulle/' . $tab_modele_pdf["tel_image"][$classe_id] . '.jpg';
         $valeurima = redimensionne_image($ima, 15, 15);
         $pdf->Image($ima, $a, $b, $valeurima[0], $valeurima[1]);
         $text_tel = '      ' . $gepiSchoolTel;
         $grandeur = $pdf->GetStringWidth($text_tel);
         $grandeur = $grandeur + 2;
Пример #4
0
	$fonte='DejaVu';

	$pdf->SetFont($fonte,'B',8);

	$texte_titre=$current_group['profs']['proflist_string']." - ".$current_group['description']." en ".$current_group['classlist_string'];

	$pdf->SetXY($x0,$y0);

	$texte=$texte_titre;
	$largeur_dispo=$largeur_page-$marge_gauche-$marge_droite;
	$hauteur_caractere=12;
	$h_ligne=$h_ligne_titre_tableau;
	$graisse='B';
	$alignement='C';
	$bordure='';
	cell_ajustee_une_ligne(($texte),$pdf->GetX(),$pdf->GetY(),$largeur_dispo,$h_ligne,$hauteur_caractere,$fonte,$graisse,$alignement,$bordure);
	$y2=$y0+$h_ligne_titre_tableau;


	//===========================
	// Ligne d'entête du tableau
	//$pdf->SetXY($x0,$y0);
	$pdf->SetXY($x0,$y2);
	$largeur_dispo=$largeur_col_nom_ele;
	$texte=$ligne1_csv[1];

	$graisse='B';
	//$alignement='L';
	$alignement='C';
	$bordure='LRBT';
	cell_ajustee_une_ligne(($texte),$pdf->GetX(),$pdf->GetY(),$largeur_dispo,$h_ligne_titre_tableau,$taille_max_police,$fonte,$graisse,$alignement,$bordure);
Пример #5
0
			// Boucle sur la liste des élèves
			while($lig1=mysqli_fetch_object($res1)) {

				$pdf->AddPage(); //ajout d'une page au document
			
				//================================================
				// ENTETE DE PAGE
				//$pdf->SetFont('DejaVu');
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$pdf->SetXY($marge,$marge);
				//$pdf->SetFontSize($fs_txt);
				//$pdf->Cell($larg_acad,fs_pt2mm($pdf->FontSize)*$sc_interligne, "ACADÉMIE DE ".strtoupper($fb_academie),0,1,'');
				$pdf->Cell($larg_acad,fs_pt2mm($pdf->FontSize)*$sc_interligne, "ACADÉMIE DE ".casse_mot($fb_academie),0,1,'');

				//$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,2,'');
			
				// Cadre avec alignement à droite
				$pdf->SetXY(210-$marge-$larg_session,$marge);
				$pdf->Cell($larg_session,$pdf->FontSize*$sc_interligne, "Session: $fb_session",'',1,'R');
			
				// LRBT: Left Right Bottom Top

				$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');
Пример #6
0
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$pdf->SetXY($marge,$marge);
				//$pdf->SetFontSize($fs_txt);
				//$pdf->Cell($larg_acad,fs_pt2mm($pdf->FontSize)*$sc_interligne, "ACADÉMIE DE ".strtoupper($fb_academie),0,0,'L');
				//$texte="ACADÉMIE DE ".strtoupper($fb_academie);
				$texte="ACADÉMIE DE ".casse_mot($fb_academie);
				$pdf->Cell($pdf->GetStringWidth($texte),$pdf->FontSize*$sc_interligne, $texte,$bord_debug,0,'L');

				$x_tmp=$pdf->GetX();

				//$l_tmp=$pdf->GetStringWidth("FICHE SCOLAIRE DU BREVET - Série ".$tab_type_brevet[$type_brevet]);
				$pdf->Cell($l_page-2*$marge-$x_tmp,$pdf->FontSize*$sc_interligne, "FICHE SCOLAIRE DU BREVET - Série ".$tab_type_brevet[$type_brevet] ,$bord_debug,1,'C');

				$pdf->SetFont('DejaVu','',$fs_txt);
				//$pdf->SetXY($marge,$pdf->GetY()+$pdf->FontSize*$r_interligne);
				$pdf->SetXY($marge,$pdf->GetY());
				//$pdf->Cell($pdf->GetStringWidth("Département : "),$pdf->FontSize*$sc_interligne, "Département : $fb_departement",0,0,'L');
				$pdf->Cell($pdf->GetStringWidth("Département : "),$pdf->FontSize*$sc_interligne, "Département : ",0,0,'L');
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$pdf->Cell($larg_acad,$pdf->FontSize*$sc_interligne,$fb_departement,0,0,'L');

				$l_tmp=($l_page-2*$marge-$pdf->GetX())/2;
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$pdf->SetXY($pdf->GetX(),$pdf->GetY());
				$pdf->Cell($l_tmp,$pdf->FontSize*$sc_interligne, "Session: $fb_session",'',0,'C');

				$pdf->SetFont('DejaVu','',$fs_txt);
				$pdf->Cell($l_tmp,$pdf->FontSize*$sc_interligne, "N° d'inscription : _______________________",'',1,'R');

				// LRBT: Left Right Bottom Top
Пример #7
0
				// ENTETE DE PAGE
				// Cadre avec alignement à droite
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$pdf->SetXY(210-$marge-$larg_session,$marge);
				$pdf->Cell($larg_session,$pdf->FontSize*$sc_interligne, "SESSION $fb_session",'',1,'R');

				$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

				//================================================