當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。