get('jrn_id',"number"); $p_simple=$http->get('p_simple',"string"); } catch (Exception $exc) { echo $exc->getMessage(); error_log($exc->getTraceAsString()); throw $exc; } $l_type = "JRN"; $own = new Noalyss_Parameter_Folder($cn); $Jrn = new Acc_Ledger($cn, $jrn_id); $Jrn->get_name(); $g_user->Check(); $g_user->check_dossier($gDossier); // Security if ($jrn_id != 0 && $g_user->check_jrn($jrn_id) == 'X') { /* Cannot Access */ NoAccess(); } $ret = ""; $jrn_type = $Jrn->get_type(); $pdf = Print_Ledger::factory($cn, $p_simple, "PDF", $Jrn); $pdf->setDossierInfo($Jrn->name); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetAuthor('NOALYSS'); $pdf->setTitle(_("Journal"), true); $pdf->export(); $fDate = date('dmy-Hi'); $pdf->Output('journal-' . $fDate . '.pdf', 'D'); exit(0); ?>