<%@ 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 runat="server">
    <title></title>
</head>
<body>
<form action="action.ashx" method="post" id="config_form_yifutong">
<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_epay_bank1" name="com_epay_bank"  value="on" <%if(app.Setting("com_epay_bank")=="on"){ %> checked="checked" <%}%> /><label  for="com_epay_bank1">开启</label>
<input type="radio" id="com_epay_bank2" name="com_epay_bank" value="off" <%if(app.Setting("com_epay_bank")=="off"){ %> checked="checked" <%}%> /><label for="com_epay_bank2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_epay_bank" value="<%=app.Setting("premiun_epay_bank") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_epay_bank_moneys") %>" custom="<%=GetCustomKey("premiun_epay_bank_moneys") %>" name="premiun_epay_bank_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">骏网一卡通:</td>
<td >
<input type="radio" id="com_epay_junnet1" name="com_epay_junnet"  value="on" <%if(app.Setting("com_epay_junnet")=="on"){ %> checked="checked" <%}%> /><label  for="com_epay_junnet1">开启</label>
<input type="radio" id="com_epay_junnet2" name="com_epay_junnet" value="off" <%if(app.Setting("com_epay_junnet")=="off"){ %> checked="checked" <%}%> /><label for="com_epay_junnet2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_epay_junnet" value="<%=app.Setting("premiun_epay_junnet") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_epay_junnet_moneys") %>" custom="<%=GetCustomKey("premiun_epay_junnet_moneys") %>" name="premiun_epay_junnet_moneys" class="ShowPayMoney"></td>
</tr>

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

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

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


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

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

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

<tr><td class="t1">易付通e卡通:</td>
<td >
<input type="radio" id="com_epay_YPCARD1" name="com_epay_YPCARD"  value="on" <%if(app.Setting("com_epay_YPCARD")=="on"){ %> checked="checked" <%}%> /><label  for="com_epay_YPCARD1">开启</label>
<input type="radio" id="com_epay_YPCARD2" name="com_epay_YPCARD" value="off" <%if(app.Setting("com_epay_YPCARD")=="off"){ %> checked="checked" <%}%> /><label for="com_epay_YPCARD2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_epay_YPCARD" value="<%=app.Setting("premiun_epay_YPCARD") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_epay_YPCARD_moneys") %>" custom="<%=GetCustomKey("premiun_epay_YPCARD_moneys") %>" name="premiun_epay_YPCARD_moneys" class="ShowPayMoney"></td>
</tr>

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

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

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

<tr><td class="t1">纵游一卡通:</td>
<td >
<input type="radio" id="com_epay_ZONGYOU1" name="com_epay_ZONGYOU"  value="on" <%if(app.Setting("com_epay_ZONGYOU")=="on"){ %> checked="checked" <%}%> /><label  for="com_epay_ZONGYOU1">开启</label>
<input type="radio" id="com_epay_ZONGYOU2" name="com_epay_ZONGYOU" value="off" <%if(app.Setting("com_epay_ZONGYOU")=="off"){ %> checked="checked" <%}%> /><label for="com_epay_ZONGYOU2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_epay_ZONGYOU" value="<%=app.Setting("premiun_epay_ZONGYOU") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_epay_ZONGYOU_moneys") %>" custom="<%=GetCustomKey("premiun_epay_ZONGYOU_moneys") %>" name="premiun_epay_ZONGYOU_moneys" class="ShowPayMoney"></td>
</tr>

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

<tr><td class="t1">天宏一卡通:</td>
<td >
<input type="radio" id="com_epay_TIANHONG1" name="com_epay_TIANHONG"  value="on" <%if(app.Setting("com_epay_TIANHONG")=="on"){ %> checked="checked" <%}%> /><label  for="com_epay_TIANHONG1">开启</label>
<input type="radio" id="com_epay_TIANHONG2" name="com_epay_TIANHONG" value="off" <%if(app.Setting("com_epay_TIANHONG")=="off"){ %> checked="checked" <%}%> /><label for="com_epay_TIANHONG2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_epay_TIANHONG" value="<%=app.Setting("premiun_epay_TIANHONG") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_epay_TIANHONG_moneys") %>" custom="<%=GetCustomKey("premiun_epay_TIANHONG_moneys") %>" name="premiun_epay_TIANHONG_moneys" class="ShowPayMoney"></td>
</tr>

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

<tr><td class="t1">余额支付:</td>
<td >
<input type="radio" id="com_epay_EYUEYU1" name="com_epay_EYUEYU"  value="on" <%if(app.Setting("com_epay_EYUEYU")=="on"){ %> checked="checked" <%}%> /><label  for="com_epay_EYUEYU1">开启</label>
<input type="radio" id="com_epay_EYUEYU2" name="com_epay_EYUEYU" value="off" <%if(app.Setting("com_epay_EYUEYU")=="off"){ %> checked="checked" <%}%> /><label for="com_epay_EYUEYU2">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_epay_EYUEYU" value="<%=app.Setting("premiun_epay_EYUEYU") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_epay_EYUEYU_moneys") %>" custom="<%=GetCustomKey("premiun_epay_EYUEYU_moneys") %>" name="premiun_epay_EYUEYU_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_yifutong', 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>
