📄 man_totouxian.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),9) <> True And gradeinfo(info(1),10) <> True Then Response.Redirect "err1.asp?kind=06"
name = Request.Form("manname")
name = Replace(name," ","")
name = Replace(name,"'","")
name = Replace(name,chr(34),"")
name = Server.HTMLEncode(name)
If name = "" Then Response.Redirect "err.asp?kind=55"
If gradeinfo(info(1),9) <> True And name = info(0) Then Response.Redirect "err1.asp?kind=07"
If gradeinfo(info(1),10) <> true And name <> info(0) Then Response.Redirect "err1.asp?kind=08"
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 }
-->
</style>
<script language="JavaScript">
function checksay()
{if(document.man.touxian.value=="<%=Rs("touxian")%>")
{alert("没有对头衔进行更改!");return false;}
}
</script>
</head>
<body bgcolor="buttonface" style="border: 3px double buttonface">
<form method="POST" name="man" action="man_touxianok.asp" onsubmit='return(checksay());'>
<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/see.gif">头衔管理</legend>
管理对象:<input type="text" readonly name="manname" size="25" value="<%=name%>" maxlength="12"><br>
<br>
指定头衔:<input type="text" name="touxian" size="25" value="<%=Rs("touxian")%>" maxlength="12"><br>
</fieldset>
</td>
</tr>
<tr>
<td width="100%" align="right"><input type="button" value="上一步" name="a1" onclick="javascript: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 + -