<div  id="indexnews"  >
     <ul>

      <%
			 set rs=server.CreateObject("adodb.recordset")
		  rs.open "select top 5 articleid,articletitle,addname,adddate from sdx_article where lang=0 order By adddate desc",conn,1,1
			  if rs.eof and rs.bof then
			  response.write "暂无此类文章"
			  else
			  i=0 
			  do while not rs.eof %>
			<li>
              
			<img src="<%=webdir%>/skin/skin1/other/dot.gif" border="0" width="20" height="26">
                                <% if htmlon=1 then  %>
				  
                             
                                     <% if rs("hok")=0 then  %>
                                <a  href="<%=webdir%>/tohtmlart.asp?id=<%=rs("articleid")%>"  target=_blank>
                                        <% else  %>
                            <a  href="<%=webdir%>/art/<%=year(rs("adddate"))&month(rs("adddate"))%>/<%=year(rs("adddate"))&month(rs("adddate"))%><%=rs("articleid")%>.html"  target=_blank>
                                        <% end if  %>

                                   <% else  %>
                                   <a  href="<%=webdir%>/article_show.asp?id=<%=rs("articleid")%>"  target=_blank>
                                    <% end if  %>
				<%if len(trim(rs("articletitle")))>20 then
				response.write left(trim(rs("articletitle")),18)&"."
				else
				response.write trim(rs("articletitle"))
				end if
				response.write "</a>" %></li>
				
				<%
				i=i+1
			  if i>=5 then exit do
			  rs.movenext
			  loop 
                           end if
			  rs.close
			  set rs=nothing
			  %>

            <ul>
          </div>
   
 