<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="page.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site_name%></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>

<body><!--#include file="top.asp"-->
<div id="box">
<div id="left">
  <div id="nav4">栏目导航</div>
  <div id="nav_content">
<ul class="cannel2">
<%
set rse=server.CreateObject("adodb.recordset")
rse.open "select * from down_class order by id desc", conn, 1, 1
if not(rse.bof and rse.eof) then
do while not rse.eof
response.Write("<li><a href=""down.asp?id=" & rse("id") & """>" & rse("title") & "</a></li>")
rse.movenext
		loop
	  end if
	  rse.close
	  set rse=nothing	
%>
</ul>
</div>
<div id="nav4">点击排行</div>
<div id="nav_content">
<ul>
<%


 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top 6 * from news order by hit desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a href="list.asp?yiid=<%=rs("yiid")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
<div id="nav4">投票调查</div>
<div id="nav_content">
<script language="javascript" src="vote/votescript.asp?vid=7"></script>
</div>
</div>

<div id="right">
<div id="address">您的位置：本站首页→下载中心</div>

<div id="big_content">
<div id="content">
  <table width="781" height="35" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#C6DF97">
    <tr>
      <td align="center" bgcolor="#6C8F2C"><span class="STYLE1">文件名称</span></td>
      <td align="center" bgcolor="#6C8F2C"><span class="STYLE1">文件大小</span></td>
      <td align="center" bgcolor="#6C8F2C"><span class="STYLE1">发布时间</span></td>
      <td align="center" bgcolor="#6C8F2C"><span class="STYLE1">浏览次数</span></td>
    </tr>
	 <%	
set rs=server.createobject("adodb.recordset") 

id= request.QueryString("id")

exec="select * from down where 1=1"
if id<>"" then
exec=exec&" and down_class="&id
end if 
exec=exec&" order by id desc"
rs.open exec,conn,1,1 
if rs.eof then
response.Write "&nbsp;暂无下载！"
else
rs.PageSize =20 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif  page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if	
%>
        <%For i=1 To x%>
<tr>
      <td width="187" align="center" bgcolor="#FFFFFF"><a href="down_view.asp?id=<%=rs("id")%>"><%=left(rs("name"),35)%></a></td>
      <td width="187" align="center" bgcolor="#FFFFFF"><%=rs("size")%><%=rs("Units")%></td>
      <td width="187" align="center" bgcolor="#FFFFFF"><%=rs("join_date")%></td>
      <td width="215" align="center" bgcolor="#FFFFFF"><%=rs("hit")%></td>
    </tr>
        <%rs.movenext
next
%>
        <%
end if
%>
      </ul>
      <%'以下显示分页
 call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
rs.close
set rs=nothing
%>
  </table>
</div>
</div>
</div>
</div>

<!--#include file="bottom.asp"-->
</body>
</html>
