当前位置: 首页>>代码示例>>PHP>>正文


PHP Cezpdf::EzNewPage方法代码示例

本文整理汇总了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;
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:31,代码来源:batch_print.php


注:本文中的Cezpdf::EzNewPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。