top.asp
Upload User: maming258
Upload Date: 2022-01-28
Package Size: 283k
Code Size: 4k
Development Platform:

HTML/CSS

  1. <!--飘易网站统计程序 V1.0 Powered by flymorn,www.cn-pn.com-->
  2. <!--#include file="inc/conn.asp" -->
  3. <!--#include file="inc/function.asp" -->
  4. <!--#include file="inc/sqlfilter.asp"-->
  5. <%
  6. listnum=30 '每页显示数
  7. %>
  8. <html>
  9. <head>
  10. <title>页面点击排行 - 飘易网站统计程序 V1.0</title>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <LINK href="css.css" type=text/css rel=stylesheet>
  13. <style type="text/css">
  14. <!--
  15. .style1 {
  16. font-size: 14pt;
  17. font-weight: bold;
  18. }
  19. -->
  20. </style>
  21. </head>
  22. <body>
  23. <!--飘易网站统计程序 V1.0 Powered by flymorn,www.cn-pn.com-->
  24. <div align="center"><br>
  25.   <span class="style1">页面点击排行</span><br>
  26.   <br>
  27.   <br>
  28.   [ <%=now()%> ] <br>
  29.   <br>
  30. </div>
  31. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  32.   <tr>
  33.     <td><table width="756" border="0" align="left" cellpadding="0" cellspacing="0">
  34.       <tr>
  35.         <td><b>今日页面点击排行</b>: --- <a href="index.asp">返回首页</a> --- --- <a href=help.html target=_blank>帮助说明</a> --- </td>
  36.       </tr>
  37.     </table></td>
  38.   </tr>
  39. </table>
  40. <!--Powered by flymorn,www.cn-pn.com-->
  41. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="biao_bdr3">
  42.   <tr>
  43.     <td><table width="758" border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#DADCE4" class="xi">
  44.       <tr>
  45.         <td width="100"><div align="center"><strong>ID</strong></div></td>
  46.         <td width="550"><div align="center"><strong>页面</strong></div></td>
  47.         <td width="100"><div align="center"><strong>点击</strong></div></td>
  48.       </tr>
  49.     </table></td>
  50.   </tr>
  51.   <tr>
  52.     <td><table width="758" border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#DADCE4" class="xi">
  53.       <%
  54. sql="select url,n from urls order by n desc"  
  55. set rs=server.createobject("adodb.recordset")
  56. rs.open sql,conn,1,1
  57. If rs.eof and rs.bof Then 
  58. response.Write("当前列表为空。")                      
  59. Else
  60. recordcountnum=Rs.recordcount
  61. Rs.pagesize = listnum
  62. page = SafeRequest("page",1)
  63. If  page = "" Then
  64. page=1
  65. End If
  66. If (page-Rs.pagecount) > 0 Then
  67. page=Rs.pagecount
  68. End If
  69. if page < 1 Then
  70. page = 1
  71. End If
  72. Rs.absolutepage=page
  73. j=rs.recordcount
  74. j=j-(page-1)*listnum
  75. i=0
  76. x=1+listnum*(page-1)
  77. do while not rs.eof and i<listnum
  78. n=rs("n")
  79. url=rs("url")
  80. url1=url
  81. if len(url)>60 then
  82. url=left(url,60)&"…"
  83. end if
  84. %>
  85.   <tr class="table001" onmouseover="this.className='table002'" onmouseout="this.className='table001'">
  86.         <td width="100"><div align="center"><%=x%></div></td>
  87.         <td width="550"><a href=<%=url1%> target=_blank title=<%=url1%>><%=url%></a></td>
  88.         <td width="100"><div align="center"><%=n%></div></td>
  89.   </tr>
  90.   <%
  91. i=i+1
  92. x=x+1
  93. rs.movenext
  94. loop
  95. end if
  96. %>
  97. <tr>
  98. <td colspan="7">
  99. <%
  100. Dim filename
  101. filename="top.asp?"
  102. %>
  103. <table width="680" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DADCE4">
  104.   <tr>
  105.     <td><form method="post" action="<%=filename%>">
  106.       <div align="center">总共<strong><%=Rs.recordcount%></strong>人 <%=page%>/<%=Rs.pagecount%>页&nbsp;每页<%= listnum %>人&nbsp;
  107.           <a href="<%=filename%>page=1">首页</a>&nbsp;
  108.           <% if page<>1 then %>
  109.           <a href="<%=filename%>page=<%=page-1%>">上一页</a>&nbsp;
  110.           <%end if%>
  111.           <% if Rs.pagecount-page <> 0 then %>
  112.           <a href="<%=filename%>page=<%=page+1%>">下一页</a>&nbsp;
  113.           <%End If%>
  114.   <a href="<%=filename%>page=<%=Rs.pagecount%>">尾页</a>&nbsp;
  115.           <input type="text" name="page" size="3" maxlength="5" value="<%=page+1%>" />
  116.           <input type="submit" value="Go" name="cndok" />
  117.       </div>
  118.     </form></td>
  119.   </tr>
  120. </table>
  121. </td></tr>
  122.     </table>
  123. </td>
  124.   </tr>
  125. </table><!--Powered by flymorn,www.cn-pn.com-->
  126. <br>
  127. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  128.   <tr>
  129.     <td><div align="center">&copy; 2005-2010 <a href="http://www.cn-pn.com" target="_blank">飘网中国</a> 版权所有<br>
  130.       Powered By Author Flymorn,WWW.CN-PN.COM; Website Stat Services! <script src=online.asp></script></div></td>
  131.   </tr>
  132. </table><!--飘易网站统计程序 V1.0 Powered by flymorn,www.cn-pn.com-->
  133. </body>
  134. </html>
  135. <%
  136. rs.close
  137. set rs=nothing
  138. conn.close
  139. set conn=nothing
  140. %><!--飘易网站统计程序 V1.0 Powered by flymorn,www.cn-pn.com-->