?? 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 width="339" border="0" align="center" cellpadding="8" cellspacing="1" bgcolor="#FF0000">
<tr>
<td bgcolor="#FFFFFF"><%
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'><b>" & rsAnnounce("title") & "</b></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>
</BODY>
</HTML>
<!--網站系統交易網:www.csys.com.cn-->
<%
rsAnnounce.close
set rsAnnounce=nothing
call CloseConn()
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -