本文整理匯總了PHP中invoice::get_invoice_statii_payment方法的典型用法代碼示例。如果您正苦於以下問題:PHP invoice::get_invoice_statii_payment方法的具體用法?PHP invoice::get_invoice_statii_payment怎麽用?PHP invoice::get_invoice_statii_payment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類invoice
的用法示例。
在下文中一共展示了invoice::get_invoice_statii_payment方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: show_filter
function show_filter()
{
global $TPL;
global $defaults;
$_FORM = invoice::load_form_data($defaults);
$arr = invoice::load_invoice_filter($_FORM);
is_array($arr) and $TPL = array_merge($TPL, $arr);
$payment_statii = invoice::get_invoice_statii_payment();
foreach ($payment_statii as $payment_status => $label) {
$summary .= "\n" . $nbsp . invoice::get_invoice_statii_payment_image($payment_status) . " " . $label;
$nbsp = " ";
}
$TPL["status_legend"] = $summary;
include_template("templates/invoiceListFilterS.tpl");
}
示例2: load_invoice_filter
function load_invoice_filter($_FORM)
{
global $TPL;
// Load up the forms action url
$rtn["url_form_action"] = $_FORM["url_form_action"];
$statii = invoice::get_invoice_statii();
unset($statii["create"]);
$rtn["statusOptions"] = page::select_options($statii, $_FORM["invoiceStatus"]);
$statii_payment = invoice::get_invoice_statii_payment();
$rtn["statusPaymentOptions"] = page::select_options($statii_payment, $_FORM["invoiceStatusPayment"]);
$rtn["status"] = $_FORM["status"];
$rtn["dateOne"] = $_FORM["dateOne"];
$rtn["dateTwo"] = $_FORM["dateTwo"];
$rtn["invoiceID"] = $_FORM["invoiceID"];
$rtn["invoiceName"] = $_FORM["invoiceName"];
$rtn["invoiceNum"] = $_FORM["invoiceNum"];
$rtn["invoiceItemID"] = $_FORM["invoiceItemID"];
$options["clientStatus"] = "Current";
$options["return"] = "dropdown_options";
$ops = client::get_list($options);
$ops = array_kv($ops, "clientID", "clientName");
$rtn["clientOptions"] = page::select_options($ops, $_FORM["clientID"]);
// Get
$rtn["FORM"] = "FORM=" . urlencode(serialize($_FORM));
return $rtn;
}