📄 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">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style3 {color: #FFFFFF; font-weight: bold; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="370" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" style="border-collapse: collapse">
<tr>
<td width="519" height="162">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td height="20" background="Images/greenback.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%"><strong> <span class="style1"><%=rsAnnounce("title")%></span></strong></td>
<td width="20%"><span class="style3"><%=rsAnnounce("time")%></span></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="25"> </td>
</tr>
<tr>
<td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="165" 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='left'>" & ubbcode(dvHTMLEncode(rsAnnounce("Content"))) & "</p><p align='right'>" & " <br>"
rsAnnounce.movenext
i=i+1
if i<AnnounceNum then response.write "<hr>"
loop
end if
%> <P></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" bgcolor="#E3E3E3"></td>
</tr>
<tr>
<td height="30">
<p align="right"> <b> <font style="FONT-SIZE: 12px; COLOR: #000066; FONT-FAMILY: 宋体"> <span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体"> <a href="javascript:window.close();" target="_self" style="text-decoration: none"> 关闭窗口</a></span></font></b></td>
</tr>
</table>
</center>
</div></td>
</tr>
</table>
</body>
</html>
<%
rsAnnounce.close
set rsAnnounce=nothing
call CloseConn()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -