<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
%>
<HTML>
<HEAD>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--下载中心</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/css.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<%
	dim k
	set rs=server.createobject("adodb.recordset")
	sql="select tname,id from dtype order by id desc" 
	rs.open sql,conn,1,1
	if rs.eof then
		Response.Write("<li>还没有企业文档</li>")
	else
		k=0
		do while not rs.eof
		k=k+1
%>
<TABLE  width=977 border=1 align="center" cellPadding=5 cellSpacing=5 borderColor=#f2f2f2 bgcolor="#FFFFFF" style="BORDER-COLLAPSE: collapse">
  <TBODY>
    <TR bgColor=#f2f2f2>
      <TD width=852 colSpan=4 height=30>&nbsp;<FONT color=#ff0000><STRONG><%= k %>、<%= Rs("tname") %></STRONG></FONT></TD>
    </TR>
<%
	set rs_down=server.createobject("adodb.recordset")
	sql="select * from down where dtype="&Rs("id")&" order by id desc" 
	rs_down.open sql,conn,1,1
	num=rs_down.recordcount
	if rs_down.eof then
		Response.Write("<TD width=852 colSpan=4 height=30>还没有企业文档</TD>")
	else
		i=0
		ii=0
		iii=0
		do while not rs_down.eof
		iii=iii+1
		if i=0 then Response.Write("<TR>")
%>
      <TD width="25%"><A href="view_down.asp?id=<%= rs_down("id") %>" title="<%= rs_down("dname") %>" target="_blank"><%= rs_down("dname") %></A></TD>
<%
		if iii=num then
			for iiii=0 to 2-i
				Response.Write("<TD width='25%'>&nbsp;</td>")
			next
		end if
		if i=3 then Response.Write("</TR>")
		i=i+1
		if i=4 then i=0
		rs_down.movenext
		loop
	end if
	rs_down.close
	set rs_down=nothing
%>
  </TBODY>
</TABLE>
<%
		rs.movenext
		loop
	end if
	rs.close
	set rs=nothing
%>
<!--#include file="end.asp"-->