<%@ 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_76zu">
<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_zu76alipay1" name="com_zu76alipay"  value="on" <%if(app.Setting("com_zu76alipay")=="on"){ %> checked="checked" <%}%> /><label  for="com_zu76alipay1">开启</label>
<input type="radio" id="com_zu76alipay2" name="com_zu76alipay" value="off" <%if(app.Setting("com_zu76alipay")=="off"){ %> checked="checked" <%}%> /><label for="com_zu76alipay2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_zu76_alipay" value="<%=app.Setting("premiun_zu76_alipay") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_zu76_alipay_moneys") %>" custom="<%=GetCustomKey("premiun_zu76_alipay_moneys") %>" name="premiun_zu76_alipay_moneys" class="ShowPayMoney"></td>
</tr>

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

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

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

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

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

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

<tr><td class="t1">久游卡:</td>
<td >
<input type="radio" id="com_zu76jiuyouka1" name="com_zu76jiuyouka"  value="on" <%if(app.Setting("com_zu76jiuyouka")=="on"){ %> checked="checked" <%}%> /><label  for="com_zu76jiuyouka1">开启</label>
<input type="radio" id="com_zu76jiuyouka2" name="com_zu76jiuyouka" value="off" <%if(app.Setting("com_zu76jiuyouka")=="off"){ %> checked="checked" <%}%> /><label for="com_zu76jiuyouka2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_zu76_jiuyouka" value="<%=app.Setting("premiun_zu76_jiuyouka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_zu76_jiuyouka_moneys") %>" custom="<%=GetCustomKey("premiun_zu76_jiuyouka_moneys") %>" name="premiun_zu76_jiuyouka_moneys" class="ShowPayMoney"></td>
</tr>

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

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

<tr><td class="t1">纵游卡:</td>
<td >
<input type="radio" id="com_zu76zongyouka1" name="com_zu76zongyouka"  value="on" <%if(app.Setting("com_zu76zongyouka")=="on"){ %> checked="checked" <%}%> /><label  for="com_zu76zongyouka1">开启</label>
<input type="radio" id="com_zu76zongyouka2" name="com_zu76zongyouka" value="off" <%if(app.Setting("com_zu76zongyouka")=="off"){ %> checked="checked" <%}%> /><label for="com_zu76zongyouka2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_zu76_zongyouka" value="<%=app.Setting("premiun_zu76_zongyouka") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_zu76_zongyouka_moneys") %>" custom="<%=GetCustomKey("premiun_zu76_zongyouka_moneys") %>" name="premiun_zu76_zongyouka_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_76zu', 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>
