📄 depedit.asp
字号:
<!--#include file="Conn.ASP"--><!--#include file="char.inc"--><!--#include file="chkuser.asp" --><!--#include file=../include/config.asp -->
<%
IF request.cookies("KEY")<>"super" THEN
response.redirect "index_face.asp"
response.end
else
usernamecookie=CheckStr(request.cookies("UserName"))
passwdcookie=replace(trim(Request.cookies("passwd")),"'","''")
KEYcookie=replace(trim(request.cookies("KEY")),"'","''")
if usernamecookie="" or passwdcookie="" then
response.redirect "login.asp"
response.end
else
'判断用户的合法性
set rs=server.createobject("adodb.recordset")
sql="select * from admin where username='"&usernamecookie&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.redirect "login.asp"
response.end
end if
IF passwdcookie<>rs("passwd") THEN
response.redirect "login.asp"
response.end
END IF
'下面判断用户级别实际在有用户级别是都应该判断
if KEYcookie<>rs("OSKEY") then
response.redirect "index_face.asp"
response.end
end if
rs.close
set rs=nothing
END IF
END IF
%>
<%
Set rs6 = Server.CreateObject("ADODB.Recordset")
sql6 ="SELECT * From dep where depName='" & Request("depName") & "' order by ID"
RS6.open sql6,Conn,3,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=copyright%><%=version%> <%=ver%> - 修改部门</title>
<LINK href=site.css rel=stylesheet>
</head>
<body topmargin="0"><!--#include file=top.asp-->
<form method="POST" action="depEditok.asp">
<input type="hidden" name="ID" value='<%=request("ID")%>'>
<table border="1" width="750" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="<%=border%>" align="center">
<tr>
<td width="100%" height="55" bgcolor="<%=m_top%>">
<p align="center"><b>修 改 部 门</b>
</td>
</tr>
<tr align="center">
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellspacing="1" width="90%" height="80">
<tr>
<td align="center" height="60">部门名称:
<input type="text" name="depname" size="20" maxlength="20" value='<%=request("depName")%>' style="font-family: 宋体; font-size: 9pt">
<input type="hidden" name="name" value='<%=request("depName")%>'><br>
部门类型: <select size="1" name="deptype" style="font-family: 宋体; font-size: 9pt">
<option <%if rs6("deptype")="1" then%> selected <%end if%>value="1">行政单位</option>
<option <%if rs6("deptype")="2" then%> selected <%end if%>value="2">中学</option>
<option <%if rs6("deptype")="3" then%> selected <%end if%>value="3">小学</option>
<option <%if rs6("deptype")="4" then%> selected <%end if%>value="4">幼儿园</option>
<option <%if rs6("deptype")="5" then%> selected <%end if%>value="5">其他</option>
</select></p>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td width="100%" bgcolor="<%=m_top%>" height="60">
<input type="submit" value=" 修 改 "
name="cmdok" style="font-family: 宋体; font-size: 9pt">
<input type="reset" value=" 复 原 "
name="cmdcancel" style="font-family: 宋体; font-size: 9pt">
<input type="button" name="ok" value=" 放 弃 " onClick="javascript:history.go(-1)" style="font-family: 宋体; font-size: 9pt">
</td>
</tr>
</table>
</form>
</body>
</html><%rs6.close
set rs6=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -