$header1 = array(); $header1 = unserialize($_SESSION['header_pdf']); // tableau des largeurs $w1 = array(); $w1 = unserialize($_SESSION['w_pdf']); // tableau des données $data1 = array(); //$data1 = unserialize($_SESSION['data_pdf']); $data1 = unserialize($_SESSION['data_pdf']); /* foreach($data1 as $key => $value) { $data1[$key]=($data1[$value]); } */ $pdf->SetFont('DejaVu', '', 8); $pdf->FancyTable($w1, $header1, $data1, "v", "R"); //debug_var(); $pref_output_mode_pdf = get_output_mode_pdf(); //if((!isset($_GET['id_groupe']))||(!isset($_GET['nom_pdf_en_detail']))){ if (!isset($_GET['id_groupe'])) { send_file_download_headers('application/pdf', 'document.pdf'); $pdf->Output(); } elseif (!isset($_GET['nom_pdf_en_detail'])) { $ident_plus = remplace_accents($current_group["classlist_string"] . '_' . $current_group["description"] . '_' . date("Ymd"), 'all'); send_file_download_headers('application/pdf', $ident_plus . '.pdf'); $pdf->Output($ident_plus . '.pdf', $pref_output_mode_pdf); } else { //$ident_plus = date("Ymd"); $ident_plus = ""; if (isset($_GET['periode_num'])) { $ident_plus .= "Periode_" . $_GET['periode_num'] . "_";
$data_pdf[$num_ligne][] = number_format(max($tab_moy), 1, ".", ""); } $num_ligne++; /* echo "\$header_pdf<pre>"; print_r($header_pdf); echo "</pre><hr />"; echo "\$header_pdf<pre>"; print_r($w_pdf); echo "</pre><hr />"; echo "\$header_pdf<pre>"; print_r($data_pdf); echo "</pre><hr />"; */ $pdf->SetFont('DejaVu', '', 8); $pdf->FancyTable($w_pdf, $header_pdf, $data_pdf, "v", "R"); $pref_output_mode_pdf = get_output_mode_pdf(); $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; } else { $msg = "Aucun élève."; } } } //$message_enregistrement = "Les modifications ont été enregistrées !"; //$themessage = 'Des notes ont été modifiées. Voulez-vous vraiment quitter sans enregistrer ?'; //**************** EN-TETE ***************** $titre_page = "Visualisation des notes CC";