本文整理匯總了PHP中customer::markInvoicedPaid方法的典型用法代碼示例。如果您正苦於以下問題:PHP customer::markInvoicedPaid方法的具體用法?PHP customer::markInvoicedPaid怎麽用?PHP customer::markInvoicedPaid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類customer
的用法示例。
在下文中一共展示了customer::markInvoicedPaid方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: customer
<?php
// Includng configuration file
include 'config/config.php';
//Check user is already login or not
checkAuthentication();
$id = $_SESSION['adminid'];
$customer = new customer();
if (isset($_GET['action']) && $_GET['action'] == 'custinvmarkpaid') {
$id = $_GET['id'];
$invoice = $customer->getCustomersInvoice($id);
$smarty->assign('invoice', $customer->getCustomersInvoice($id));
$smarty->assign('content', $smarty->fetch('custinvmarkpaid.tpl'));
} elseif (isset($_POST['action']) && $_POST['action'] == 'markpaid') {
$data = $_POST;
if ($customer->markInvoicedPaid($data)) {
header('Location: ' . FRONTEND . 'custrevenue.php');
exit;
}
} elseif (isset($_GET['action']) && $_GET['action'] == 'invoicelist') {
$id = $_GET['id'];
$smarty->assign('customer', $customer->getCustomer($id));
$smarty->assign('invoices', $customer->getCustomersInvoices($id));
$smarty->assign('content', $smarty->fetch('custinvoicelist.tpl'));
} else {
$page = 0;
if (isset($_GET['page'])) {
$page = $_GET['page'];
}
$customers = $customer->getCustomers($page, $offset = 10);
$smarty->assign('customercount', $customer->getCustomersCount());