本文整理汇总了PHP中Cezpdf::EzNewPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Cezpdf::EzNewPage方法的具体用法?PHP Cezpdf::EzNewPage怎么用?PHP Cezpdf::EzNewPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cezpdf
的用法示例。
在下文中一共展示了Cezpdf::EzNewPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
$pdf->setFontFamily(BATCH_PDF_DIR . 'Helvetica.afm');
if ($HTTP_POST_VARS['show_comments']) {
$get_customer_comments = ' and h.orders_status_id = ' . DEFAULT_ORDERS_STATUS_ID;
}
if ($HTTP_POST_VARS['pull_status']) {
$pull_w_status = " and o.orders_status = " . $HTTP_POST_VARS['pull_status'];
}
$orders_query = tep_db_query("select o.orders_id,h.comments,MIN(h.date_added) from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_STATUS_HISTORY . " h where o.date_purchased between '" . tep_db_input($startdate) . "' and '" . tep_db_input($enddate) . " 23:59:59' and h.orders_id = o.orders_id" . $pull_w_status . $get_customer_comments . ' group by o.orders_id');
if (!tep_db_num_rows($orders_query) > 0) {
message_handler('NO_ORDERS');
}
$num = 0;
while ($orders = tep_db_fetch_array($orders_query)) {
$order = new order($orders['orders_id']);
if ($num != 0) {
$pdf->EzNewPage();
}
$y = $pdf->ezText(STORE_NAME_ADDRESS, COMPANY_HEADER_FONT_SIZE);
$y -= 10;
$pdf->setLineStyle(1);
$pdf->line(LEFT_MARGIN, $y, LINE_LENGTH, $y);
$pdf->ezSetY($y);
$dup_y = $y;
$y = $pdf->ezText("<b>" . TEXT_ORDER_NUMBER . " </b>" . $orders['orders_id'] . "\n\n", SUB_HEADING_FONT_SIZE);
if ($HTTP_POST_VARS['show_order_date']) {
$pdf->ezSetY($dup_y);
$pdf->ezText("<b>" . TEXT_ORDER_DATE . " </b>" . date(TEXT_ORDER_FORMAT, strtotime($order->info['date_purchased'])) . "\n\n", SUB_HEADING_FONT_SIZE, array('justification' => 'right'));
}
$pdf->addText(LEFT_MARGIN, $y, SUB_HEADING_FONT_SIZE, "<b>" . ENTRY_SOLD_TO . "</b>");
$pos = $y;
$indent = LEFT_MARGIN + TEXT_BLOCK_INDENT;