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