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

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

开发平台:

HTML/CSS

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