<%@ Page Language="C#" AutoEventWireup="true" %>

<script runat="server">
protected string GetCustomKey(string pKey)
{
    string __mini = app.Setting("custom_" + pKey + "_mini");
    string __max = app.Setting("custom_" + pKey + "_max");
    return __mini + "," + __max;
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
<form action="action.ashx" method="post" id="config_form_baofu">
<input type="hidden" name="sys_all_payconfig" value="form.type.allpay" />
<table class="opera">

<tr><td class="t1">宝付支付:</td>
<td >
<input type="radio" id="com_boopay_all3" name="com_1073_szx"  value="on" <%if(app.Setting("com_boopay_all")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_all1">开启</label>
<input type="radio" id="com_boopay_all4" name="com_1073_szx" value="off" <%if(app.Setting("com_boopay_all")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_all2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_pay" value="<%=app.Setting("premiun_boof_pay") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_pay_moneys") %>" custom="<%=GetCustomKey("premiun_boof_pay_moneys") %>" name="premiun_boof_pay_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">神州行:</td>
<td >
<input type="radio" id="com_boopay_szx1" name="com_boopay_szx"  value="on" <%if(app.Setting("com_boopay_szx")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_szx1">开启</label>
<input type="radio" id="com_boopay_szx2" name="com_boopay_szx" value="off" <%if(app.Setting("com_boopay_szx")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_szx2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_shengzhouxing" value="<%=app.Setting("premiun_boof_shengzhouxing") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_shengzhouxing_moneys") %>" custom="<%=GetCustomKey("premiun_boof_shengzhouxing_moneys") %>" name="premiun_boof_shengzhouxing_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">联通卡:</td>
<td >
<input type="radio" id="com_boopay_liantong1" name="com_boopay_liantong"  value="on" <%if(app.Setting("com_boopay_liantong")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_liantong1">开启</label>
<input type="radio" id="com_boopay_liantong2" name="com_boopay_liantong" value="off" <%if(app.Setting("com_boopay_liantong")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_liantong2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_liantongka" value="<%=app.Setting("premiun_boof_liantongka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_liantongka_moneys") %>" custom="<%=GetCustomKey("premiun_boof_liantongka_moneys") %>" name="premiun_boof_liantongka_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">电信卡:</td>
<td >
<input type="radio" id="com_boopay_dianxinka1" name="com_boopay_dianxinka"  value="on" <%if(app.Setting("com_boopay_dianxinka")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_dianxinka1">开启</label>
<input type="radio" id="com_boopay_dianxinka2" name="com_boopay_dianxinka" value="off" <%if(app.Setting("com_boopay_dianxinka")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_dianxinka2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_dianxinka" value="<%=app.Setting("premiun_boof_dianxinka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_dianxinka_moneys") %>" custom="<%=GetCustomKey("premiun_boof_dianxinka_moneys") %>" name="premiun_boof_dianxinka_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">盛大卡:</td>
<td >
<input type="radio" id="com_boopay_shengdaka1" name="com_boopay_shengdaka"  value="on" <%if(app.Setting("com_boopay_shengdaka")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_shengdaka1">开启</label>
<input type="radio" id="com_boopay_shengdaka2" name="com_boopay_shengdaka" value="off" <%if(app.Setting("com_boopay_shengdaka")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_shengdaka2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_shengdaka" value="<%=app.Setting("premiun_boof_shengdaka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_shengdaka_moneys") %>" custom="<%=GetCustomKey("premiun_boof_shengdaka_moneys") %>" name="premiun_boof_shengdaka_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">完美卡:</td>
<td >
<input type="radio" id="com_boopay_wanmeika1" name="com_boopay_wanmeika"  value="on" <%if(app.Setting("com_boopay_wanmeika")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_wanmeika1">开启</label>
<input type="radio" id="com_boopay_wanmeika2" name="com_boopay_wanmeika" value="off" <%if(app.Setting("com_boopay_wanmeika")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_wanmeika2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_wanmeika" value="<%=app.Setting("premiun_boof_wanmeika") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_wanmeika_moneys") %>" custom="<%=GetCustomKey("premiun_boof_wanmeika_moneys") %>" name="premiun_boof_wanmeika_moneys" class="ShowPayMoney"></td>
</tr>
 


<tr><td class="t1">征途卡:</td>
<td >
<input type="radio" id="com_boopay_zhengtuka1" name="com_boopay_zhengtuka"  value="on" <%if(app.Setting("com_boopay_zhengtuka")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_zhengtuka1">开启</label>
<input type="radio" id="com_boopay_zhengtuka2" name="com_boopay_zhengtuka" value="off" <%if(app.Setting("com_boopay_zhengtuka")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_zhengtuka2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_zhengtuka" value="<%=app.Setting("premiun_boof_zhengtuka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_zhengtuka_moneys") %>" custom="<%=GetCustomKey("premiun_boof_zhengtuka_moneys") %>" name="premiun_boof_zhengtuka_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">骏网一卡通:</td>
<td >
<input type="radio" id="com_boopay_junwang1" name="com_boopay_junwang"  value="on" <%if(app.Setting("com_boopay_junwang")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_junwang1">开启</label>
<input type="radio" id="com_boopay_junwang2" name="com_boopay_junwang" value="off" <%if(app.Setting("com_boopay_junwang")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_junwang2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_junwangka" value="<%=app.Setting("premiun_boof_junwangka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_junwangka_moneys") %>" custom="<%=GetCustomKey("premiun_boof_junwangka_moneys") %>" name="premiun_boof_junwangka_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">网易卡:</td>
<td >
<input type="radio" id="com_boopay_wangyika1" name="com_boopay_wangyika"  value="on" <%if(app.Setting("com_boopay_wangyika")=="on"){ %> checked="checked" <%}%> /><label  for="com_boopay_wangyika1">开启</label>
<input type="radio" id="com_boopay_wangyika2" name="com_boopay_wangyika" value="off" <%if(app.Setting("com_boopay_wangyika")=="off"){ %> checked="checked" <%}%> /><label for="com_boopay_wangyika2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_wangyika" value="<%=app.Setting("premiun_boof_wangyika") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_wangyika_moneys") %>" custom="<%=GetCustomKey("premiun_boof_wangyika_moneys") %>" name="premiun_boof_wangyika_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">网银支付:</td>
<td >
<input type="radio" id="com_boof_bank1" name="com_boof_bank"  value="on" <%if(app.Setting("com_boof_bank")=="on"){ %> checked="checked" <%}%> /><label  for="com_boof_bank1">开启</label>
<input type="radio" id="com_boof_bank2" name="com_boof_bank" value="off" <%if(app.Setting("com_boof_bank")=="off"){ %> checked="checked" <%}%> /><label for="com_boof_bank2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_bank" value="<%=app.Setting("premiun_boof_bank") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_bank_moneys") %>" custom="<%=GetCustomKey("premiun_boof_bank_moneys") %>" name="premiun_boof_bank_moneys" class="ShowPayMoney"></td>
</tr>


<tr><td class="t1">网银支付(借):</td>
<td >
<input type="radio" id="com_boof_bank21" name="com_boof_bank2"  value="on" <%if(app.Setting("com_boof_bank2")=="on"){ %> checked="checked" <%}%> /><label  for="com_boof_bank21">开启</label>
<input type="radio" id="com_boof_bank22" name="com_boof_bank2" value="off" <%if(app.Setting("com_boof_bank2")=="off"){ %> checked="checked" <%}%> /><label for="com_boof_bank22">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_bank2" value="<%=app.Setting("premiun_boof_bank2") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_bank2_moneys") %>" custom="<%=GetCustomKey("premiun_boof_bank2_moneys") %>" name="premiun_boof_bank2_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">网银支付(贷):</td>
<td >
<input type="radio" id="com_boof_bank31" name="com_boof_bank3"  value="on" <%if(app.Setting("com_boof_bank3")=="on"){ %> checked="checked" <%}%> /><label  for="com_boof_bank31">开启</label>
<input type="radio" id="com_boof_bank32" name="com_boof_bank3" value="off" <%if(app.Setting("com_boof_bank3")=="off"){ %> checked="checked" <%}%> /><label for="com_boof_bank32">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_boof_bank3" value="<%=app.Setting("premiun_boof_bank3") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_boof_bank3_moneys") %>" custom="<%=GetCustomKey("premiun_boof_bank3_moneys") %>" name="premiun_boof_bank3_moneys" class="ShowPayMoney"></td>
</tr>




</table>
<div class="postdiv"><input style=' padding-left:10px;' class="ui-button ui-widget ui-state-default ui-corner-all" value="保存设置" type="submit" /></div>
</form>
<script type="text/javascript">
<![CDATA[
    AjaxForm({ finder: '#config_form_baofu', succEnd: 'msg', refurl: '', message: "提交成功" });
    function InitPayMoney() {
        $(".ShowPayMoney").each(function (i, d) {
            var slef = $(d);
            var hasMoney = new Array();
            var _customMoney = new Array();
            hasMoney = (slef.attr("data")).split(',');
            if (typeof (slef.attr("custom")) != "undefined") {
                _customMoney = (slef.attr("custom")).split(',');
            }
            var name = slef.attr("name");
            for (var i = 0; i < moneys.length; i++) {
                var input_value = moneys[i];
                if (hasMoney.InArray(input_value)) {
                    var _html_ = money_temp_check.replace("{0}", name).replace("{1}", input_value).replace("{2}", input_value);
                    slef.append(_html_);
                } else {
                    var _html_ = money_temp.replace("{0}", name).replace("{1}", input_value).replace("{2}", input_value);
                    slef.append(_html_);
                }
            }
            /** 自定义范围 **/
            slef.append(customMoneys(name, _customMoney));
        })
    }

    function customMoneys(nm, cm) {
        var _mini = "1";
        var _max = "100000";
        if (cm.length == 2) {
            _mini = cm[0];
            _max = cm[1];
        }
        var _h1 = "<span style=' padding-left:10px;color:#f44'>";
        _h1 += "自定义范围:";
        _h1 += "<input class='minicustom' value='" + _mini + "' name='custom_" + nm + "_mini' >";
        _h1 += "到";
        _h1 += "<input class='minicustom' value='" + _max + "' name='custom_" + nm + "_max' >";
        _h1 += "</span>";
        return _h1;
    }

    setTimeout(InitPayMoney, 400);
//]]>
</script>
</body>
</html>
