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

📄 man_gradelockto.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"
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
%>
<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_gradelockok.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>
        <tr>
          <td width="100%" align="center">指定级别锁定状态:(该用户目前为<font color="#FF0000"><%if Rs("lockgrade")<>true then Response.Write "不"%>锁定</font>)</td>
        </tr>
        <tr>
			<%
			If Rs("lockgrade") = True Then
			%>
          <td width="100%" align="center">&nbsp;<input type="radio" checked value="yes" name="lock">锁定<input type="radio" name="lock" value="no">不锁定&nbsp; 
			<%
			Else
			%>
          <td width="100%" align="center">&nbsp;<input type="radio" value="yes" name="lock">锁定<input type="radio" checked name="lock" value="no">不锁定&nbsp; 
			<%
			End If
			%>
          (<input type="checkbox" name="niming" value="ON"<%
			If gradeinfo(info(1),26) <> True then Response.Write " disabled"
			%>>匿名操作)</td>
        </tr>
        <tr>
          <td width="100%" align="center">操作理由:<select size="1" name="D1" onchange="javascript:document.man.liyou.value=this.value;">
      <option value="" selected>自由填写</option>
      <option value="选举产生">选举产生</option>
      </select></td>
        </tr>
        <tr>
          <td width="100%" align="center">
      <input type="text" name="liyou" size="31"></td>
        </tr>
        <tr>
          <td width="100%"> </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>
</body>
</html>
<%
	Rs.Close
	Set Rs = Nothing
	Conn.Close
	Set Conn = Nothing
End If
%>

⌨️ 快捷键说明

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