<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<%
if request("action")="down" then
ssql="update down set hit2=hit2+1 where id=" & request.QueryString("id")
conn.execute(ssql)
response.Redirect request("down_url")
end if

ssql="update down set hit=hit+1 where id=" & request.QueryString("id")
'response.write ssql
conn.execute(ssql)

%>
<!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" />
</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">
<% 
exec="select * from down where id="& request.QueryString("id") 
set rs=server.createobject("adodb.recordset") 
rs.open exec,conn,1,1 
%>
<div id="address">您的位置：本站首页 → 下载中心  → <%=rs("name")%></div>

<div id="big_content">

<div id="content">
<h1><%=rs("name")%></h1>
<table width="773" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#BCDB7D">
    <tr>
      <td width="98" bgcolor="#ECF8C7">加入时间：</td>
      <td width="436" bgcolor="#FFFFFF"><%=rs("join_date")%></td>
      <td width="235" rowspan="8" align="center" bgcolor="#FFFFFF"><a href="common_view.asp?id=<%=rs("id")%>"><img src="<%=rs("img")%>" width="224" height="201" /></a></td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">软件类别：</td>
      <td bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">软件大小：</td>
      <td bgcolor="#FFFFFF"><%=rs("size")%><%=rs("Units")%></td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">应用平台：</td>
      <td bgcolor="#FFFFFF"><%=rs("roof")%></td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">推荐程度：</td>
      <td bgcolor="#FFFFFF"><img src="images/<%=rs("commend")%>star.gif" />

</td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">演示地址：</td>
      <td bgcolor="#FFFFFF"><a href="down_view.asp?id=<%=rs("url")%>"><%=rs("url")%></a></td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">下载/浏览：</td>
      <td bgcolor="#FFFFFF">下载<%=rs("hit2")%>次 浏览<%=rs("hit")%>
      </td>
    </tr>
    <tr>
      <td bgcolor="#ECF8C7">下载地址：</td>
      <td bgcolor="#FFFFFF"><%if session("qx")<>"" then%><a href="down_view.asp?id=<%=rs("id")%>&action=down&down_url=<%=rs("down_url")%>" target="_blank">点击下载</a><%else%>[您无权下载]<%response.end
	end if%></td>
    </tr>
    <tr>
      <td colspan="3" bgcolor="#ECF8C7">详细介绍：</td>
    </tr>
    <tr>
      <td colspan="3" bgcolor="#FFFFFF" style="padding:5px;"><%=rs("content")%></td>
    </tr>
  </table>
</div>
</div>
</div>
</div>

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