InfoList.asp
上传用户:mtjhgs
上传日期:2021-12-08
资源大小:3755k
文件大小:11k
源码类别:

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

开发平台:

HTML/CSS

  1. <!-- #include file="ConnStatData.asp" -->
  2. <%
  3. '判断是否登录或登录超时===============================================================
  4. dim AdminAction
  5. AdminAction=request.QueryString("AdminAction")
  6. select case AdminAction
  7.   case "Out"
  8.     call OutLogin()
  9.   case else
  10.     call Login()
  11. end select
  12. '========
  13. sub Login()
  14.   if session("AdminName")="" or session("UserName")="" or session("AdminPurview")="" or session("LoginSystem")<>"Succeed" then
  15.      response.write "您还没有登录或登录已超时,请<a href='../admin/Admin_Login.asp' target='_parent'><font color='red'>返回登录</font></a>!"
  16.      response.end
  17.   end if
  18. end sub
  19. '========
  20. sub OutLogin()
  21.   session.contents.remove "AdminName"
  22.   session.contents.remove "UserName"
  23.   session.contents.remove "AdminPurview"
  24.   session.contents.remove "LoginSystem"
  25.   session.contents.remove "VerifyCode"
  26.   response.write "<script language=javascript>top.location.replace('../admin/admin_login.asp');</script>"
  27. end sub
  28. %>
  29. <%
  30. Response.Expires=0
  31. Sql="Select * From InfoList"
  32. Rs.Open Sql,Conn,1,1
  33. On Error Resume Next
  34. Name=Rs("Name")
  35. Url=Rs("Url")
  36. DayNum=Rs("DayNum")
  37. TotalNum=Rs("TotalNum")
  38. MonthMaxNum=rs("MonthMaxNum")
  39. MonthMaxDate=Rs("MonthMaxDate")
  40. DayMaxNum=Rs("DayMaxNum")
  41. DayMaxDate=Rs("DayMaxDate")
  42. HourMaxNum=Rs("HourMaxNum")
  43. HourMaxTime=Rs("HourMaxTime")
  44. LiaoningNum=Rs("LiaoningNum")
  45. ChinaNum=Rs("ChinaNum")
  46. OtherNum=Rs("OtherNum")
  47. StartDate=Rs("StartDate")
  48. StatDayNum=DateDiff("D",StartDate,Date)+1
  49. If StatDayNum<=0 Then
  50.    AveDayNum=StatDayNum
  51. Else
  52.    AveDayNum=Cint(TotalNum/StatDayNum)
  53. End If
  54. Rs.Close
  55. Sql="Select Top 1 * From FBrowser Order By TBrwNum DESC"
  56. Rs.Open Sql,Conn,1,1
  57. If Not Rs.Bof And Not Rs.Eof Then
  58. MaxBrw=Rs("TBrowser")
  59. MaxBrwNum=Rs("TBrwNum")
  60. End If
  61. Rs.Close
  62. Sql="Select Top 1 * From FSystem Order By TSysNum DESC"
  63. Rs.Open Sql,Conn,1,1
  64. If Not Rs.Bof And Not Rs.Eof Then
  65. MaxSys=Rs("TSystem")
  66. MaxSysNum=Rs("TSysNum")
  67. End If
  68. Rs.Close
  69. Sql="Select Top 1 * From FScreen Order By TScrNum DESC"
  70. Rs.Open Sql,Conn,1,1
  71. If Not Rs.Bof And Not Rs.Eof Then
  72. MaxScr=Rs("TScreen")
  73. MaxScrNum=Rs("TScrNum")
  74. End If
  75. Rs.Close
  76. Sql="Select Top 1 * From FArea Order By TAreNum DESC"
  77. Rs.Open Sql,Conn,1,1
  78. If Not Rs.Bof And Not Rs.Eof Then
  79. MaxAre=Rs("TArea")
  80. MaxAreNum=Rs("TAreNum")
  81. End If
  82. Rs.Close
  83. Sql="Select Top 1 * From FWeburl Order By TWebNum DESC"
  84. Rs.Open Sql,Conn,1,1
  85. If Not Rs.Bof And Not Rs.Eof Then
  86. MaxWeb=Rs("TWeburl")
  87. MaxWebNum=Rs("TWebNum")
  88. End If
  89. Rs.Close
  90. Conn.Close
  91. Set Rs=Nothing
  92. Set Conn=Nothing
  93. %>
  94. <HTML>
  95. <HEAD>
  96. <TITLE>网站统计分析系统</TITLE>
  97. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  98. <link rel="stylesheet" href="../admin/images/admin.css">
  99. </HEAD>
  100. <%
  101. if Instr(session("AdminPurview"),"|40,")=0 then 
  102.     response.write ("<br><br><div align=""center""><font style=""color:red; font-size:9pt; "")>您没有管理该模块的权限!</font></div>")
  103.   response.end
  104. end if
  105. '========判断是否具有管理权限
  106. %>
  107. <BODY>
  108. <div align="center">
  109.   <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1"  class="tableborder">
  110.       <tr>
  111.         <th colspan="8">网站流量统计:包括年,月,日,IP,浏览器类型等非常详细的分析报表</th>
  112.       </tr>
  113.       <tr>
  114.         <td align="center" class="forumrow"><a href="Infolist.asp">统计概况</a></td>
  115.         <td align="center" class="forumrow"><a href="FVisitor.asp">最近访问</a></td>
  116.         <td align="center" class="forumrow"><a href="StatYear.asp">年 报 表</a></td>
  117.         <td align="center" class="forumrow"><a href="StatMonth.asp">月 报 表</a></td>
  118.         <td align="center" class="forumrow"><a href="StatWeek.asp">周 报 表</a></td>
  119.         <td align="center" class="forumrow"><a href="StatDay.asp">日 报 表</a></td>
  120.         <td align="center" class="forumrow"><a href="History.asp">历史报表</a></td>
  121.         <td align="center" class="forumrow"><a href="Rereg.asp">修改信息</a></td>
  122.       </tr>
  123.       <tr>
  124.         <td align="center" class="forumrow"><a href="FArea.asp">地区分析</a></td>
  125.         <td align="center" class="forumrow"><a href="FAddress.asp">地址分析</a></td>
  126.         <td align="center" class="forumrow"><a href="FIptwo.asp">IP 地 址</a></td>
  127.         <td align="center" class="forumrow"><a href="Fweburl.asp">链接页面</a></td>
  128.         <td align="center" class="forumrow"><a href="FCounter.asp">访问次数</a></td>
  129.         <td align="center" class="forumrow"><a href="FSystem.asp">操作系统</a></td>
  130.         <td align="center" class="forumrow"><a href="FBrowser.asp">浏 览 器</a></td>
  131.         <td align="center" class="forumrow"><a href="FScreen.asp">屏幕大小</a></td>
  132.       </tr>
  133.   </table>
  134.   <br>
  135.   <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1"  class="tableborder">
  136.         <tr>
  137.           <th>网站流量统计概况</th>
  138.         </tr>
  139.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  140.           <td width="50%" class="forumrow">网站名称</td>
  141.           <td width="50%" class="forumrowhighlight"><%=Name%></td>
  142.         </tr>
  143.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  144.           <td class="forumrow">网站网址</td>
  145.           <td class="forumrowhighlight"><a href="<%=Url%>"><%=Url%></a></td>
  146.         </tr>
  147.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  148.           <td class="forumrow">总统计天数</td>
  149.           <td class="forumrowhighlight"><%=StatDayNum%></td>
  150.         </tr>
  151.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  152.           <td class="forumrow">开始统计日期</td>
  153.           <td class="forumrowhighlight"><%=StartDate%></td>
  154.         </tr>
  155.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  156.           <td class="forumrow">总访问量</td>
  157.           <td class="forumrowhighlight"><%=AveDayNum%></td>
  158.         </tr>
  159.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  160.           <td class="forumrow">平均日访量</td>
  161.           <td class="forumrowhighlight"><%=AveDayNum%></td>
  162.         </tr>
  163.         <tr>
  164.           <td class="forumrow"></td>
  165.           <td class="forumrowhighlight"></td>
  166.         </tr>
  167.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  168.           <td class="forumrow">今日访问量</td>
  169.           <td class="forumrowhighlight"><%=DayNum%></td>
  170.         </tr>
  171.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  172.           <td class="forumrow">最高月访量</td>
  173.           <td class="forumrowhighlight"><%=MonthMaxNum%></td>
  174.         </tr>
  175.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  176.           <td class="forumrow">最高月访量月份</td>
  177.           <td class="forumrowhighlight"><%=MonthMaxDate%></td>
  178.         </tr>
  179.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  180.           <td class="forumrow">最高日访量</td>
  181.           <td class="forumrowhighlight"><%=DayMaxNum%></td>
  182.         </tr>
  183.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  184.           <td class="forumrow">最高日访量日期</td>
  185.           <td class="forumrowhighlight"><%=DayMaxDate%></td>
  186.         </tr>
  187.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  188.           <td class="forumrow">最高时访量</td>
  189.           <td class="forumrowhighlight"><%=HourMaxNum%></td>
  190.         </tr>
  191.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  192.           <td class="forumrow">最高时访量时间</td>
  193.           <td class="forumrowhighlight"><%=HourMaxTime%></td>
  194.         </tr>
  195.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  196.           <td class="forumrow">省内访问人数</td>
  197.           <td class="forumrowhighlight"><%=LiaoningNum%></td>
  198.         </tr>
  199.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  200.           <td class="forumrow">国内访问人数</td>
  201.           <td class="forumrowhighlight"><%=ChinaNum%></td>
  202.         </tr>
  203.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  204.           <td class="forumrow">国外访问人数</td>
  205.           <td class="forumrowhighlight"><%=OtherNum%></td>
  206.         </tr>
  207.         <tr>
  208.           <td class="forumrow"></td>
  209.           <td class="forumrowhighlight"></td>
  210.         </tr>
  211.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  212.           <td class="forumrow">最常用浏览器</td>
  213.           <td class="forumrowhighlight"><%=MaxBrw%> (<%=MaxBrwNum%>)</td>
  214.         </tr>
  215.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  216.           <td class="forumrow">最常用操作系统</td>
  217.           <td class="forumrowhighlight"><%=MaxSys%> (<%=MaxSysNum%>)</td>
  218.         </tr>
  219.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  220.           <td class="forumrow">常用屏幕分辨率</td>
  221.           <td class="forumrowhighlight"><%=MaxScr%> (<%=MaxScrNum%>)</td>
  222.         </tr>
  223.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  224.           <td class="forumrow">访问最多的地区</td>
  225.           <td class="forumrowhighlight"><%=MaxAre%> (<%=MaxAreNum%>)</td>
  226.         </tr>
  227.         <tr onMouseOver = 'this.style.backgroundColor = "#FFFFFF"' onMouseOut = 'this.style.backgroundColor = ""' style="cursor:hand">
  228.           <td class="forumrow">访问最多的页面</td>
  229.           <td class="forumrowhighlight"><% If MaxWeb="直接输入或书签导入" Then%>
  230.             <%=Left(MaxWeb,40)%> (<%=MaxWebNum%>)
  231.             <%Else%>
  232.             <a href="<%=MaxWeb%>"><%=Left(MaxWeb,40)%></a> (<%=MaxWebNum%>)
  233.           <%End If%></td>
  234.         </tr>
  235.   </table>
  236. <br>
  237. <!--<Script language="javascript" src="Stat.asp"></Script>-->
  238. </div>
  239. </BODY>
  240. </HTML>