📄 special.asp
字号:
<!--#include file="Conn.ASP"--><!--#include file="char.inc"--><!--#include file="../include/Config.ASP"--><!--#include file="chkuser.asp" -->
<%
IF not(request.cookies("KEY")="super" or request.cookies("KEY")="bigmaster" or request.cookies("KEY")="check" or request.cookies("key")="typemaster") 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
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%> <%=ver%> - 专题管理</title>
</head>
<body topmargin="0"><!--#include file=top.asp--><br>
<center>
<table border="1" width="750" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="<%=border%>">
<tr>
<td colspan="4" width="100%" align="center" valign="middle" height="24" bgcolor="<%=m_top%>"><b>专
题 管 理</b> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4" width="100%" align="center" valign="middle" >
<font color="#ff0000">把鼠标移到专题名称上将出现该专题的注释</font></td>
</tr>
<%
Set rs6 = Server.CreateObject("ADODB.Recordset")
sql6 ="SELECT * From Special order by SpecialID"
RS6.open sql6,Conn,3,3
%>
<tr align="center" bgcolor="<%=m_top%>" height=20>
<td width="10%">ID号</td>
<td width="30%">专题名称</td>
<td width="30%">专题注释</td>
<td width="30%">执 行</td>
</tr>
<%
do while not rs6.eof
%>
<tr height=20>
<td align="center" bgcolor="#FFFFFF" width="10%"><%=rs6("SpecialID")%> </td>
<td width="30%" align="center" bgcolor="#FFFFFF"><span style="CURSOR: hand" title="<%if rs6("specialzs")<>"" then%><%=rs6("specialzs")%><%else%>无<%end if%>"><%=rs6("specialName")%></span><%if request.cookies("key")="super" then%><font color=red>(<%=rs6("specialmaster")%>)</font><%end if%></td>
<td width="30%"><%=rs6("Specialzs")%> </td>
<td width="30%" bgcolor="#FFFFFF" align="center"><%if (specialgl="1" and request.cookies("key")="bigmaster") or (shspecialgl="1" and request.cookies("key")="check") or request.cookies("key")="super" or request.cookies("key")="typemaster" or rs6("specialmaster")=request.cookies("username") then%><a href="Specialedit.asp?SpecialID=<%=rs6("SpecialID")%>" onMouseOver="window.status='编辑专题“<%=rs6("SpecialName")%>”的属性';return true;" onMouseOut="window.status='';return true;" title='编辑专题“<%=rs6("SpecialName")%>”的属性'>编辑</a>
<a href="Specialkill.asp?SpecialID=<%=rs6("SpecialID")%>" onMouseOver="window.status='删除专题“<%=rs6("SpecialName")%>”';return true;" onMouseOut="window.status='';return true;" title='删除专题“<%=rs6("SpecialName")%>”'>删除</a><%end if%></td>
</tr>
<%
RS6.MoveNext
Loop
rs6.close
set rs6=nothing
%><%if (specialgl="1" and request.cookies("key")="bigmaster") or (shspecialgl="1" and request.cookies("key")="check") or request.cookies("key")="super" or request.cookies("key")="typemaster" then%>
<tr>
<form method="post" action="Specialadd.asp" name="type">
<td align="center" colspan="4" width="760" bgcolor="<%=m_top%>" height="34"><br>
增加专题:
<input class=text type="text" name="Specialname" size="15" style="font-family: 宋体; font-size: 9pt" onMouseOver="window.status='在这里输入要添加的专题名称';return true;" onMouseOut="window.status='';return true;" title='在这里输入要添加的专题名称'>
专题注释:<input class=text type="text" name="specialzs" size="15" style="font-family: 宋体; font-size: 9pt" onMouseOver="window.status='在这里输入要添加的专题注释';return true;" onMouseOut="window.status='';return true;" title='在这里输入要添加的专题注释'><input type="hidden" name="Specialmaster" value="<%=request.cookies("username")%>"> <input type="submit" name="Submit" value="添加" class=button onMouseOver="window.status='按这个按钮添加这个专题';return true;" onMouseOut="window.status='';return true;" title='按这个按钮添加这个专题'>
<input type="reset" value="重写" name="B1" class=button onMouseOver="window.status='按这个按钮重新添加专题';return true;" onMouseOut="window.status='';return true;" title='按这个按钮重新添加专题'>
</td>
</form>
</tr><%conn.close
set conn=nothing%><%end if%>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -