本文整理汇总了PHP中member::getMembers方法的典型用法代码示例。如果您正苦于以下问题:PHP member::getMembers方法的具体用法?PHP member::getMembers怎么用?PHP member::getMembers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::getMembers方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDiscount
function getDiscount($rowCoupon, $memberid)
{
global $DB;
include_once MODELS . '/member_model.php';
$objMember = new member();
$InvRow = $this->getInvoice();
if ($InvRow->id > 0) {
$row = $objMember->getMembers($memberid);
if ($rowCoupon->discount_price > 0) {
$discount = $rowCoupon->discount_price;
} else {
$discount = $row->amount_paid * $rowCoupon->discount_perc / 100;
}
//$discount = (($row->amount_paid * $rowCoupon->discount) / 100);
$finalAmount = $row->amount_paid - $discount;
$_SESSION['register']['coupon_code'] = $rowCoupon->coupon_code;
return json_encode(array('discount' => '$' . number_format($discount, 2), 'final' => '$' . number_format($finalAmount, 2), 'error' => '', 'success' => ' Coupon Discount HKD $' . number_format($discount, 2)));
}
}
示例2: member
<?php
$model = $_REQUEST['model'];
$action = $_REQUEST['action'];
include_once MODELS . "/member_model.php";
switch (strtoupper($action)) {
case 'SAVE':
$objMember = new member();
$objMember->setMembers();
break;
case 'PAYMENT':
if (isset($_REQUEST['btn_submit_x']) && $_REQUEST['btn_submit_x'] != '') {
$objMember = new member();
$row = $objMember->payment();
} else {
$objMember = new member();
$row = $objMember->getMembers($_SESSION['register']['member_id']);
}
break;
case 'PAID':
$objMember = new member();
$objMember->finalPayment();
break;
case 'REGISTER':
if ($_SESSION['site']['ai_user'] != '') {
$objComm->redirect1("index.php");
}
break;
default:
break;
}