示例#1
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;
示例#2
0
				$pdf->SetFont('DejaVu','',$fs_titre);
				$pdf->SetXY($marge,$marge);
				$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 {
 if ($tab_modele_pdf["nom_etab_gras"][$classe_id] === '1') {
     $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);
示例#4
0
					$pdf->Cell($larg_col_val_prenom,$pdf->FontSize*$sc_interligne, get_commune($lig1->lieu_naissance, 2),$bord_debug,1,'');
				}
				else {
					$pdf->Cell($larg_col_val_prenom,$pdf->FontSize*$sc_interligne, '',$bord_debug,1,'');
				}

				//================================================
				// TABLEAU ADRESSE ETAB
				//$pdf->SetXY($marge,65);
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$y_etab=$pdf->GetY();
				//$pdf->Cell($larg_col_etab,2*$pdf->FontSize*$sc_interligne, "",'LBT',1,'');

				$pdf->SetXY($marge,$y_etab);
				$pdf->Cell($larg_col_etab,$pdf->FontSize*$sc_interligne, "Établissement fréquenté:",'',0,'');
				$x=$pdf->GetX();
				//$pdf->SetXY($x,65);
				//$pdf->SetFont('DejaVu','',$fs_txt);
				$font_size=adjust_size_font($gepiSchoolName,$larg_col_val_etab,$fs_txt,0.1);
				$pdf->SetFont('DejaVu','',$font_size);
				//$pdf->Cell($larg_col_val_etab,$pdf->FontSize*$sc_interligne, $gepiSchoolName,'RT',1,'');
				$pdf->Cell($larg_col_val_etab,$pdf->FontSize*$sc_interligne, $gepiSchoolName,'',1,'');
				$y=$pdf->GetY();
				$pdf->SetXY($x,$y);
				// A MODIFIER: Si l'adresse est très longue, cela peut déborder...
				$font_size=adjust_size_font($adresse_etab,$larg_col_val_etab,$fs_txt,0.1);
				$pdf->SetFont('DejaVu','',$font_size);
				//$pdf->Cell($larg_col_val_etab,$pdf->FontSize*$sc_interligne, $adresse_etab,'RB',1,'');
				$pdf->Cell($larg_col_val_etab,$pdf->FontSize*$sc_interligne, $adresse_etab,'',1,'');

				$y=$pdf->GetY();
示例#5
0
			while($lig1=mysqli_fetch_object($res1)) {

				$pdf->AddPage('L'); //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,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());
示例#6
0
					$pdf->Cell($larg_col_nom,$pdf->FontSize*$sc_interligne, "Né le : ".formate_date($lig1->naissance)." à ".$lieu_naiss,$bord_debug,1,'');
				}

				//================================================
				// TABLEAU ADRESSE ETAB
				//$pdf->SetXY($marge,65);
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$y_etab=$pdf->GetY();

				//$pdf->SetXY($marge+$larg_col_disc+$larg_col_note,$y_etab);
				//$pdf->Cell($larg_col_etab,2*$pdf->FontSize*$sc_interligne, "",'LRBT',1,'');

				//$pdf->SetXY($marge+$larg_col_disc+2*$larg_col_note,$y);
				$pdf->SetXY($marge+$larg_col_disc+$larg_col_note,$y_etab);
				$pdf->Cell($larg_col_etab,$pdf->FontSize*$sc_interligne, "Établissement fréquenté : ",'',0,'');
				$x=$pdf->GetX();
				//$pdf->SetXY($x,65);
				$font_size=adjust_size_font($gepiSchoolName,$larg_col_val_etab,$fs_txt,0.1);
				$pdf->SetFont('DejaVu','',$font_size);
				//$pdf->Cell($larg_col_val_etab,$pdf->FontSize*$sc_interligne, $gepiSchoolName,'RT',1,'');
				$pdf->Cell($larg_col_val_etab,$pdf->FontSize*$sc_interligne, $gepiSchoolName,'',1,'');
				$y=$pdf->GetY();
				//$pdf->SetXY($marge+$larg_col_disc+2*$larg_col_note,$y);
				$pdf->SetXY($marge+$larg_col_disc+$larg_col_note,$y);
				// A MODIFIER: Si l'adresse est très longue, cela peut déborder...
				$font_size=adjust_size_font($adresse_etab,$larg_col_etab+$larg_col_val_etab,$fs_txt,0.1);
				$pdf->SetFont('DejaVu','',$font_size);
				//$pdf->Cell($larg_col_etab+$larg_col_val_etab,$pdf->FontSize*$sc_interligne, $adresse_etab,'RB',1,'');
				$pdf->Cell($larg_col_etab+$larg_col_val_etab,$pdf->FontSize*$sc_interligne, $adresse_etab,'',1,'');

				$y=$pdf->GetY();