Visit_AreaStatistic.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:3k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_InterFace/NS_Function.asp" -->
  5. <!--#include file="../../FS_Inc/Function.asp" -->
  6. <%
  7. Response.Buffer = True
  8. Response.Expires = -1
  9. Response.ExpiresAbsolute = Now() - 1
  10. Response.Expires = 0
  11. Response.CacheControl = "no-cache"
  12. Dim Conn,User_Conn,tmp_type,strShowErr
  13. MF_Default_Conn
  14. MF_User_Conn
  15. MF_Session_TF
  16. if not MF_Check_Pop_TF("SS_site") then Err_Show
  17. if not MF_Check_Pop_TF("SS001") then Err_Show
  18. %>
  19. <html>
  20. <head>
  21. <title>访问者地区统计</title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  23. </head>
  24. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  25. <script src="../../FS_Inc/PublicJS.js" language="JavaScript"></script>
  26. <body bgcolor="#FFFFFF" topmargin="2" leftmargin="2">
  27. <%
  28. Dim RsAreaObj,Sql
  29. Set RsAreaObj = Server.CreateObject(G_FS_RS)
  30. Sql="Select Area From FS_SS_Stat"
  31. RsAreaObj.Open Sql,Conn,3,3
  32. Dim AreaType
  33. Dim NumIn,NumOut,NumOther
  34. NumIn=0
  35. NumOut=0
  36. NumOther=0
  37. Do While not RsAreaObj.Eof
  38. AreaType= RsAreaObj("Area")
  39. Select Case AreaType
  40. Case "局域网内部网"
  41. NumIn=NumIn+1
  42. Case "未知区域"
  43. NumOther=NumOther+1
  44. Case Else
  45. NumOut=NumOut+1
  46. End Select
  47. RsAreaObj.MoveNext
  48. Loop
  49. %>
  50. <%
  51. Dim AllNum
  52. AllNum=NumIn+NumOut+NumOther
  53. %>
  54. <table width=98% border=0 align="center" cellpadding=5 cellspacing="1" class="table">
  55.   <tr>
  56.     <td align=center class="xingmu"><div align="left"><strong>访问者地区统计</strong></div></td>
  57. </tr>
  58. <tr class="hback">
  59. <td align=center>
  60. <table align=left>
  61.         <tr valign=bottom >
  62.           <td nowap>内部网</td>
  63.           <td align=left background=../../Images/Visit/tu_back_2.gif valign=middle width=150><img src=../Images/bar2.gif height=15></td>
  64. <td nowap><% =NumIn %></td>
  65. </tr>
  66. <tr valign=bottom >
  67.           <td nowap>外部网</td>
  68.           <td align=left background=../../Images/Visit/tu_back_2.gif valign=middle width=150><img src=../Images/bar2.gif height=15></td>
  69. <td nowap><% =NumOut %></td>
  70. </tr>
  71. <tr valign=bottom >
  72.           <td align="right" nowap>未知</td>
  73.           <td align=left background=../../Images/Visit/tu_back_2.gif valign=middle width=150><img src=../Images/bar2.gif height=15></td>
  74. <td nowap><% =NumOther %></td>
  75. </tr>
  76. <tr valign=cente>
  77. <td align=right nowap>共</td>
  78.           <td align=left background=../../Images/Visit/tu_back_2.gif valign=middle width=150><img src=../Images/bar2.gif width="150" height=15></td>
  79. <td nowap><% = AllNum %></td>
  80. </table><br>
  81. </td>
  82. </tr>
  83. </table>