コード例 #1
0
ファイル: account.action.php プロジェクト: xinlechou/wap
 public function mortgate_pay()
 {
     if (!$GLOBALS['user_info']) {
         app_redirect(url("user#login"));
     }
     $GLOBALS['tmpl']->assign("page_title", "充值诚意金");
     $new_money = user_need_mortgate();
     $has_money = $GLOBALS['db']->getOne("select mortgage_money from " . DB_PREFIX . "user where id=" . $GLOBALS['user_info']['id']);
     $money = $new_money - $has_money;
     if ($money <= 0) {
         //app_redirect(url("account#mortgate_incharge"));
         showSuccess("您的诚意金已支付,无需再支付!");
     }
     $GLOBALS['tmpl']->assign("money", $money);
     $payment_list = get_payment_list("wap");
     $GLOBALS['tmpl']->assign("payment_list", $payment_list);
     $GLOBALS['tmpl']->display("account_mortgate_pay.html");
 }
コード例 #2
0
ファイル: order2.php プロジェクト: Effzz/www.momocuppy.com
            <div class="row">
              <span class="note_title">Purchase Point</span>
              <span class="note_sep">:</span>
              <span id="txt_point" class="note_data">9</span>
            </div>          
            <div class="row">
              <span class="note_title"><strong>grand total</strong></span>
              <span class="note_sep">:</span>
              <span id="txt_grand_total" class="note_data">IDR 0</span>
            </div>                                                  
          </div>              
        </div>
        <!--end rightorderbox-->        
        <h5 class="paymethod">How would you like to pay for your order?</h5>
        <?php 
$data = get_payment_list();
if ($data["result"]) {
    foreach ($data["result"] as $row) {
        $id = $row->id;
        $payment_name = $row->payment_name;
        $rek_no = $row->rek_no;
        echo "\n              <div class='row_paymethod'>\n                <input type='radio' name='paymethod' value='" . $id . "' id='paymethod" . $id . "'><label for='paymethod" . $id . "'></label><span>" . $payment_name . "</span>          \n              </div>\t\t\t\t\t\n            ";
    }
}
?>
      

        <div class="rowinput">
          <input type="hidden" id="order_id_member" name="order_id_member" value="2" />
          <input type="hidden" id="order_firstname" name="order_firstname" value="" />
          <input type="hidden" id="order_lastname" name="order_lastname" value="" />
コード例 #3
0
ファイル: cart.action.php プロジェクト: xinlechou/wap
 public function index()
 {
     if (!$GLOBALS['user_info']) {
         app_redirect(url_wap("user#login"));
     }
     //(普通众筹)支持之前需要用户绑定手机号
     if (!$GLOBALS['user_info']['mobile']) {
         app_redirect(url_wap("user#user_bind_mobile", array("cid" => intval($_REQUEST['id']))));
     }
     $GLOBALS['tmpl']->assign("user_info", $GLOBALS['user_info']);
     $id = intval($_REQUEST['id']);
     $iDI = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "iqianjin_deal_item where deal_item_id = " . $id);
     if ($iDI) {
         //检测爱钱进红包购买情况
         $iWL = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "iqianjin_winner where user_id = " . $GLOBALS['user_info']['id']);
         if ($iWL) {
             showErr("您已中奖!获得了爱钱进普通红包,请您到爱钱进领取。", 0, url_wap("index"));
         }
         $iB2L = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "iqianjin_buy where type=2 and user_id = " . $GLOBALS['user_info']['id']);
         if ($iB2L) {
             if ($iDI['type'] == 2) {
                 showErr("您已经购买了本红包,请您到爱钱进领取。", 0, url_wap("index"));
             }
         }
         $iBL = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "iqianjin_buy where type=1 and deal_item_id=" . $id . " and user_id = " . $GLOBALS['user_info']['id']);
         if ($iBL) {
             showErr("您今天已经购买了本红包,请明天12:00再来支持。", 0, url_wap("index"));
         }
     }
     $deal_item = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal_item where id = " . $id);
     if (!$deal_item) {
         app_redirect(url_wap("index"));
     } elseif ($deal_item['support_count'] + $deal_item['virtual_person'] >= $deal_item['limit_user'] && $deal_item['limit_user'] != 0) {
         app_redirect(url_wap("deal#show", array("id" => $deal_item['deal_id'])));
     }
     $deal_info = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal where is_delete = 0 and is_effect = 1 and id = " . $deal_item['deal_id']);
     $deal_info = cache_deal_extra($deal_info);
     init_deal_page_wap($deal_info);
     if (!$deal_info) {
         app_redirect(url_wap("index"));
     } elseif ($deal_info['begin_time'] > NOW_TIME || $deal_info['end_time'] < NOW_TIME && $deal_info['end_time'] != 0) {
         app_redirect(url_wap("deal#show", array("id" => $deal_item['deal_id'])));
     }
     $deal_item['consigee_url'] = url_wap("settings#add_consignee");
     $deal_item['price_format'] = number_price_format($deal_item['price']);
     $deal_item['delivery_fee_format'] = number_price_format($deal_item['delivery_fee']);
     $deal_item['total_price'] = $deal_item['price'] + $deal_item['delivery_fee'];
     $deal_item['total_price_format'] = number_price_format($deal_item['total_price']);
     $deal_info['percent'] = round($deal_info['support_amount'] / $deal_info['limit_price'] * 100);
     $deal_info['remain_days'] = ceil(($deal_info['end_time'] - NOW_TIME) / (24 * 3600));
     $GLOBALS['tmpl']->assign("deal_item", $deal_item);
     if ($deal_item['is_delivery']) {
         $consignee_list = $GLOBALS['db']->getAll("select * from " . DB_PREFIX . "user_consignee where user_id = " . intval($GLOBALS['user_info']['id']));
         if ($consignee_list) {
             $GLOBALS['tmpl']->assign("consignee_list", $consignee_list);
         } else {
             $region_lv2 = $GLOBALS['db']->getAll("select * from " . DB_PREFIX . "region_conf where region_level = 2 order by py asc");
             //二级地址
             $GLOBALS['tmpl']->assign("region_lv2", $region_lv2);
         }
     }
     $payment_list = get_payment_list("wap");
     $GLOBALS['tmpl']->assign("payment_list", $payment_list);
     $GLOBALS['tmpl']->display("cart_index.html");
 }
コード例 #4
0
 public function mortgate_pay()
 {
     if (!$GLOBALS['user_info']) {
         app_redirect(url_wap("user#login"));
     }
     $GLOBALS['tmpl']->assign("page_title", "缴纳诚意金");
     $deal_id = $_REQUEST['deal_id'];
     $GLOBALS['tmpl']->assign("deal_id", $deal_id);
     $deal_info = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal where is_delete = 0 and is_effect = 1 and id = " . $deal_id);
     $GLOBALS['tmpl']->assign("deal_info", $deal_info);
     $new_money = user_need_mortgate();
     $has_money = $GLOBALS['db']->getOne("select sum(amount) from " . DB_PREFIX . "money_freeze where platformUserNo=" . $GLOBALS['user_info']['id'] . " and deal_id=" . $deal_id . " and status=1 ");
     $money = $new_money - $has_money;
     if ($money <= 0) {
         //app_redirect(url_wap("account#mortgate_incharge"));
         showSuccess("您的诚意金已支付,无需再支付!");
     }
     $GLOBALS['tmpl']->assign("money", $money);
     if ($money > $GLOBALS['user_info']['money']) {
         $left_money = $money - floatval($GLOBALS['user_info']['money']);
     } else {
         $left_money = 0;
     }
     $GLOBALS['tmpl']->assign("left_money", $left_money);
     $payment_list = get_payment_list("wap");
     $GLOBALS['tmpl']->assign("payment_list", $payment_list);
     $GLOBALS['tmpl']->assign("coll", is_tg(true));
     $GLOBALS['tmpl']->display("account_mortgate_pay.html");
 }