本文整理汇总了PHP中MYPDF::WriteHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::WriteHtml方法的具体用法?PHP MYPDF::WriteHtml怎么用?PHP MYPDF::WriteHtml使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::WriteHtml方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strftime
$pdf_filter[] = $kga['lang']['export_extension']['refundable_refundable'];
break;
case 1:
$pdf_filter[] = $kga['lang']['export_extension']['refundable_not_refundable'];
break;
}
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_title);
$pdf->setPrintHeader(false);
$pdf->AddPage();
$pdf->SetFont('freesans');
if (isset($_REQUEST['create_bookmarks'])) {
$pdf->Bookmark($pdf_title, 0, 0);
}
//$pdf->ImageEps('kimai-logo.ai', 0, 10, 60, 0, "http://www.kimai.org", true, 'T', 'R'); // include company logo
$pdf->WriteHtml('<h1>' . $pdf_title . '</h1>');
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['time_period'] . ':</b> ' . strftime($kga->getDateFormat(2), $in) . ' - ' . strftime($kga->getDateFormat(2), $out));
if (isset($pdf_filter)) {
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['tab_filter'] . ':</b> ' . implode(' | ', $pdf_filter));
}
if (!empty($_REQUEST['document_comment'])) {
$pdf->ln();
$pdf->WriteHtml($_REQUEST['document_comment']);
}
if (isset($_REQUEST['print_summary'])) {
if (isset($_REQUEST['create_bookmarks'])) {
$pdf->Bookmark($kga['lang']['export_extension']['summary'], 0, 0);
}
$pdf->ln();
示例2: strftime
$pdf_filter[] = $kga['lang']['export_extension']['refundable_refundable'];
break;
case 1:
$pdf_filter[] = $kga['lang']['export_extension']['refundable_not_refundable'];
break;
}
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_title);
$pdf->setPrintHeader(false);
$pdf->AddPage();
$pdf->setFont('helvetica');
if (isset($_REQUEST['create_bookmarks'])) {
$pdf->Bookmark($pdf_title, 0, 0);
}
//$pdf->ImageEps('kimai-logo.ai', 0, 10, 60, 0, "http://www.kimai.org", true, 'T', 'R'); // include company logo
$pdf->WriteHtml('<h1>' . $pdf_title . '</h1>');
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['time_period'] . ':</b> ' . strftime($kga['date_format']['2'], $in) . ' - ' . strftime($kga['date_format']['2'], $out));
if (isset($pdf_filter)) {
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['tab_filter'] . ':</b> ' . implode(' | ', $pdf_filter));
}
if (!empty($_REQUEST['document_comment'])) {
$pdf->ln();
$pdf->WriteHtml($_REQUEST['document_comment']);
}
$pdf->ln();
if (isset($_REQUEST['print_summary'])) {
if (isset($_REQUEST['create_bookmarks'])) {
$pdf->Bookmark($kga['lang']['export_extension']['summary'], 0, 0);
}
示例3: strftime
case 0:
$pdf_filter[] = $kga['lang']['xp_ext']['refundable_refundable'];
break;
case 1:
$pdf_filter[] = $kga['lang']['xp_ext']['refundable_not_refundable'];
break;
}
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_title);
$pdf->setPrintHeader(false);
$pdf->AddPage();
if (isset($_REQUEST['create_bookmarks'])) {
$pdf->Bookmark($pdf_title, 0, 0);
}
//$pdf->ImageEps('kimai-logo.ai', 0, 10, 60, 0, "http://www.kimai.org", true, 'T', 'R'); // include company logo
$pdf->WriteHtml('<h1>' . $pdf_title . '</h1>');
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['xp_ext']['time_period'] . ':</b> ' . strftime($kga['date_format']['2'], $in) . ' - ' . strftime($kga['date_format']['2'], $out));
if (isset($pdf_filter)) {
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['xp_ext']['filter'] . ':</b> ' . implode(' | ', $pdf_filter));
}
if (!empty($_REQUEST['document_comment'])) {
$pdf->ln();
$pdf->WriteHtml($_REQUEST['document_comment']);
}
if (isset($_REQUEST['print_summary'])) {
//Create the summary.
$zef_summary = array();
$exp_summary = array();
foreach ($arr_data as $one_entry) {