// Resume session $resultat_session = $session_gepi->security_check(); if ($resultat_session == 'c') { header("Location: ../utilisateurs/mon_compte.php?change_mdp=yes"); die; } else { if ($resultat_session == '0') { header("Location: ../logout.php?auto=1"); die; } } if (!checkAccess()) { header("Location: ../logout.php?auto=1"); die; } $pdf = new Ex_FPDF("P", "mm", "A4"); $pdf->SetTopMargin(TopMargin); $pdf->SetRightMargin(RightMargin); $pdf->SetLeftMargin(LeftMargin); $pdf->SetAutoPageBreak(true, BottomMargin); // Couleur des traits $pdf->SetDrawColor(0, 0, 0); // Pour les tests : permet de voir les bords des cadres $bord = 0; // on appelle une nouvelle page pdf $pdf->AddPage("P"); $pdf->SetFontSize(10); $text_classe_matiere = ''; if (isset($_GET['id_groupe'])) { $current_group = get_group((int) $_GET['id_groupe']); $text_classe_matiere = $current_group["description"];
$date = date("Ymd_Hi"); $nom_fich = 'evaluation_cumul_' . $id_dev . '_' . $date . '.pdf'; send_file_download_headers('application/pdf', $nom_fich); $pdf->Output($nom_fich, $pref_output_mode_pdf); die; } } if (isset($_GET['export_pdf2'])) { define('TopMargin', '15'); define('RightMargin', '15'); define('LeftMargin', '15'); define('BottomMargin', '15'); define('LargeurPage', '210'); require_once '../fpdf/fpdf.php'; require_once '../fpdf/ex_fpdf.php'; $pdf = new Ex_FPDF("P", "mm", "A4"); $pdf->SetTopMargin(TopMargin); $pdf->SetRightMargin(RightMargin); $pdf->SetLeftMargin(LeftMargin); $pdf->SetAutoPageBreak(true, BottomMargin); // Couleur des traits $pdf->SetDrawColor(0, 0, 0); // Pour les tests : permet de voir les bords des cadres $bord = 0; // on appelle une nouvelle page pdf $pdf->AddPage("P"); $pdf->SetFontSize(10); $titre = $nom_court_dev . " : " . $nom_complet_dev; //Positionnement du titre $w = $pdf->GetStringWidth($titre) + 6; $pdf->SetX((LargeurPage - $w) / 2);