<%middle_head_news_show=site.object_p%>
<!-- object[<%=site.object_p%>]::middle_head_news_show -->
<%
site.object(middle_head_news_show).rs.open "select top "&site.object(middle_head_news_show).qu&" * from jins_news_list where news_open=1 order by news_addtime desc",conn,1,1
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0"<%=site.object(middle_head_news_show).style%>>
<%
if site.object(middle_head_news_show).rs.eof then
response.write"<tr><td><center>目前还没有新闻</center></td></tr>"
else

for i=1 to 6
if not site.object(middle_head_news_show).rs.eof then
                  response.write "<tr><td style='line-height: 24px; padding-left: 15px' background='"&site.object(middle_head_news_show).image&"/dp_bg.gif' >"
                  response.write "["&year(site.object(middle_head_news_show).rs("news_addtime"))&"/"&month(site.object(middle_head_news_show).rs("news_addtime"))&"/"&day(site.object(middle_head_news_show).rs("news_addtime"))&"]<a href='temp.asp?tr=news|detail&id="&site.object(middle_head_news_show).rs("news_id")&"'  title='新闻由【"&site.object(middle_head_news_show).rs("news_writer")&"】发布，此新闻已浏览"&site.object(middle_head_news_show).rs("news_clicknum")&"次'>"
if len(trim(site.object(middle_head_news_show).rs("news_title")))>12 then
				  response.write left(trim(site.object(middle_head_news_show).rs("news_title")),11)&".."
else
				  response.write trim(site.object(middle_head_news_show).rs("news_title"))
end if
				  response.write "</a>"
                  response.write "</td>"
                  response.write "</tr>"
site.object(middle_head_news_show).rs.movenext
end if
next

end if
site.object(middle_head_news_show).rs.close
%>
</table>