<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../inc/charsetasp.asp"-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%
Const dbpath = "../"
Const funpath = "../"
%>
<!--#include file="admin_fun.asp"-->
<!--#include file="../core/md5.asp"-->
<!--#include file="../crinc/czsetinc170824.asp"-->

<%
Set ctr_admin = New tr_admin
If InStr(","&adminlimitidrange&",", ",1,")<1 Then contrl_message "您没有访问权限，请尝试其他版块。", "", "", "", ""
action = Trim(request.Form("action"))
If action<>"" And adminctrllimit = 1 Then Call contrl_message ("您只有查看权限，没有管理权限，请升级权限后继续操作。", "", "", "", "")
Select Case action
  Case "edit"
    Call contrl_message ("修改用户充值设置成功。", "", "submit1", "", "")
End Select

%>
<title>用户充值设置<%=application(siternd & "55trsitename")%></title>
<link rel="stylesheet" type="text/css" href="./skin/default/style.css">
<link rel="stylesheet" href="../kindeditor_4.1.10/themes/default/default.css">
<base target="_self">
<script type="text/javascript" src="./js/js.js"></script>
<script type="text/javascript" src="./js/hover.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="skin/default/img/favicon.ico">
<link rel="bookmark" type="image/x-icon" href="skin/default/img/favicon.ico">
<script charset="ut<%%>f-8" src="../kindeditor_4.1.10/kindeditor-min.js"></script>
<script charset="ut<%%>f-8" src="../kindeditor_4.1.10/lang/zh_CN.js"></script>
<script>
  KindEditor.ready(function(K) {
    window.editor = K.create('#wzjs170824', {
filterMode : false,
      urlType: 'relative',
      allowFileManager: true,
      extraFileUploadParams : {
		  tr_cmsid : '<%= tr_killstr(Trim(request.Cookies("55trcms")("id")), 1, 16, 2, "", "", "", "", 2)%>',
		  md5name : '<%=request.cookies(admincookieskey)("md5name")%>',
		  passwd : '<%=request.cookies(admincookieskey)("passwd")%>',
		  isswf : '1'
	  }
    });
    var options = {
      cssPath: '/css/index.css',
      filterMode: false
    };

    var editor = K.create('textarea[name="content"]', options);
    html = editor.html();
    editor.sync();
    html = document.getElementById('wzjs170824').value; // 原生API
    //editor.html('HTML内容');
  });
</script>
</head>
<body style="background:#fff; " class="w1">
<form name="form1" id="form1" target="ifr1" method="post" >
<table width="100%" align="center" border="0" cellpadding="3" cellspacing="1" id="mytable" class="size3" >
<tr class="tr1" >
<td class="td_title" colspan="16"><!--#include file="incgoback.asp"-->■ 用户充值设置</td>
</tr>
<tr>
<td width="" align="right">开启整体用户充值功能：</td>
<td align="left"><label>
<input name="isopencz" id="isopencz" type="checkbox" value="1" <%if isopencz170824=1 then%>checked<%end if%>>
勾选即为开启此功能</label></td>
</tr>
<tr>
<td width="" align="right">开启支付宝充值功能：</td>
<td align="left"><label>
<input name="isopenalipaycz" id="isopenalipaycz" type="checkbox" value="1" <%if isopenalipaycz170824=1 then%>checked<%end if%>>
勾选即为开启此功能</label></td>
</tr>
<tr>
<td width="300" align="right">支付页面显示的网站名称：</td>
<td align="left"><input name="sitename" id="sitename" type="text" class="input2 size4" value="<%=sitename170824%>"></td>
</tr>
<tr>
<td width="300" align="right">支付宝partner：</td>
<td align="left"><input name="alipaypartner" id="alipaypartner" type="text" class="input2 size4" value="<%=alipaypartner170824%>"></td>
</tr>
<tr>
<td width="" align="right">支付宝签约账号（收款账号）：</td>
<td align="left"><input name="alipayseller_email" id="alipayseller_email" type="text" class="input2 size4" value="<%=alipayseller_email170824%>"></td>
</tr>
<tr>
<td width="" align="right">支付宝安全检验码（key）：</td>
<td align="left"><input name="alipaykey" id="alipaykey" type="text" class="input2 size4" value="<%=alipaykey170824%>"></td>
</tr>
<tr>
<td width="" align="right">支付宝异步回调地址（notify_url）：</td>
<td align="left"><input name="alipaynotify_url" id="alipaynotify_url" type="text" class="input2 size4" value="<%=alipaynotify_url170824%>"></td>
</tr>
<tr>
<td width="" align="right">支付宝同步回调地址（return_url）：</td>
<td align="left"><input name="alipayreturn_url" id="alipayreturn_url" type="text" class="input2 size4" value="<%=alipayreturn_url170824%>"></td>
</tr>

<tr>
<td width="300" align="right">开启微信充值功能：</td>
<td align="left"><label>
<input name="isopenwxcz180218" id="isopenwxcz180218" type="checkbox" value="1" <%if isopenwxcz180218=1 then%>checked<%end if%>>
勾选即为开启此功能</label></td>
</tr>
<tr>
  <td width="300" align="right">微信APPID：</td>
  <td align="left"><input name="trwxappid180218" id="trwxappid180218" type="text" class="input2 size4" value="<%=trwxappid180218%>"></td>
</tr>
<tr>
<td width="300" align="right">微信支付商户号：</td>
<td align="left"><input name="trwxzfshh180218" id="trwxzfshh180218" type="text" class="input2 size4" value="<%=trwxzfshh180218%>"></td>
</tr>
<tr>
<td width="300" align="right">微信API密钥：</td>
<td align="left"><input name="trapimy180218" id="trapimy180218" type="text" class="input2 size4" value="<%=trapimy180218%>"></td>
</tr>
<tr>
<td width="300" align="right">微信Appsecret：</td>
<td align="left"><input name="trwxappsecret180218" id="trwxappsecret180218" type="text" class="input2 size4" value="<%=trwxappsecret180218%>"></td>
</tr>
<tr>
<td width="300" align="right">微信异步回调地址：</td>
<td align="left"><input name="trwxybhtdz180218" id="trwxybhtdz180218" type="text" class="input2 size4" value="<%=trwxybhtdz180218%>"></td>
</tr>

<tr>
<td width="" align="right">充值送积分模式：</td>
<td align="left"><label>
<input name="cztype" id="cztype" type="radio" value="1" <%if cztype170824=1 then%>checked<%end if%>>
固定模式</label>
|
<label>
<input name="cztype" id="cztype" type="radio" value="2" <%if cztype170824=2 then%>checked<%end if%>>
比例模式</label></td>
</tr>
<tr>
<td width="" align="right">固定模式充值设置：</td>
<td align="left"><table id="tbl" width="500" name="tbl" border="0" class="tbl">
<tr>
<td width="400"><input type="button" value="+ 增加一行参数" onclick="insert_row170824()" class="button4"></td>
</tr>
<%if czjifen170824<>"" and instr(czjifen170824,"|")>0 and instr(czjifen170824,",")>0 then

czjifenjegroup=split(czjifen170824,"|")(0)
spczjifenjegroup=split(czjifenjegroup,",")
ubczjifenjegroup=ubound(spczjifenjegroup)
czjifenjfgroup=split(czjifen170824,"|")(1)
spczjifenjfgroup=split(czjifenjfgroup,",")
ubczjifenjfgroup=ubound(spczjifenjfgroup)
if ubczjifenjegroup>ubczjifenjfgroup then 
uball=ubczjifenjfgroup
else
uball=ubczjifenjegroup
end if
for adri=0 to uball
if spczjifenjegroup(adri)<>"" and spczjifenjfgroup(adri)<>"" then
%>
<tr>
<td>充值
<input name="czjifenje" class="input2 size12" type="text" value="<%=spczjifenjegroup(adri)%>">
元 得
<input name="czjifenjf" class="input2 size12" type="text" value="<%=spczjifenjfgroup(adri)%>">
积分 </td>
</tr>
<%
end if
next
end if%>
</table>

<script language="javascript">
var i=0
function insert_row170824(){
//	if (i>30){
//	alert ("现在已增加超过30行参数了，请留意是不是有点过多")
//	}
i++
R=tbl.insertRow()
C=R.insertCell()
C.innerHTML="充值 <input type='text' name='czjifenje' class='input2 size12'>元 得 <input type='text' name='czjifenjf'  class='input2 size12'> 积分 "
} 
</script></td>
</tr>
<tr>
<td width="" align="right">比例模式充值设置：</td>
<td align="left">充值1元得
<input name="czbili" id="czbili" type="text" class="input2 size12" value="<%=czbili170824%>">
积分（比例模式就是在固定模式的充值列表中将获得的积分改为充值金额×比例）</td>
</tr>
<tr>
<td width="" align="right">充值额外赠送积分：</td>
<td align="left"><table id="tbl2" width="500" name="tbl2" border="0" class="tbl">
<tr>
<td width="400"><input type="button" value="+ 增加一行参数" onclick="insert_row2170824()" class="button4"></td>
</tr>
<%if czextra170824<>"" and instr(czextra170824,"|")>0 and instr(czextra170824,",")>0 then

czextrajegroup=split(czextra170824,"|")(0)
spczextrajegroup=split(czextrajegroup,",")
ubczextrajegroup=ubound(spczextrajegroup)
czextrajfgroup=split(czextra170824,"|")(1)
spczextrajfgroup=split(czextrajfgroup,",")
ubczextrajfgroup=ubound(spczextrajfgroup)
if ubczextrajegroup>ubczextrajfgroup then 
uball2=ubczextrajfgroup
else
uball2=ubczextrajegroup
end if
for adri2=0 to uball2
if spczextrajegroup(adri2)<>"" and spczextrajfgroup(adri2)<>"" then
%>
<tr>
<td>充值达到
<input name="czddje" class="input2 size12" type="text" value="<%=spczextrajegroup(adri2)%>">
元 额外送
<input name="czddjf" class="input2 size12" type="text" value="<%=spczextrajfgroup(adri2)%>">
积分 </td>
</tr>
<%
end if
next
end if%>
</table>
<script language="javascript">
var i=0
function insert_row2170824(){
//	if (i>30){
//	alert ("现在已增加超过30行参数了，请留意是不是有点过多")
//	}
i++
R=tbl2.insertRow()
C=R.insertCell()
C.innerHTML="充值达到 <input type='text' name='czddje' class='input2 size12'>元 额外送 <input type='text' name='czddjf'  class='input2 size12'> 积分 "
} 
</script></td>
</tr>
<tr>
<td width="" align="right">允许用户自定义充值金额：</td>
<td align="left"><label>
<input name="isuzdy" id="isuzdy" type="checkbox" value="1" <%if isuzdy170824=1 then%>checked<%end if%>>
勾选即为开启此功能（只在比例模式充值生效）</label></td>
</tr>
<tr>
<td width="" align="right">文字介绍：</td>
<td align="left"><%wzjs170824=ReadFromTextFileun (""&funpath&"crinc/wzjs170824.asp","utf-8") 
%>
<textarea id="wzjs170824" name="wzjs170824" style="width:95%;height:300px;">
<%If InStr(wzjs170824, "src=""upfiles")>0 Then
  wzjs170824 = Replace(wzjs170824, "src=""upfiles", "src=""../upfiles")
Else
  wzjs170824 = wzjs170824
End If
If InStr(wzjs170824, "<55tr.com>page</55tr.com>")>0 Then
  wzjs170824 = Replace(wzjs170824, "<55tr.com>page</55tr.com>", "<hr style=""page-break-after:always;"" class=""ke-pagebreak"" />")
End If
if wzjs170824<>"" then wzjs170824=replace(wzjs170824,"&","&amp;") 
response.Write wzjs170824
%>
</textarea></td>
</tr>
<tr>
<td colspan="15" align="center"><input type="hidden" value="edit" name="action" id="action">
<div class="" style="width:90%; padding:10px; background:#FFF2F5;">温馨提示：尊敬的站长朋友，此功能需要付费用户才能解锁使用，感谢支持</div>
<input type="submit" value=" 修改 " name="submit1" id="submit1" class="button1"></td>
</tr>
<tr>
<td colspan="15" align="left">
</td>
</tr>
<tr>
<td colspan="15" align="left"></td>
</tr>
</table>
</form>
<script type="text/javascript" >
showtable("mytable")
</script> 
<!--#include file="../inc/ifr.asp"-->
</body>
</html>
<%
function getfor910221()
dim a
a = 0
for i = 1 to 10
    for j = 1 to 1
        a = a + 1
        if i = 5 then
            exit for
        end If
        Response.write a & "<br/>"
    next
next
end function
%>