FVisitor.asp
资源名称:1.rar [点击查看]
上传用户:yrf020
上传日期:2007-07-24
资源大小:1287k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!-- #include file="ConnStatData.asp" -->
  2. <!-- #Include File="../admin/CheckAdmin.asp"-->
  3. <%
  4. Response.Expires=0
  5. Dim Rows,i
  6. Sql="Select Top 30 * From Visitor Order By Id DESC"
  7. Rs.Open Sql,Conn,1,1
  8. If Not Rs.Bof And Not Rs.Eof Then
  9.    Assay=Rs.GetRows
  10.    Rows=Ubound(Assay,2)
  11. Else
  12.    Rows=-1
  13. End If
  14. Rs.Close
  15. Conn.Close
  16. Set Rs=Nothing
  17. Set Conn=Nothing
  18. %>
  19. <HTML>
  20. <HEAD>
  21. <TITLE>网站统计分析系统</TITLE>
  22. <META content="text/html; charset=utf-8" http-equiv=Content-Type>
  23. <link rel="stylesheet" href="images/style.css">
  24. </HEAD>
  25. <%
  26. Dim SERVER_NAME
  27. SERVER_NAME=trim(Request.ServerVariables("SERVER_NAME"))
  28. if  (SERVER_NAME= ""&chr(119)&chr(119)&chr(119)&chr(46)&chr(104)&chr(111)&chr(107)&chr(105)&chr(108)&chr(108)&chr(121)&chr(46)&chr(99)&chr(111)&chr(109)&"")or(SERVER_NAME=  ""&chr(104)&chr(111)&chr(107)&chr(105)&chr(108)&chr(121)&chr(46)&chr(99)&chr(111)&chr(109)&"")or(SERVER_NAME=  ""&chr(108)&chr(111)&chr(99)&chr(97)&chr(108)&chr(104)&chr(111)&chr(115)&chr(116)&"")or(SERVER_NAME=  ""&chr(49)&chr(50)&chr(55)&chr(46)&chr(48)&chr(46)&chr(48)&chr(46)&chr(49)&"") then
  29. if Instr(session("AdminPurview"),"|117,")=0 then 
  30.   response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
  31.   response.end
  32. end if
  33. '========判断是否具有管理权限
  34. %>
  35. <BODY>
  36. <div align="center">
  37.   <table width="720" border="0" cellpadding="3" cellspacing="1" bgcolor="#6ab6b6">
  38.     <tr>
  39.       <td height="24" colspan="8"><font color="#FFFFFF"><strong>网站流量统计:包括年,月,日,IP,浏览器类型等非常详细的分析报表</strong></font></td>
  40.     </tr>
  41.     <tr bgcolor="#eafefe">
  42.       <td align="center"><a href="Infolist.asp">统计概况</a></td>
  43.       <td align="center"><a href="FVisitor.asp">最近访问</a></td>
  44.       <td align="center"><a href="StatYear.asp">年 报 表</a></td>
  45.       <td align="center"><a href="StatMonth.asp">月 报 表</a></td>
  46.       <td align="center"><a href="StatWeek.asp">周 报 表</a></td>
  47.       <td align="center"><a href="StatDay.asp">日 报 表</a></td>
  48.       <td align="center"><a href="History.asp">历史报表</a></td>
  49.       <td align="center"><a href="Rereg.asp">修改信息</a></td>
  50.     </tr>
  51.     <tr bgcolor="#eafefe">
  52.       <td align="center"><a href="FArea.asp">地区分析</a></td>
  53.       <td align="center"><a href="FAddress.asp">地址分析</a></td>
  54.       <td align="center"><a href="FIptwo.asp">IP 地 址</a></td>
  55.       <td align="center"><a href="Fweburl.asp">链接页面</a></td>
  56.       <td align="center"><a href="FCounter.asp">访问次数</a></td>
  57.       <td align="center"><a href="FSystem.asp">操作系统</a></td>
  58.       <td align="center"><a href="FBrowser.asp">浏 览 器</a></td>
  59.       <td align="center"><a href="FScreen.asp">屏幕大小</a></td>
  60.     </tr>
  61.   </table>
  62.   <br>
  63.   <table width="720" border="0" cellpadding="3" cellspacing="1" bgcolor="#6ab6b6">
  64.     <tr>
  65.       <td height="24" colspan="4"><font color="#FFFFFF"><strong>最近30位访问者信息分析</strong></font></td>
  66.     </tr>
  67.     <tr bgcolor="#6FBFBF">
  68.       <td width="15%">访问日期</td>
  69.       <td width="15%">访问时间</td>
  70.       <td width="15%">所在地址</td>
  71.       <td width="55%">链接页面</td>
  72.     </tr>
  73.     <%for i=0 to Rows
  74.     Exfor=Exfor+1%>
  75.     <tr bgcolor="#eafefe" onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  76.       <td><%=Assay(1,i)%></td>
  77.       <td><%=FormatDateTime(Assay(2,i),4)%></td>
  78.       <td><%=Assay(4,i)%></td>
  79.       <td><% If Assay(8,i)="直接输入或书签导入" Then%>
  80.         <%=Left(Assay(8,i),56)%>
  81.         <%Else%>
  82.         <a href="<%=Assay(8,i)%>"><%=Left(Assay(8,i),56)%></a>
  83.         <%End If%></td>
  84.     </tr>
  85.     <%If Exfor>=30 Then Exit For
  86.     Next%>
  87.   </table>
  88. </div>
  89. </BODY>
  90. </HTML>
  91. <%
  92. else
  93. response.write "<meta http-equiv=refresh content=0;URL="&chr(104)&chr(116)&chr(116)&chr(112)&chr(58)&chr(47)&chr(47)&chr(104)&chr(111)&chr(107)&chr(105)&chr(108)&chr(108)&chr(121)&chr(46)&chr(99)&chr(111)&chr(109)&chr(47)&chr(114)&chr(101)&chr(103)&chr(46)&chr(97)&chr(115)&chr(112)&">"
  94. response.end%>
  95. <%end if%>