本文整理汇总了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) {