<%@ 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_shengfutong">
<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_sen_PT0011" name="com_sen_PT001"  value="on" <%if(app.Setting("com_sen_PT001")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0011">开启</label>
<input type="radio" id="com_sen_PT0012" name="com_sen_PT001" value="off" <%if(app.Setting("com_sen_PT001")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0012">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT001" value="<%=app.Setting("premiun_sen_PT001") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT001_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT001_moneys") %>" name="premiun_sen_PT001_moneys" class="ShowPayMoney"></td>
</tr>

<tr><td class="t1">余额支付:</td>
<td >
<input type="radio" id="com_sen_PT0021" name="com_sen_PT002"  value="on" <%if(app.Setting("com_sen_PT002")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0021">开启</label>
<input type="radio" id="com_sen_PT0022" name="com_sen_PT002" value="off" <%if(app.Setting("com_sen_PT002")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0022">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT002" value="<%=app.Setting("premiun_sen_PT002") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT002_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT002_moneys") %>" name="premiun_sen_PT002_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">盛付通卡支付:</td>
<td >
<input type="radio" id="com_sen_PT0031" name="com_sen_PT003"  value="on" <%if(app.Setting("com_sen_PT003")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0031">开启</label>
<input type="radio" id="com_sen_PT0032" name="com_sen_PT003" value="off" <%if(app.Setting("com_sen_PT003")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0032">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT003" value="<%=app.Setting("premiun_sen_PT003") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT003_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT003_moneys") %>" name="premiun_sen_PT003_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">一点充支付:</td>
<td >
<input type="radio" id="com_sen_PT0041" name="com_sen_PT004"  value="on" <%if(app.Setting("com_sen_PT004")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0041">开启</label>
<input type="radio" id="com_sen_PT0042" name="com_sen_PT004" value="off" <%if(app.Setting("com_sen_PT004")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0042">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT004" value="<%=app.Setting("premiun_sen_PT004") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT004_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT004_moneys") %>" name="premiun_sen_PT004_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">手机充值卡支付:</td>
<td >
<input type="radio" id="com_sen_PT0051" name="com_sen_PT005"  value="on" <%if(app.Setting("com_sen_PT005")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0051">开启</label>
<input type="radio" id="com_sen_PT0052" name="com_sen_PT005" value="off" <%if(app.Setting("com_sen_PT005")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0052">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT005" value="<%=app.Setting("premiun_sen_PT005") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT005_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT005_moneys") %>" name="premiun_sen_PT005_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">手机话费支付:</td>
<td >
<input type="radio" id="com_sen_PT0061" name="com_sen_PT006"  value="on" <%if(app.Setting("com_sen_PT006")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0061">开启</label>
<input type="radio" id="com_sen_PT0062" name="com_sen_PT006" value="off" <%if(app.Setting("com_sen_PT006")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0062">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT006" value="<%=app.Setting("premiun_sen_PT006") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT006_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT006_moneys") %>" name="premiun_sen_PT006_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">固话支付:</td>
<td >
<input type="radio" id="com_sen_PT0071" name="com_sen_PT007"  value="on" <%if(app.Setting("com_sen_PT007")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0071">开启</label>
<input type="radio" id="com_sen_PT0072" name="com_sen_PT007" value="off" <%if(app.Setting("com_sen_PT007")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0072">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT007" value="<%=app.Setting("premiun_sen_PT007") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT007_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT007_moneys") %>" name="premiun_sen_PT007_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">盛大卡支付:</td>
<td >
<input type="radio" id="com_sen_PT0081" name="com_sen_PT008"  value="on" <%if(app.Setting("com_sen_PT008")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0081">开启</label>
<input type="radio" id="com_sen_PT0082" name="com_sen_PT008" value="off" <%if(app.Setting("com_sen_PT008")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0082">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT008" value="<%=app.Setting("premiun_sen_PT008") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT008_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT008_moneys") %>" name="premiun_sen_PT008_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">积分支付:</td>
<td >
<input type="radio" id="com_sen_PT0091" name="com_sen_PT009"  value="on" <%if(app.Setting("com_sen_PT009")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0091">开启</label>
<input type="radio" id="com_sen_PT0092" name="com_sen_PT009" value="off" <%if(app.Setting("com_sen_PT009")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0092">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT009" value="<%=app.Setting("premiun_sen_PT009") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT009_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT009_moneys") %>" name="premiun_sen_PT009_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">银联快捷支付:</td>
<td >
<input type="radio" id="com_sen_PT0101" name="com_sen_PT010"  value="on" <%if(app.Setting("com_sen_PT010")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0101">开启</label>
<input type="radio" id="com_sen_PT0102" name="com_sen_PT010" value="off" <%if(app.Setting("com_sen_PT010")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0102">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT010" value="<%=app.Setting("premiun_sen_PT010") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT010_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT010_moneys") %>" name="premiun_sen_PT010_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">线下支付:</td>
<td >
<input type="radio" id="com_sen_PT0111" name="com_sen_PT011"  value="on" <%if(app.Setting("com_sen_PT011")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0111">开启</label>
<input type="radio" id="com_sen_PT0112" name="com_sen_PT011" value="off" <%if(app.Setting("com_sen_PT011")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0112">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT011" value="<%=app.Setting("premiun_sen_PT011") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT011_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT011_moneys") %>" name="premiun_sen_PT011_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">宽带支付:</td>
<td >
<input type="radio" id="com_sen_PT0121" name="com_sen_PT012"  value="on" <%if(app.Setting("com_sen_PT012")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0121">开启</label>
<input type="radio" id="com_sen_PT0122" name="com_sen_PT012" value="off" <%if(app.Setting("com_sen_PT012")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0122">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT012" value="<%=app.Setting("premiun_sen_PT012") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT012_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT012_moneys") %>" name="premiun_sen_PT012_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">PPC预付卡支付:</td>
<td >
<input type="radio" id="com_sen_PT0131" name="com_sen_PT013"  value="on" <%if(app.Setting("com_sen_PT013")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0131">开启</label>
<input type="radio" id="com_sen_PT0132" name="com_sen_PT013" value="off" <%if(app.Setting("com_sen_PT013")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0132">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT013" value="<%=app.Setting("premiun_sen_PT013") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT013_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT013_moneys") %>" name="premiun_sen_PT013_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">无磁无密支付:</td>
<td >
<input type="radio" id="com_sen_PT0141" name="com_sen_PT014"  value="on" <%if(app.Setting("com_sen_PT014")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0141">开启</label>
<input type="radio" id="com_sen_PT0142" name="com_sen_PT014" value="off" <%if(app.Setting("com_sen_PT014")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0142">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT014" value="<%=app.Setting("premiun_sen_PT014") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT014_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT014_moneys") %>" name="premiun_sen_PT014_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">Pos线下银行卡:</td>
<td >
<input type="radio" id="com_sen_PT0151" name="com_sen_PT015"  value="on" <%if(app.Setting("com_sen_PT015")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0151">开启</label>
<input type="radio" id="com_sen_PT0152" name="com_sen_PT015" value="off" <%if(app.Setting("com_sen_PT015")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0152">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT015" value="<%=app.Setting("premiun_sen_PT015") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT015_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT015_moneys") %>" name="premiun_sen_PT015_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">无卡支付:</td>
<td >
<input type="radio" id="com_sen_PT0161" name="com_sen_PT016"  value="on" <%if(app.Setting("com_sen_PT016")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0161">开启</label>
<input type="radio" id="com_sen_PT0162" name="com_sen_PT016" value="off" <%if(app.Setting("com_sen_PT016")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0162">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT016" value="<%=app.Setting("premiun_sen_PT016") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT016_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT016_moneys") %>" name="premiun_sen_PT016_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">红包:</td>
<td >
<input type="radio" id="com_sen_PT0171" name="com_sen_PT017"  value="on" <%if(app.Setting("com_sen_PT017")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0171">开启</label>
<input type="radio" id="com_sen_PT0172" name="com_sen_PT017" value="off" <%if(app.Setting("com_sen_PT017")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0172">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT017" value="<%=app.Setting("premiun_sen_PT017") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT017_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT017_moneys") %>" name="premiun_sen_PT017_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">盛大互动娱乐卡:</td>
<td >
<input type="radio" id="com_sen_PT0181" name="com_sen_PT018"  value="on" <%if(app.Setting("com_sen_PT018")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0181">开启</label>
<input type="radio" id="com_sen_PT0182" name="com_sen_PT018" value="off" <%if(app.Setting("com_sen_PT018")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0182">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT018" value="<%=app.Setting("premiun_sen_PT018") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT018_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT018_moneys") %>" name="premiun_sen_PT018_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">银行卡委托代扣:</td>
<td >
<input type="radio" id="com_sen_PT0191" name="com_sen_PT019"  value="on" <%if(app.Setting("com_sen_PT019")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0191">开启</label>
<input type="radio" id="com_sen_PT0192" name="com_sen_PT019" value="off" <%if(app.Setting("com_sen_PT019")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0192">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT019" value="<%=app.Setting("premiun_sen_PT019") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT019_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT019_moneys") %>" name="premiun_sen_PT019_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">盛付通娱乐一卡通:</td>
<td >
<input type="radio" id="com_sen_PT0201" name="com_sen_PT020"  value="on" <%if(app.Setting("com_sen_PT020")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0201">开启</label>
<input type="radio" id="com_sen_PT0202" name="com_sen_PT020" value="off" <%if(app.Setting("com_sen_PT020")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0202">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT020" value="<%=app.Setting("premiun_sen_PT020") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT020_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT020_moneys") %>" name="premiun_sen_PT020_moneys" class="ShowPayMoney"></td>
</tr>
<tr><td class="t1">快捷支付:</td>
<td >
<input type="radio" id="com_sen_PT0211" name="com_sen_PT021"  value="on" <%if(app.Setting("com_sen_PT021")=="on"){ %> checked="checked" <%}%> /><label  for="com_sen_PT0211">开启</label>
<input type="radio" id="com_sen_PT0212" name="com_sen_PT021" value="off" <%if(app.Setting("com_sen_PT021")=="off"){ %> checked="checked" <%}%> /><label for="com_sen_PT0212">关闭</label>
</td>
<td class="t1">溢价:</td><td ><input name="premiun_sen_PT021" value="<%=app.Setting("premiun_sen_PT021") %>" /></td>
<td class="t1">金额:</td><td data="<%=app.Setting("premiun_sen_PT021_moneys") %>" custom="<%=GetCustomKey("premiun_sen_PT021_moneys") %>" name="premiun_sen_PT021_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_shengfutong', 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>
