當前位置: 首頁>>代碼示例>>PHP>>正文


PHP member::getMembers方法代碼示例

本文整理匯總了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)));
     }
 }
開發者ID:business-expert,項目名稱:prnsc,代碼行數:19,代碼來源:invoice.php

示例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;
}
開發者ID:business-expert,項目名稱:aiclubnew,代碼行數:31,代碼來源:member.php


注:本文中的member::getMembers方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。