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


PHP Cpdf::setPrintFooter方法代码示例

本文整理汇总了PHP中Cpdf::setPrintFooter方法的典型用法代码示例。如果您正苦于以下问题:PHP Cpdf::setPrintFooter方法的具体用法?PHP Cpdf::setPrintFooter怎么用?PHP Cpdf::setPrintFooter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cpdf的用法示例。


在下文中一共展示了Cpdf::setPrintFooter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Cpdf

 $Bottom_Margin = 30;
 $Left_Margin = 40;
 $Right_Margin = 30;
 $pdf = new Cpdf('P', 'pt', 'A4');
 $pdf->addInfo('Author', 'webERP ' . $Version);
 $pdf->addInfo('Creator', 'webERP http://www.weberp.org');
 if ($InvOrCredit == 'Invoice') {
     $pdf->addInfo('Title', _('Sales Invoice') . ' ' . $FromTransNo . ' to ' . $_POST['ToTransNo']);
     $pdf->addInfo('Subject', _('Invoices from') . ' ' . $FromTransNo . ' ' . _('to') . ' ' . $_POST['ToTransNo']);
 } else {
     $pdf->addInfo('Title', _('Sales Credit Note'));
     $pdf->addInfo('Subject', _('Credit Notes from') . ' ' . $FromTransNo . ' ' . _('to') . ' ' . $_POST['ToTransNo']);
 }
 $pdf->setAutoPageBreak(0);
 $pdf->setPrintHeader(false);
 $pdf->setPrintFooter(false);
 $pdf->AddPage();
 $pdf->cMargin = 0;
 $FirstPage = true;
 $line_height = 16;
 //Keep a record of the user's language
 $UserLanguage = $_SESSION['Language'];
 while ($FromTransNo <= filter_number_format($_POST['ToTransNo'])) {
     /*retrieve the invoice details from the database to print
     	notice that salesorder record must be present to print the invoice purging of sales orders will
     	nobble the invoice reprints */
     // check if the user has set a default bank account for invoices, if not leave it blank
     $sql = "SELECT bankaccounts.invoice,\n\t\t\t\t\tbankaccounts.bankaccountnumber,\n\t\t\t\t\tbankaccounts.bankaccountcode\n\t\t\t\tFROM bankaccounts\n\t\t\t\tWHERE bankaccounts.invoice = '1'";
     $result = DB_query($sql, '', '', false, false);
     if (DB_error_no() != 1) {
         if (DB_num_rows($result) == 1) {
开发者ID:sjhelios,项目名称:trikemindo,代码行数:31,代码来源:PrintCustTransPortrait.php


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