<!--#include file=conn.asp-->
<%
Set rs=Server.CreateObject("ADODB.Recordset")
sql="Select * from download order by id desc"
rs.open sql,conn,1,1
rs.pagesize=5
dim page
page=request("page")
if page="" then
page=1
rs.absolutepage=page
else
rs.absolutepage=page
end if
count=rs.pagesize
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>咖啡设计--设计素材</title>
<style>
<!--
body,table,td{font:9pt "宋体";COLOR: #999999}
A {text-decoration: none; color:#B08291; font-family: "宋体"; font-size: 9pt}
A:hover {text-decoration:line-through; color: #B08291}
TABLE {	COLOR: buttontext; CURSOR: default; FONT-SIZE: 12px }
.indiv { BACKGROUND: buttonface; BORDER-BOTTOM: buttonshadow 1px solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid }
.outdiv { BORDER-BOTTOM: buttonhighlight 1px solid; BORDER-LEFT: buttonshadow 1px solid; BORDER-RIGHT: buttonhighlight 1px solid; BORDER-TOP: buttonshadow 1px solid; WIDTH: 100% }
.buttonover{BACKGROUND: #D6D3CE; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #999999 1px solid; BORDER-top: #ffffff 1px solid;BORDER-bottom: #999999 1px solid}
.buttonout{background:#D6D3CE; border-left: #D6D3CE 1 solid; border-right: #D6D3CE 1 solid}
.buttondown{BACKGROUND: #D6D3CE; BORDER-LEFT: #999999 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-top: #999999 1px solid;BORDER-bottom: #ffffff 1px solid}
input{height:19;font:9pt;border:1 solid #000000}
-->
</style>
<SCRIPT LANUGAGE="JavaScript">
<!--
function pop(pageurl) 
{
var
popwin=window.open(pageurl,"popWin","scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=520,height=500");
return false;
}
-->
</SCRIPT>

<base target="_self">
</head>

<body topmargin="0" leftmargin="0" oncontextmenu="return false" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <form name="form1" method="post" action="">
    <%do while not rs.eof and count>0%>
    <tr> 
      <td><a href=click.asp?id=<%=rs("id")%> title="点击下载" target=_balnk><%=rs("title")%> 
        [ 下載<b><font color=#000000><%=rs("hit")%></font></b>次 更新于：<%=rs("sj")%> 
        ]</a></td>
    </tr>
    <tr> 
      <td>說明：<font color=#999999><%=rs("content")%></font></td>
    </tr>
    <tr> 
      <td> 
        <hr size="1">
      </td>
    </tr>
    <%     
    rs.movenext     
    count=count-1     
    loop     
  %>
  </form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <form name="form2" method="post" action="showall_download.asp">
    <tr> 
      <td align="right">共<font color=#B08291><b><%=rs.pagecount%></b></font>頁 
        當前第<font color=#B08291><b><%=page%></b></font>頁 <a href="showall_download.asp?page=1">首頁</a> 
        <%if page>1 then%>
        <a href=showall_download.asp?page=<%=page-1%>>上一頁</a> 
        <%else%>
        上一頁 
        <%end if%>
        <%if page<rs.pagecount   then%>
        <a href=showall_download.asp?page=<%=page+1%>>下一頁</a> 
        <%else%>
        下一頁 
        <%end if%>
        <a href=showall_download.asp?page=<%=rs.pagecount%>>尾頁</a> 
<select name="page">
<%for i=1 to rs.pagecount%>
<option value=<%=i%>>第<%=i%>頁</option>
<%next%>
</select>
        <input type="submit" name="Submit2" value="轉向" class="input">
      </td>
    </tr>
  </form>
</table>
</body>       
  <%     
  rs.close     
  set rs=nothing     
  conn.close     
  set conn=nothing     
  %>     
</html>       
