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