📄 affiche.asp
字号:
<!--#include file="chklogin.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网站公告</title>
<link href="images/style.css" rel="stylesheet" type="text/css">
<style>
<!--
body,td,th {
SCROLLBAR-FACE-COLOR: #caf2fc;
SCROLLBAR-HIGHLIGHT-COLOR: white;
SCROLLBAR-SHADOW-COLOR: #caf2fc;
SCROLLBAR-3DLIGHT-COLOR: 8ad1e2;
SCROLLBAR-ARROW-COLOR: #caf2fc;
SCROLLBAR-TRACK-COLOR: white;
SCROLLBAR-DARKSHADOW-COLOR: 8ad1e2;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
a:link {
color: #000000;
text-decoration: underline;
}
a:visited {
color: #000000;
text-decoration: underline;
}
a:hover {
color: #FF9900;
text-decoration: none;
}
a:active {
text-decoration: underline;
}
-->
</style>
</head>
<body leftMargin="0" topMargin="0" bgcolor="#FFFFFF">
<table width="280" border="0" align="center" cellpadding="0" cellspacing="0">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from affiche where a_type=1 order by on_top desc,a_time desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
%>
<tr>
<td width="10" height="20" align="left"><img src="images/img02.gif" width="6" height="6"></td>
<td>暂时还没有任何网站公告</td>
</tr>
<%
else
i=0
do while not rs.eof
i=i+1
%>
<tr>
<td width="10" height="20" align="left"><img src="images/img02.gif" width="6" height="6"></td>
<td><A href="affiche_view.asp?id=<%=rs("id")%>" <%if rs("on_top")=true then%>class="f4"<%end if%><%if DateDiff("d",rs("a_time"),Now)<=3 and rs("on_top")<>true then%>class="f5"<%end if%> target=_blank><%=rs("a_title")%></A></td>
</tr>
<%
if i>=10 then exit do
rs.movenext
loop
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -