function exportBannette($id_bannette) { global $msg, $PMBusername; global $ourPDF; if (SESSrights & DSI_AUTH) { if (!$id_bannette) { throw new Exception("Missing parameter: id_bannette"); } $bannette = new bannette($id_bannette); // $action_diff_aff .= "<strong>".$msg['dsi_dif_export'].": ".$bannette->nom_bannette."</strong><br />" ; // $ourPDF = $bannette->construit_contenu_PDF(); $resultat_html = $bannette->construit_contenu_HTML(); $ourPDF = new PDF_HTML(); $ourPDF->AddPage(); $ourPDF->SetFont('Arial'); $ourPDF->WriteHTML($resultat_html); return $ourPDF; } else { return sprintf($msg["planificateur_rights_bad_user_rights"], $PMBusername); } }