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