⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 man_gradeto.asp

📁 基于ASP开发的聊天室源码
💻 ASP
字号:
<%
If Not IsArray(Session("info")) Then Response.Redirect "err.asp?kind=20"
info = Session("info")
If InStr(Application("maninfo"),"," & info(0) & ",") <> 0 Then Response.Redirect "manyou.asp"
gradeinfo = Application("gradeinfo")
If gradeinfo(info(1),17) <> True And gradeinfo(info(1),19) <> True And gradeinfo(info(1),21) <> True Then Response.Redirect "err1.asp?kind=18"
If gradeinfo(info(1),18) > UBound(gradeinfo,1) Then gradeinfo(info(1),18) = UBound(gradeinfo,1)
name = Trim(Request.Form("name"))
name = Replace(name," ","")
name = Replace(name,"'","")
name = Replace(name,chr(34),"")
name = Server.HTMLEncode(name)
If name = "" Then Response.Redirect "err.asp?kind=55"
Set Conn = Server.CreateObject("ADODB.CONNECTION")
Conn.Open Application("zzbird_conn")
Set Rs = Server.CreateObject("adodb.recordset")
sql = "select * from userinfo where user='" & name & "'"
Rs.Open sql,Conn,3,3
If Rs.Eof And Rs.bof Then
	Rs.Close
	Set Rs=Nothing
	Conn.Close
	Set Conn=Nothing
	Response.Redirect "err.asp?kind=34"
Else
	If Rs("grade") > info(1) Then
		Rs.Close
		Set Rs = Nothing
		Conn.Close
		Set Conn = Nothing
		Response.Redirect "err.asp?kind=127"
	End If
	If gradeinfo(info(1),21) <> True Then
		If gradeinfo(info(1),17) = True And gradeinfo(info(1),19) <> True And Rs("grade") >= gradeinfo(info(1),18) Then
			Rs.Close
			Set Rs=Nothing
			Conn.Close
			Set Conn=Nothing
			Response.Redirect "err.asp?kind=75"
		End If
		If gradeinfo(info(1),19) = True And gradeinfo(info(1),17) <> True And Rs("grade") <= gradeinfo(info(1),20) Then
			Rs.Close
			Set Rs=Nothing
			Conn.Close
			Set Conn=Nothing
			Response.Redirect "err.asp?kind=75"
		End If
		If gradeinfo(info(1),19) = True And gradeinfo(info(1),17) = True And Rs("grade") <= gradeinfo(info(1),20) And Rs("grade")>=gradeinfo(info(1),18) Then
			Rs.Close
			Set Rs=Nothing
			Conn.Close
			Set Conn=Nothing
			Response.Redirect "err.asp?kind=75"
		End If
	End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>级别变更</title>
<style>
<!--
fieldset     { font-size: 10pt }
table        { font-size: 10pt }
-->
</style>
</head>
<body bgcolor="buttonface" style="border: 3px double buttonface">
<form method="POST" name="man" action="man_gradeok.asp">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="46%" id="AutoNumber1" height="62">
  <tr>
    <td width="100%" height="150">
      <fieldset style="padding: 2; width:281; height:142">
      <legend><img border="0" src="images/top.gif">级别变更</legend>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
        <tr>
          <td width="100%" align="center">
          <input type="hidden" name="name" value="<%=name%>">
          <select size="1" name="D2">
          <option selected>“<%=name%>” 的详细资料</option>
          <option>永久保留:<%
			If Rs("lockuser") = True Then
				Response.Write "是"
			Else
				Response.Write "否"
			End If
			%></option>
          <option>等 &nbsp; 级:<%=Rs("grade")%></option>
          <option>锁定等级:<%
			If Rs("lockgrade") = True Then
				Response.Write "是"
			Else
				Response.Write "否"
			End If
			%></option>
          <option>积 &nbsp; 分:<%=Rs("value")%></option>
          <option>月 积 分:<%=Rs("monthv")%></option>
          <option>登陆次数:<%=Rs("times")%></option>
          <option>最后登陆:<%=Rs("lasttime")%></option>
          <option>最 后 IP:<%=Rs("lastip")%></option>
          </select></td>
        </tr>
        
<%
			Response.Write "<tr><td width='100%' align='center'>等级变更至 <select size='1' name='grade'>"
			For i = 0 To UBound(gradeinfo,1)
				Response.Write "<option"
				If i = Rs("grade") then Response.Write " selected"
				Response.Write " value='" & i & "'>" & i & "</option>"
			Next
			Response.Write "</select> 级</td></tr>"
%>
           
        <tr>
          <td width="100%">
          <hr></td>
        </tr>
           
        <tr>
          <td width="100%" align="center">
          <font color="#FF0000">你的管理范围:</font><%
			If gradeinfo(info(1),21) = True Then
				Response.Write "<br>(没有任何限制)"
			Else
				If gradeinfo(info(1),17) = True Then Response.Write "<br>允许升级(最高升至 " & gradeinfo(info(1),18) & " 级)"
				If gradeinfo(info(1),19) = True Then Response.Write "<br>允许降级(最低降至 " & gradeinfo(info(1),20) & " 级)"
			End If
			%></td>
        </tr>
           
        <tr>
          <td width="100%">
          <hr></td>
        </tr>
           
        <tr>
          <td width="100%">
          同时重定义级别锁定(该用户目前为<font color="#FF0000"><%if Rs("lockgrade")<>true then Response.Write "不"%>锁定</font>)</td>
        </tr>
           
        <tr>
          <td width="100%">
          &nbsp;&nbsp;&nbsp; <input type="radio" value="yes" checked name="lock">锁定(不再自动升降级)</td>
        </tr>
        <tr>
          <td width="100%">
          &nbsp;&nbsp;&nbsp; <input type="radio" name="lock" value="no">不锁定(下次登陆或存点自动按照积分标准重新定义级别)</td>
        </tr>
        <tr>
          <td width="100%">
          <hr></td>
        </tr>
			<%
			If gradeinfo(info(1),26) = True Then
			%>
        <tr>
          <td width="100%">
          &nbsp;&nbsp;&nbsp; <input type="radio" name="niming" value="yes">匿名操作</td>
        </tr>
        <tr>
          <td width="100%">
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="niming" value="no" checked>公开操作</td>
        </tr>
			<%
			Else
			%>
        <tr>
          <td width="100%">
          &nbsp;&nbsp;&nbsp; <input type="radio" name="niming" value="yes" disabled>匿名操作(无权使用)</td>
        </tr>
        <tr>
          <td width="100%">
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="niming" value="no" checked>公开操作</td>
        </tr>
			<%
			End If
			%>
        <tr>
          <td width="100%">
          <hr></td>
        </tr>
        <tr>
          <td width="100%">
          &nbsp;操作理由 <select size="1" name="D1" onchange="javascript:document.man.liyou.value=this.value;">
      <option value="" selected>自由填写</option>
      <option value="表现很好,升他(她)没商量">表现很好</option>
      <option value="表现很差,降他(她)没商量">表现很差</option>
      <option value="选举产生的新级别">选举产生</option>
      </select></td>
        </tr>
        <tr>
          <td width="100%" align="center">
      <input type="text" name="liyou" size="34"></td>
        </tr>
      </table>
      </fieldset>
    </td>
  </tr>
  <tr>
    <td width="100%" align="right"><input type="button" value="上一步" name="a1" onclick="history.back(1)"><input type="submit" value="下一步" name="a2">
    <input type="button" value="完成" name="a3" disabled><input type="button" value="取消" name="a4" onclick="javascript:window.close();"></td>
  </tr>
</table>
</form>
<script Language=JavaScript>
window.resizeTo(320,420);
  </script>
</body>
</html>
<%
	Rs.Close
	Set Rs=Nothing
	Conn.Close
	Set Conn=Nothing
End If
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -