<%
rs_middle.open "select top  6 * from wq_news order by adddate desc",conn,1,1
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<%
if rs_middle.eof then
response.write"<tr><td><center>目前还没有新闻</center></td></tr>"
else

for i=1 to 6
if not rs_middle.eof then
                  response.write "<tr><td style='line-height: 24px; padding-left: 15px' background='"&object_url&"/images/news_middle/dp_bg.gif' >"
                  response.write "["&year(rs_middle("adddate"))&"/"&month(rs_middle("adddate"))&"/"&day(rs_middle("adddate"))&"]<a class='td_"&id&"' href='news.asp?id="&rs_middle("newsid")&"'  title='新闻由【"&rs_middle("addname")&"】发布，此新闻已浏览"&rs_middle("viewcount")&"次'>"
if len(trim(rs_middle("newsname")))>12 then
				  response.write left(trim(rs_middle("newsname")),11)&".."
else
				  response.write trim(rs_middle("newsname"))
end if
				  response.write "</a>"
                  response.write "</td>"
                  response.write "</tr>"
rs_middle.movenext
end if
next

end if
rs_middle.close
%>
</table>