本文整理汇总了PHP中invoice::loadItems方法的典型用法代码示例。如果您正苦于以下问题:PHP invoice::loadItems方法的具体用法?PHP invoice::loadItems怎么用?PHP invoice::loadItems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类invoice
的用法示例。
在下文中一共展示了invoice::loadItems方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Header
if (!has_rights(ACX_INVOICES)) {
Header("HTTP/1.0 401 Unauthorized");
Header("Location: PP_error.php?c=accessdenied");
die;
}
getpost_ifset(array('id'));
if (empty($id)) {
Header("Location: A2B_entity_invoice.php?atmenu=payment§ion=13");
}
$invoice = new invoice($id);
if ($invoice->getCard() != $_SESSION["card_id"]) {
Header("HTTP/1.0 401 Unauthorized");
Header("Location: PP_error.php?c=accessdenied");
die;
}
$items = $invoice->loadItems();
//load customer
$DBHandle = DbConnect();
$card_table = new Table('cc_card', '*');
$card_clause = "id = " . $_SESSION["card_id"];
$card_result = $card_table->Get_list($DBHandle, $card_clause, 0);
$card = $card_result[0];
if (empty($card)) {
echo "Customer doesn't exist or is not correctly defined for this invoice !";
die;
}
$smarty->display('main.tpl');
//Load invoice conf
$invoice_conf_table = new Table('cc_invoice_conf', 'value');
$conf_clause = "key_val = 'company_name'";
$result = $invoice_conf_table->Get_list($DBHandle, $conf_clause, 0);