本文整理匯總了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) {