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

📄 man_gradelockok.asp

📁 基于ASP开发的聊天室源码
💻 ASP
字号:
<%Response.Expires=0%>
<%
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"
ilock = Trim(Request.Form("lock"))
ly = Trim(Request.Form("liyou"))
ly = Replace(ly," ","")
ly = Replace(ly," ","")
If ly = "" Then Response.Redirect "err.asp?kind=52"
ly = Server.HTMLEncode(ly)
If gradeinfo(info(1),26) = True And Request.Form("niming")="ON" Then
	niming = "yes"
Else
	niming = "no"
End If
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,1,3
If Rs.Eof And Rs.bof Then
	Rs.Close
	Set Rs = Nothing
	Conn.Close
	Set Conn = Nothing
	Response.Redirect "err.asp?kind=34"
End If
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 ilock = "yes" And Rs("lockgrade") = True Or ilock <> "yes" And Rs("lockgrade") <> True Then
	Rs.Close
	Set Rs = Nothing
	Conn.Close
	Set Conn = Nothing
	Response.Redirect "err.asp?kind=82"
End If
If ilock = "yes" Then
	Rs("lockgrade") = True
Else
	Rs("lockgrade") = False
End If
Rs.Update
Rs.Close
sql = "select * from manlog where (id is null)"
Rs.Open sql,Conn,1,3
Rs.AddNew
Rs("who") = name
Rs("manager") = info(0)
Rs("ip") = "0.0.0.0"
If ilock = "yes" Then
	Rs("kind") = 9
Else
	Rs("kind") = 10
End If
Rs("liyou") = ly
If niming = "yes" Then
	Rs("niming") = True
Else
	Rs("niming") = False
End If
Rs("time") = now
Rs.Update
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
%>
<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">
<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>
      <p align="center">用户“<%=name%>”的级别情况已经被设置为“
	<%
	If lockuser = "yes" Then
		Response.Write "<font color='red'>锁定</font>"
	Else
		Response.Write "<font color='red'>不锁定</font>"
	End If
	%>
      ”</fieldset>
    </td>
  </tr>
  <tr>
    <td width="100%" align="right"><input type="button" value="上一步" name="a1" onclick="location.href='man_gradelock.asp'"><input type="submit" value="下一步" name="a2" disabled>
    <input type="button" value="完成" name="a3" onclick="javascript:window.close();"><input type="button" value="取消" name="a4" disabled></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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