<TABLE WIDTH="96%" height="45" BORDER="0" align="center" CELLPADDING="0" CELLSPACING="0" bgcolor="#FFFFFF">
  <tr> 
   <td height="25" align="center" WIDTH="47%">&nbsp;</td>
   <td align="center" WIDTH="53%"><a href=../chknews.asp?catid=<% = catid %>>&gt;&gt; 更多新闻</a></td>
  </tr>
              <%
			
		  rs.open "select top 5 newsid,newsname,newscontent,viewnum,categoryid,adddate from News where categoryid="&catid&" order by adddate desc",conn,1,1
			  if rs.eof and rs.bof then
		   rs.close
			  response.write "<TR><TD height=20 bgcolor=#FFFFFF>&nbsp;暂无</td></tr>"
			  else
			  i=0 
			  do while not rs.eof %>
			 <TR> 
              <TD height=20 colspan="2"><IMG height=9 src="image/pic1.gif" width=7 align=absMiddle border=0>
			  <% response.write "<a href=# onClick=""javascript:window.open('news.asp?id="&rs("newsid")&"','','width=432,height=288,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日发布>"&trim(rs("newsname"))&"</a><br>"
		 %></TD>
            </TR>
			<tr><td border=0 height="1" colspan="2"></td></tr>
				<%
				i=i+1
			  if i>=5 then exit do
			  rs.movenext
			  loop 
			  rs.close
		
			  end if%>
            </TABLE>
