📄 toparticle.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="网佳资讯,http://www.e169.net">
<LINK href="style.css" rel=stylesheet>
<title><%=classname%>|<%=hosturl%></title>
</head>
<body topmargin="0" leftmargin="0">
<div align="center">
<center>
<table border="0" width=95% align=center cellspacing="0" cellpadding="1" bgcolor="#FFFFFF">
<tr>
<td valign="top" width="33%">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 align=center>
<TBODY>
<TR>
<TD bgColor="<%=Tablebackcolor%>">
<TABLE cellSpacing=1 cellPadding=4 width="100%" border=0>
<TR>
<TD bgColor="<%=Tabletitlecolor%>"><img border="0" src="http://www.goldseeds.net/images/Ico.gif">最新更新文章-><a href="http://www.goldseeds.net/article/" target="_blank">网佳文章专区</a>
</TD></TR>
<TR>
<TD bgColor="<%=Tablebodycolor%>">
<font style=line-height:150%>
<% set rs = server.createobject("adodb.recordset")
sql="SELECT top 9 * FROM article where year(dateandtime)=year(date()) and month(dateandtime)=month(date()) and day(dateandtime)>=day(date()-6) order by articleid desc"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "本周无更新文章"
else
do while not rs.eof
%>
<a href="list.asp?id=<%=rs("articleid")%>" title="<%=rs("title")%>" target="_blank"><%if len(rs("title"))>20 then%><%=left(rs("title"),20)%>...<%else%><%=rs("title")%><%end if%></a>(<%if rs("dateandtime")=date() then%><font color=red><%=month(rs("dateandtime"))%>月<%=day(rs("dateandtime"))%>日</font><%else%><font color='#999999'><%=month(rs("dateandtime"))%>月<%=day(rs("dateandtime"))%>日</font><%end if%>)[<font color=red><%=rs("hits")%></font>]<br>
<%
rs.movenext
loop
end if
rs.close
%>
</font>
</TD></TR>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -