⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.asp

📁 不支持软件分类
💻 ASP
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>念青迷你下载统计系统</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<%Const MaxPerPage=10%>
<%
	dim rs,sql,sqlstr
   	dim totalPut   
   	dim CurrentPage, TotalPages
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
  	set rs = server.createobject("adodb.recordset")
%>
<body background="images/bg.jpg">
<table width="90%" border="0" align="center">
  <tr>

    <td valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%" align="left">
  <tr>
    <td width="100%" valign="top" align="left"><table width="100%" border="1" bordercolor="#FFFFCC">
            <tr> 
              <td align="center" class="toptitlenew">
                       <br>
                              <table width="80%" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="EBF1F6">
                                <tr> 
                                  <td bordercolordark="#ffffff" bordercolorlight="#000000"><table width="100%" border="1" cellpadding="0" cellspacing="0" bgcolor="EBF1F6">
                                      <tr> 
                                        <td bordercolordark="#ffffff" bordercolorlight="#000000"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
                                            <tr> 
                                              <td width="5%" height="16"></td>
                                              <td class="toptitlenew"><div align="center">念青迷你下载统计系统 
                                                | <a href="index.asp" class="font1">软件下载首页</a> | <a href="login.asp" class="font1">后台管理</a> </div>
                                                <div align="right" class="toptitlenew"></div></td>
                                              <td width="5%"><a href="index.asp" class="toptitlenew">&lt;&lt;&lt;</a></td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table>
								 <p></p>
                                <% 
	set rs = server.createobject("adodb.recordset")
	sql="select * from download order by date desc"
	rs.open sql,conn,1,1 
  	if rs.eof and rs.bof then 
       		response.write "<p align='center'>没有或没有找到任何软件</p>" 
   	else 
      		totalPut=rs.recordcount 
      		if currentpage<1 then 
          		currentpage=1 
      		end if 

      		if (currentpage-1)*MaxPerPage>totalput then 
	   		if (totalPut mod MaxPerPage)=0 then 
	     			currentpage= totalPut \ MaxPerPage 
	   		else 
	      			currentpage= totalPut \ MaxPerPage + 1 
	   		end if 
      		end if 
       		if currentPage=1 then 
            		showContent 
            		showpage totalput,MaxPerPage,"index.asp" 
       		else 
          		if (currentPage-1)*MaxPerPage<totalPut then 
            			rs.move  (currentPage-1)*MaxPerPage 
            			showContent 
             			showpage totalput,MaxPerPage,"index.asp" 
        		else 
	        		currentPage=1 
           			showContent 
           			showpage totalput,MaxPerPage,"index.asp" 
	      		end if 
	   	end if 
   	rs.close 
   	end if 
	         sub showContent 
       	dim i 
	   	i=0 
	do while not rs.eof
%>                             
                  
                              <table width="85%" border="1" align="center" cellpadding="1" cellspacing="1"  class="toptitlenew">
                                <tr>
                                  <td><a href=download.asp?id=<%=rs("id")%>  title="点击下载" class="font3"><%=rs("soft")%></a></td>
                                  <td>版本:<%=rs("ver")%></td>
                                  <td>整理日期:<%=year(rs("date"))%>-<%=month(rs("date"))%>-<%=day(rs("date"))%></td>
                                </tr>
                                <tr>
                                  <td colspan="2">适用系统:<%=rs("system")%></td>
                                  <td>软件大小:<%=rs("size")%></td>
                                </tr>
                                <tr>
                                  <td colspan="2">作者主页:<%=rs("home")%></td>
                                  <td><a href=download.asp?id=<%=rs("id")%>  title="点击下载" class="font1">下载</a>统计:<%=rs("hits")%></td>
                                </tr>
                                <tr>
                                  <td colspan="3">软件简介:<br><%=rs("resum")%></td>
                                </tr>
                  </table>
<% 
	i=i+1
	if i>=MaxPerPage then exit do
	rs.movenext 
	loop 
end sub
%>
<%
function showpage(totalnumber,maxperpage,filename)
  dim n
  if totalnumber mod maxperpage=0 then
     n= totalnumber \ maxperpage
  else
     n= totalnumber \ maxperpage+1
  end if
  response.write "<p align='center'><font color='#000080'>&nbsp;共有<b>"&totalnumber&"</b>个软件"
  if CurrentPage<2 then
    response.write ""
  else
    response.write "<a href="&filename&"?page=1>首页</a> | "
    response.write "<a href="&filename&"?page="&CurrentPage-1&">上一页</a> | "
  end if
  if n-currentpage<1 then
    response.write ""
  else
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&">"
    response.write "下一页</a> | <a href="&filename&"?page="&n&">尾页</a>"
  end if
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
    response.write " <b>"&maxperpage&"</b>个软件/页</font>"
%>
                <%     
end function
%>
                <p align="center"><div align=center><table border=0 cellpadding=0 cellspacing=0>
                  
<iframe name="nq" src="bq.asp" width="350" height="68" frameborder="0"></iframe> 
  
</table></div>
<%

   	set rs=nothing   
	conn.close
	set conn=nothing
%>
</td></tr>
          </table>		  </td> 
          <td width="60" valign="top" align="left"><a href="http://input.foruto.com/nianqing" border=0><img src="images/logo.gif" width="58" height="243" border="0"></a></td> 
  </tr> 
</table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -