?? affiche.asp
字號:
<!--#include file="Inc/conn.asp"-->
<!--#include file="inc/ubbcode.asp"-->
<%
dim ID
dim sqlAnnounce
dim rsAnnounce
dim AnnounceNum
dim ChannelID
ID=Trim(request("ID"))
sqlAnnounce="select * from affiche where ID=" & Clng(ID)
sqlAnnounce=sqlAnnounce & " order by ID Desc"
Set rsAnnounce= Server.CreateObject("ADODB.Recordset")
rsAnnounce.open sqlAnnounce,conn,1,1
%>
<html>
<head>
<title>本站公告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
a:active { text-decoration: none; color: #0000FF}
a:hover { text-decoration: none; color: #FF0000}
a:link { text-decoration: none; color: #0000FF}
a:visited { text-decoration: none; color: #990000}
BODY { text-decoration: none; font-size: 12px}
TABLE { text-decoration: none; font-size: 12px}
</style>
<link href="Admin_STYLE.CSS" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table cellspacing=0 cellpadding=0 border=0 align="center" width="332">
<tbody>
<tr>
<td><img height=16 src="Images/nw_bt.gif" width=332
border=0></td>
</tr>
<tr>
<td valign="top" background="Images/nw_rtbg.gif"><table width="100%" border="0" align="center" cellpadding="8" cellspacing="0">
<tr>
<td valign="top"><%
if rsAnnounce.bof and rsAnnounce.eof then
response.write "<p> 沒有通告或找不到指定的通告</p>"
else
AnnounceNum=rsAnnounce.recordcount
dim i
do while not rsAnnounce.eof
response.Write "<p align='center'>" & rsAnnounce("title") & "</p><p align='left'>" & ubbcode(dvHTMLEncode(rsAnnounce("Content"))) & "</p><p align='right'>" & " <br>" & FormatDateTime(rsAnnounce("Time"),1) & "</p>"
rsAnnounce.movenext
i=i+1
if i<AnnounceNum then response.write "<hr>"
loop
end if
%></td>
</tr>
</table> </td>
</tr>
<tr>
<td><img height=12 src="images/nw_bt2.gif" width=332
border=0></td>
</tr>
</tbody>
</table>
</body>
</html>
<%
rsAnnounce.close
set rsAnnounce=nothing
call CloseConn()
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -