📄 admin_notice.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="999"
MM_authFailedURL="index.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="Connections/connDB.asp" -->
<%
Dim RsNotice
Dim RsNotice_numRows
Set RsNotice = Server.CreateObject("ADODB.Recordset")
RsNotice.ActiveConnection = MM_connDB_STRING
RsNotice.Source = "SELECT * FROM tNotice"
RsNotice.CursorType = 0
RsNotice.CursorLocation = 2
RsNotice.LockType = 1
RsNotice.Open()
RsNotice_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<p> </p>
<table width="760" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#66CC99">
<td width="100%" height="30"><div align="center">网 站 消 息</div></td>
</tr>
<tr bgcolor="#E8FFE8">
<td> <a href="admin_notice.asp">网站消息配置</a> |
<% If RsNotice.EOF And RsNotice.BOF Then %>
<a href="admin_notice_add.asp">添加</a> |
<% End If ' end RsNotice.EOF And RsNotice.BOF %><a href="admin_notice_edit.asp">修改</a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="center"></div></td>
</tr>
<tr bgcolor="#66CC99">
<td height="30"> </td>
</tr>
<tr bgcolor="#E8FFE8">
<td>
<div align="center">
<% If Not RsNotice.EOF Or Not RsNotice.BOF Then %>
<table width="700" border="0" align="center" cellspacing="5">
<tr>
<td width="100">标题名称:</td>
<td><div align="left"><%=(RsNotice.Fields.Item("fNoticeTitle").Value)%></div></td>
</tr>
<tr>
<td>栏目内容:</td>
<td><div align="left"><%=(RsNotice.Fields.Item("fNoticeContent").Value)%></div></td>
</tr>
<tr>
<td>发布时间:</td>
<td><div align="left"><%=(RsNotice.Fields.Item("fDateAndTime").Value)%></div></td>
</tr>
</table>
<% End If ' end Not RsNotice.EOF Or NOT RsNotice.BOF %>
<p>
<% If RsNotice.EOF And RsNotice.BOF Then %>
<br>没有网站信息!!!<br>
<% End If ' end RsNotice.EOF And RsNotice.BOF %>
</p>
</div></td>
</tr>
</table>
<p> </p>
</body>
</html>
<%
RsNotice.Close()
Set RsNotice = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -