コード例 #1
0
 } else {
     if (getPref($_SESSION["login"], "visu_toutes_notes_forcer_h_cell_pdf", "n") != "n") {
         savePref($_SESSION['login'], "visu_toutes_notes_forcer_h_cell_pdf", "n");
     }
 }
 // Largeur des colonnes
 $largeur_col = array();
 $largeur_col[1] = $largeur_col_nom_ele;
 $indice_col_app = array();
 $taille_max_police = $hauteur_police;
 $taille_min_police = ceil($taille_max_police / 3);
 $x0 = $marge_gauche;
 $y0 = $marge_haute;
 $largeur_nomprenom_classe_et_notes = $marge_gauche + $largeur_col_nom_ele;
 $format_page = "P";
 $pdf = new bul_PDF($format_page, 'mm', 'A4');
 $pdf->SetCreator($gepiSchoolName);
 $pdf->SetAuthor($gepiSchoolName);
 $pdf->SetKeywords('');
 $pdf->SetSubject('Toutes_notes');
 $pdf->SetTitle('Toutes_notes');
 $pdf->SetDisplayMode('fullwidth', 'single');
 $pdf->SetCompression(TRUE);
 $pdf->SetAutoPageBreak(TRUE, 5);
 $pdf->AddPage();
 $fonte = 'DejaVu';
 $pdf->SetFont($fonte, 'B', 8);
 $avec_date_naiss = "n";
 for ($i = 2; $i <= count($ligne1_csv); $i++) {
     if (preg_match("/^Date de naiss/", $ligne1_csv[$i])) {
         $avec_date_naiss = "y";
コード例 #2
0
ファイル: fb_lille_pdf.php プロジェクト: rhertzog/lcs
	$adresse_etab=$gepiSchoolAdress1.", ".$gepiSchoolAdress2.", ".$gepiSchoolZipCode." ".$gepiSchoolCity;

	$gepiYear=getSettingValue("gepiYear") ? getSettingValue("gepiYear") : ((strftime("%m")>7) ? ((strftime("%Y")-1)."-".strftime("%Y")) : (strftime("%Y")."-".strftime("%Y")+1));

	$logo_etab=getSettingValue("logo_etab") ? getSettingValue("logo_etab") : "";

	$X1 = 0; $Y1 = 0; $X2 = 0; $Y2 = 0;
	$X3 = 0; $Y3 = 0; $X4 = 0; $Y4 = 0;
	$X5 = 0; $Y5 = 0; $X6 = 0; $Y6 = 0;

	//variables invariables
	$annee_scolaire = $gepiYear;
	$date_fb = date("d/m/Y H:i");
	$date_fichier = date("Ymd_Hi");

	$pdf=new bul_PDF('l', 'mm', 'A4');
	$pdf->SetCreator($gepiSchoolName);
	$pdf->SetAuthor($gepiSchoolName);
	$pdf->SetKeywords('');
	$pdf->SetSubject('Bulletin');
	$pdf->SetTitle('Bulletin');
	$pdf->SetDisplayMode('fullwidth', 'single');
	$pdf->SetCompression(TRUE);
	$pdf->SetAutoPageBreak(TRUE, 5);

	// gestion des styles
	$pdf->SetStyle2("b","DejaVu","B",8,"0,0,0");
	$pdf->SetStyle2("i","DejaVu","I",8,"0,0,0");
	$pdf->SetStyle2("u","DejaVu","U",8,"0,0,0");

	$taille=10;
コード例 #3
0
ファイル: releve.php プロジェクト: rhertzog/lcs
							}
						}
						if($nb_max_eleves_par_classe>0) {
							// On ajoute les 6 lignes de stat en bas de tableau
							$h_cell=floor(($hauteur_page-$h_ligne_titre-$h_ligne_titre_tableau-$marge_haute-$marge_basse)/($nb_max_eleves_par_classe+6));

							if($h_cell>$h_max_cell) {$h_cell=$h_max_cell;}

							if($h_cell<$h_min_cell) {
								$h_cell=$h_min_cell;
								// Et on changera de page...
								// On pourrait recalculer une hauteur optimale avec 2 pages, 3 pages,...
							}
						}

						$pdf=new bul_PDF($format_page, 'mm', 'A4');
						$pdf->SetCreator($gepiSchoolName);
						$pdf->SetAuthor($gepiSchoolName);
						$pdf->SetKeywords('');
						$pdf->SetSubject('Examen blanc '.$id_exam);
						$pdf->SetTitle('Examen blanc '.$id_exam);
						$pdf->SetDisplayMode('fullwidth', 'single');
						$pdf->SetCompression(TRUE);
						$pdf->SetAutoPageBreak(TRUE, 5);

						$fonte='DejaVu';

						for($i=0;$i<$nb_classes;$i++) {
							$tab_notes=array();
							$tab_moy=array();
コード例 #4
0
ファイル: bull_exb.php プロジェクト: rhertzog/lcs
							}
							else {
								$tab_moy_gen[$tab_id_classe[$i]]['moyenne']="-";
								$tab_moy_gen[$tab_id_classe[$i]]['min']="-";
								$tab_moy_gen[$tab_id_classe[$i]]['max']="-";
							}
						}

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

						// Extraire les infos générales sur l'établissement
						require("../bulletin/header_bulletin_pdf.php");

						header('Content-type: application/pdf');
						//création du PDF en mode Portrait, unitée de mesure en mm, de taille A4
						$pdf=new bul_PDF('p', 'mm', 'A4');
						//$nb_eleve_aff = 1;
						//$categorie_passe = '';
						//$categorie_passe_count = 0;
						$pdf->SetCreator($gepiSchoolName);
						$pdf->SetAuthor($gepiSchoolName);
						$pdf->SetKeywords('');
						$pdf->SetSubject('Bulletin');
						$pdf->SetTitle('Bulletin');
						$pdf->SetDisplayMode('fullwidth', 'single');
						$pdf->SetCompression(TRUE);
						$pdf->SetAutoPageBreak(TRUE, 5);

						//for($i=0;$i<$nb_classes;$i++) {
						for($i=0;$i<count($id_classe);$i++) {
コード例 #5
0
 //
 // IL Y AURA A RENSEIGNER $tab_releve[$id_classe][$periode_num]['modele_pdf']
 // SI ON FAIT UNE IMPRESSION DE RELEVE PDF, POUR NE PAS REFAIRE LES REQUETES
 // POUR CHAQUE ELEVE.
 //========================================================================
 if ($mode_bulletin != "pdf") {
     echo "<script type='text/javascript'>\n\tdocument.getElementById('td_info').innerHTML='Affichage';\n</script>\n";
 } else {
     // définition d'une variable
     $hauteur_pris = 0;
     /*****************************************
      * début de la génération du fichier PDF  *
      * ****************************************/
     //header('Content-type: application/pdf');
     //création du PDF en mode Portrait, unitée de mesure en mm, de taille A4
     $pdf = new bul_PDF('p', 'mm', 'A4');
     $nb_eleve_aff = 1;
     $categorie_passe = '';
     $categorie_passe_count = 0;
     $pdf->SetCreator($gepiSchoolName);
     $pdf->SetAuthor($gepiSchoolName);
     $pdf->SetKeywords('');
     $pdf->SetSubject('Releve_de_notes');
     $pdf->SetTitle('Releve_de_notes');
     $pdf->SetDisplayMode('fullwidth', 'single');
     //$pdf->SetCompression(TRUE);
     $pdf->SetAutoPageBreak(TRUE, 5);
     $responsable_place = 0;
 }
 function regime($id_reg)
 {
コード例 #6
0
        if (empty($info_classe[$id_classe]['nom_hautresponsable'])) {
            $calldata = mysqli_query($GLOBALS["mysqli"], 'SELECT * FROM ' . $prefix_base . 'classes WHERE id="' . $id_classe . '"');
            $info_classe[$id_classe]['fonction_hautresponsable'] = old_mysql_result($calldata, 0, "formule");
            $info_classe[$id_classe]['nom_hautresponsable'] = @old_mysql_result($calldata, 0, "suivi_par");
        }
        $cpt_info_periode = $cpt_info_periode + 1;
    }
    $cpt_info_eleve = $cpt_info_eleve + 1;
}
// définition d'une variable
$hauteur_pris = 0;
/*****************************************
* début de la génération du fichier PDF  *
* ****************************************/
//création du PDF en mode Portrait, unitée de mesure en mm, de taille A4
$pdf = new bul_PDF('p', 'mm', 'A4');
$nb_eleve_aff = 1;
$categorie_passe = '';
$categorie_passe_count = 0;
$pdf->SetCreator($gepiSchoolName);
$pdf->SetAuthor($gepiSchoolName);
$pdf->SetKeywords('');
$pdf->SetSubject('Bulletin');
$pdf->SetTitle('Bulletin');
$pdf->SetDisplayMode('fullwidth', 'single');
$pdf->SetCompression(TRUE);
$pdf->SetAutoPageBreak(TRUE, 5);
$responsable_place = 0;
// On lance la construction du bulletin pour chaque élève sélectionné
while (!empty($nom_eleve[$nb_eleve_aff])) {
    $ident_eleve_aff = $ident_eleve[$nb_eleve_aff];
コード例 #7
0
ファイル: bull_index.php プロジェクト: rhertzog/lcs
      * début de la génération du fichier PDF  *
      * ****************************************/
     /*
     Faire la liste de tous les logins élèves
     Boucler ensuite sur les logins élèves, puis sur les périodes, puis sur les classes
     Retenir ce qui concerne le login courant et générer un fichier à chaque fois
     
     Ou alors remplir autrement le tableau $tab_bulletin
     */
     //if((!isset($bull_pdf_debug))||($bull_pdf_debug!='y')) {
     // 20120418
     if ((!isset($bull_pdf_debug) || $bull_pdf_debug != 'y') && $generer_fichiers_pdf_archivage != 'y') {
         send_file_download_headers('application/pdf', 'bulletin.pdf');
     }
     //création du PDF en mode Portrait, unitée de mesure en mm, de taille A4
     $pdf = new bul_PDF('p', 'mm', 'A4');
     $nb_eleve_aff = 1;
     $categorie_passe = '';
     $categorie_passe_count = 0;
     $pdf->SetCreator($gepiSchoolName);
     $pdf->SetAuthor($gepiSchoolName);
     $pdf->SetKeywords('');
     $pdf->SetSubject('Bulletin');
     $pdf->SetTitle('Bulletin');
     $pdf->SetDisplayMode('fullwidth', 'single');
     $pdf->SetCompression(TRUE);
     $pdf->SetAutoPageBreak(TRUE, 5);
     $responsable_place = 0;
 }
 if ($tri_par_etab_orig == 'y') {
     $tab_indices_etab = array();
コード例 #8
0
ファイル: fb_rouen_pdf.php プロジェクト: rhertzog/lcs
	$adresse_etab=$gepiSchoolAdress1.", ".$gepiSchoolAdress2.", ".$gepiSchoolZipCode." ".$gepiSchoolCity;

	$gepiYear=getSettingValue("gepiYear") ? getSettingValue("gepiYear") : ((strftime("%m")>7) ? ((strftime("%Y")-1)."-".strftime("%Y")) : (strftime("%Y")."-".strftime("%Y")+1));

	$logo_etab=getSettingValue("logo_etab") ? getSettingValue("logo_etab") : "";

	$X1 = 0; $Y1 = 0; $X2 = 0; $Y2 = 0;
	$X3 = 0; $Y3 = 0; $X4 = 0; $Y4 = 0;
	$X5 = 0; $Y5 = 0; $X6 = 0; $Y6 = 0;

	//variables invariables
	$annee_scolaire = $gepiYear;
	$date_fb = date("d/m/Y H:i");
	$date_fichier = date("Ymd_Hi");

	$pdf=new bul_PDF('p', 'mm', 'A4');
	$pdf->SetCreator($gepiSchoolName);
	$pdf->SetAuthor($gepiSchoolName);
	$pdf->SetKeywords('');
	$pdf->SetSubject('Bulletin');
	$pdf->SetTitle('Bulletin');
	$pdf->SetDisplayMode('fullwidth', 'single');
	$pdf->SetCompression(TRUE);
	$pdf->SetAutoPageBreak(TRUE, 5);

	// gestion des styles
	$pdf->SetStyle2("b","DejaVu","B",8,"0,0,0");
	$pdf->SetStyle2("i","DejaVu","I",8,"0,0,0");
	$pdf->SetStyle2("u","DejaVu","U",8,"0,0,0");

	$taille=10;
コード例 #9
0
ファイル: fb_creteil_pdf.php プロジェクト: rhertzog/lcs
	$adresse_etab=$gepiSchoolAdress1.", ".$gepiSchoolAdress2.", ".$gepiSchoolZipCode." ".$gepiSchoolCity;

	$gepiYear=getSettingValue("gepiYear") ? getSettingValue("gepiYear") : ((strftime("%m")>7) ? ((strftime("%Y")-1)."-".strftime("%Y")) : (strftime("%Y")."-".strftime("%Y")+1));

	$logo_etab=getSettingValue("logo_etab") ? getSettingValue("logo_etab") : "";

	$X1 = 0; $Y1 = 0; $X2 = 0; $Y2 = 0;
	$X3 = 0; $Y3 = 0; $X4 = 0; $Y4 = 0;
	$X5 = 0; $Y5 = 0; $X6 = 0; $Y6 = 0;

	//variables invariables
	$annee_scolaire = $gepiYear;
	$date_fb = date("d/m/Y H:i");
	$date_fichier = date("Ymd_Hi");

	$pdf=new bul_PDF('l', 'mm', 'A4');
	$pdf->SetCreator($gepiSchoolName);
	$pdf->SetAuthor($gepiSchoolName);
	$pdf->SetKeywords('');
	$pdf->SetSubject('Bulletin');
	$pdf->SetTitle('Bulletin');
	$pdf->SetDisplayMode('fullwidth', 'single');
	$pdf->SetCompression(TRUE);
	$pdf->SetAutoPageBreak(TRUE, 5);

	// gestion des styles
	$pdf->SetStyle2("b","DejaVu","B",8,"0,0,0");
	$pdf->SetStyle2("i","DejaVu","I",8,"0,0,0");
	$pdf->SetStyle2("u","DejaVu","U",8,"0,0,0");

	$taille=10;
コード例 #10
0
ファイル: fb_montpellier_pdf.php プロジェクト: rhertzog/lcs
	$adresse_etab=$gepiSchoolAdress1.", ".$gepiSchoolAdress2.", ".$gepiSchoolZipCode." ".$gepiSchoolCity;

	$gepiYear=getSettingValue("gepiYear") ? getSettingValue("gepiYear") : ((strftime("%m")>7) ? ((strftime("%Y")-1)."-".strftime("%Y")) : (strftime("%Y")."-".strftime("%Y")+1));

	$logo_etab=getSettingValue("logo_etab") ? getSettingValue("logo_etab") : "";

	$X1 = 0; $Y1 = 0; $X2 = 0; $Y2 = 0;
	$X3 = 0; $Y3 = 0; $X4 = 0; $Y4 = 0;
	$X5 = 0; $Y5 = 0; $X6 = 0; $Y6 = 0;

	//variables invariables
	$annee_scolaire = $gepiYear;
	$date_fb = date("d/m/Y H:i");
	$date_fichier = date("Ymd_Hi");

	$pdf=new bul_PDF('p', 'mm', 'A4');
	$pdf->SetCreator($gepiSchoolName);
	$pdf->SetAuthor($gepiSchoolName);
	$pdf->SetKeywords('');
	$pdf->SetSubject('Bulletin');
	$pdf->SetTitle('Bulletin');
	$pdf->SetDisplayMode('fullwidth', 'single');
	$pdf->SetCompression(TRUE);
	$pdf->SetAutoPageBreak(TRUE, 5);

	// gestion des styles
	$pdf->SetStyle2("b","DejaVu","B",8,"0,0,0");
	$pdf->SetStyle2("i","DejaVu","I",8,"0,0,0");
	$pdf->SetStyle2("u","DejaVu","U",8,"0,0,0");

	$taille=10;