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