新闻列表双行显示
作者:cmscn 日期:2009-07-20
<table border=0 bgcolor="#ffffff">
<%
sql="select top 16 id,topic,tim from news where hidden=1 and c_id=21 order by id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
response.write "<tr>"
for i=1 to 2
response.write vbcrlf&"<td><img src='/skin/skin_1/small/h_icon.gif' border=0 align=absmiddle> <a href='news/news_view.asp?id="&rs("id")&"' target=_blank>"&joekoe_cms.code_html(rs("topic"),1,24)&"</a></td>"
rs.movenext
next
response.write "</tr>"
loop
rs.close
%>
</table>
评论: 0 | 引用: 0 | 查看次数: 617
发表评论