<%@ 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_35yeyou">
<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_yeyou35_yidongka1" name="com_yeyou35_yidongka"  value="on" <%if(app.Setting("com_yeyou35_yidongka")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_yidongka1">开启</label>
<input type="radio" id="com_yeyou35_yidongka2" name="com_yeyou35_yidongka" value="off" <%if(app.Setting("com_yeyou35_yidongka")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_yidongka2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_yidongka" value="<%=app.Setting("premiun_yeyou35_yidongka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_yidongka_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_yidongka_moneys") %>" name="premiun_yeyou35_yidongka_moneys" class="ShowPayMoney"></td>
</tr>

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

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

<tr><td class="t1">支付宝网银:</td>
<td >
<input type="radio" id="com_yeyou35_zhifubao1" name="com_yeyou35_zhifubao"  value="on" <%if(app.Setting("com_yeyou35_zhifubao")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_zhifubao1">开启</label>
<input type="radio" id="com_yeyou35_zhifubao2" name="com_yeyou35_zhifubao" value="off" <%if(app.Setting("com_yeyou35_zhifubao")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_zhifubao2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_alibank" value="<%=app.Setting("premiun_yeyou35_alibank") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_alibank_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_alibank_moneys") %>" name="premiun_yeyou35_alibank_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">支付宝:</td>
<td >
<input type="radio" id="com_yeyou35_alipay1" name="com_yeyou35_alipay"  value="on" <%if(app.Setting("com_yeyou35_alipay")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_alipay1">开启</label>
<input type="radio" id="com_yeyou35_alipay2" name="com_yeyou35_alipay" value="off" <%if(app.Setting("com_yeyou35_alipay")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_alipay2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_alipay" value="<%=app.Setting("premiun_yeyou35_alipay") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_alipay_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_alipay_moneys") %>" name="premiun_yeyou35_alipay_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">Q币卡:</td>
<td >
<input type="radio" id="com_yeyou35_qqcard1" name="com_yeyou35_qqcard"  value="on" <%if(app.Setting("com_yeyou35_qqcard")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_qqcard1">开启</label>
<input type="radio" id="com_yeyou35_qqcard2" name="com_yeyou35_qqcard" value="off" <%if(app.Setting("com_yeyou35_qqcard")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_qqcard2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_qqbi" value="<%=app.Setting("premiun_yeyou35_qqbi") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_qqbi_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_qqbi_moneys") %>" name="premiun_yeyou35_qqbi_moneys" class="ShowPayMoney"></td>
</tr>

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

<tr><td class="t1">征途卡:</td>
<td >
<input type="radio" id="com_yeyou35_zhengtu1" name="com_yeyou35_zhengtu"  value="on" <%if(app.Setting("com_yeyou35_zhengtu")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_zhengtu1">开启</label>
<input type="radio" id="com_yeyou35_zhengtu2" name="com_yeyou35_zhengtu" value="off" <%if(app.Setting("com_yeyou35_zhengtu")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_zhengtu2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_zhengtu" value="<%=app.Setting("premiun_yeyou35_zhengtu") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_zhengtu_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_zhengtu_moneys") %>" name="premiun_yeyou35_zhengtu_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">网易卡:</td>
<td >
<input type="radio" id="com_yeyou35_wangyi1" name="com_yeyou35_wangyi"  value="on" <%if(app.Setting("com_yeyou35_wangyi")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_wangyi1">开启</label>
<input type="radio" id="com_yeyou35_wangyi2" name="com_yeyou35_wangyi" value="off" <%if(app.Setting("com_yeyou35_wangyi")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_wangyi2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_wangyi" value="<%=app.Setting("premiun_yeyou35_wangyi") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_wangyi_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_wangyi_moneys") %>" name="premiun_yeyou35_wangyi_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">搜狐卡:</td>
<td >
<input type="radio" id="com_yeyou35_souhu1" name="com_yeyou35_souhu"  value="on" <%if(app.Setting("com_yeyou35_souhu")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_souhu1">开启</label>
<input type="radio" id="com_yeyou35_souhu2" name="com_yeyou35_souhu" value="off" <%if(app.Setting("com_yeyou35_souhu")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_souhu2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_souhu" value="<%=app.Setting("premiun_yeyou35_souhu") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_souhu_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_souhu_moneys") %>" name="premiun_yeyou35_souhu_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">天下一卡通:</td>
<td >
<input type="radio" id="com_yeyou35_tianxia1" name="com_yeyou35_tianxia"  value="on" <%if(app.Setting("com_yeyou35_tianxia")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_tianxia1">开启</label>
<input type="radio" id="com_yeyou35_tianxia2" name="com_yeyou35_tianxia" value="off" <%if(app.Setting("com_yeyou35_tianxia")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_tianxia2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_tianxia" value="<%=app.Setting("premiun_yeyou35_tianxia") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_tianxia_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_tianxia_moneys") %>" name="premiun_yeyou35_tianxia_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">易宝e卡通:</td>
<td >
<input type="radio" id="com_yeyou35_yibaoe1" name="com_yeyou35_yibaoe"  value="on" <%if(app.Setting("com_yeyou35_yibaoe")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_yibaoe1">开启</label>
<input type="radio" id="com_yeyou35_yibaoe2" name="com_yeyou35_yibaoe" value="off" <%if(app.Setting("com_yeyou35_yibaoe")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_yibaoe2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_yibaoe" value="<%=app.Setting("premiun_yeyou35_yibaoe") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_yibaoe_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_yibaoe_moneys") %>" name="premiun_yeyou35_yibaoe_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">纵游卡:</td>
<td >
<input type="radio" id="com_yeyou35_zongyou1" name="com_yeyou35_zongyou"  value="on" <%if(app.Setting("com_yeyou35_zongyou")=="on"){ %> checked="checked" <%}%> /><label  for="com_yeyou35_zongyou1">开启</label>
<input type="radio" id="com_yeyou35_zongyou2" name="com_yeyou35_zongyou" value="off" <%if(app.Setting("com_yeyou35_zongyou")=="off"){ %> checked="checked" <%}%> /><label for="com_yeyou35_zongyou2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_yeyou35_zongyou" value="<%=app.Setting("premiun_yeyou35_zongyou") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_yeyou35_zongyou_moneys") %>" custom="<%=GetCustomKey("premiun_yeyou35_zongyou_moneys") %>" name="premiun_yeyou35_zongyou_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_35yeyou', 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>
