<!--#include file="chklogin.asp"-->
<!--#include file="../dengji.asp"-->
<%
dim action
action=request("action")
if action="xg" then
xgdengji
end if
sub xgdengji()
dim dengji1,dengji2,dengji3,dengji4,dengji5,dengji6,dengji7,dengji8
dengji1=request("dengji1")
dengji2=request("dengji2")
dengji3=request("dengji3")
dengji4=request("dengji4")
dengji5=request("dengji5")
dengji6=request("dengji6")
dengji7=request("dengji7")
dengji8=request("dengji8")

strTemplate="<%"&chr(13)
strTemplate=strTemplate&"const dengji1="""&dengji1&""""&chr(13)
strTemplate=strTemplate&"const dengji2="""&dengji2&""""&chr(13)
strTemplate=strTemplate&"const dengji3="""&dengji3&""""&chr(13)
strTemplate=strTemplate&"const dengji4="""&dengji4&""""&chr(13)
strTemplate=strTemplate&"const dengji5="""&dengji5&""""&chr(13)
strTemplate=strTemplate&"const dengji6="""&dengji6&""""&chr(13)
strTemplate=strTemplate&"const dengji7="""&dengji7&""""&chr(13)
strTemplate=strTemplate&"const dengji8="""&dengji8&""""&chr(13)
strTemplate=strTemplate&"%\>"

path=Server.MapPath("../dengji.asp")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
set files=fso.CreateTextFile(path,true)
files.writeline(strTemplate)
files.close
set fso=nothing
response.write "<script language=javascript>alert('成功的修改了设置!');history.go(-1);</script>"
end sub
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>快问 - 等级设置</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FF9999"><br>
<br>
<br>
<br>
<%
if session("userflag")="编辑管理员" then
response.Write("&nbsp;&nbsp;&nbsp;&nbsp;你没有权限进行此项操作！")
response.End()
end if
%>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" class="tablebg">
   <tr align="center" bgcolor="#ff6666">
    <td height="22" colspan="2" class="font_bt">等 级 设 置</td>
  </tr>
  <tr align="center" bgcolor="#ff6666">
    <td width="51%" height="30">等级名称</td>
    <td width="49%">分值设置</td>
  </tr>
  <form action="kw_dj.asp?action=xg" method="post">
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji1" type="text" id="dengji1" value="<%=dengji1%>" size="18" align="absmiddle"></td>
    <td>0&lt; 积分 &lt;=300</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji2" type="text" id="dengji2" value="<%=dengji2%>" size="18" align="absmiddle"></td>
    <td>300&lt; 积分 &lt;=1000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji3" type="text" id="dengji3" value="<%=dengji3%>" size="18" align="absmiddle"></td>
    <td>1000&lt; 积分 &lt;=5000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji4" type="text" id="dengji4" value="<%=dengji4%>" size="18" align="absmiddle"></td>
    <td>5000&lt; 积分 &lt;=1000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji5" type="text" id="dengji5" value="<%=dengji5%>" size="18" align="absmiddle"></td>
    <td>10000&lt; 积分 &lt;=20000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji6" type="text" id="dengji6" value="<%=dengji6%>" size="18" align="absmiddle"></td>
    <td>20000&lt; 积分 &lt;=50000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji7" type="text" id="dengji7" value="<%=dengji7%>" size="18" align="absmiddle"></td>
    <td>50000&lt; 积分 &lt;=100000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30"><input name="dengji8" type="text" id="dengji8" value="<%=dengji8%>" size="18" align="absmiddle"></td>
    <td>100000&lt; 积分 &lt;=500000</td>
    </tr>
  <tr align="center" bgcolor="#ff6666">
    <td height="30" colspan="2"><input type="submit" name="Submit" value=" 修 改 "></td>
    </tr>
  </form>
</table>
</body>
</html>
