| $langfile[none] $langfile[messages] |
";
}
$pdf->writeHTML($htmltable, true, 0, true, 0);
$pdf->Output("project-$id-messages.pdf", "D");
} elseif ($action == "export-single")
{
$l = Array();
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'en';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'page';
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true);
$pdf->setHeaderFont(Array(PDF_FONT_NAME_DATA, '', 20));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', 8));
$pdf->SetHeaderMargin(0);
$pdf->SetFont(PDF_FONT_NAME_DATA, "", 11);
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);
$pdf->setLanguageArray($l);
$pdf->AliasNbPages();
$pdf->AddPage();
// check if the user is allowed to edit messages
if (!$userpermissions["messages"]["add"])
{
$errtxt = $langfile["nopermission"];
$noperm = $langfile["accessdenied"];
$template->assign("errortext", "