Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
total.asp
Package: cnpncount15.rar [view]
Upload User: maming258
Upload Date: 2022-01-28
Package Size: 283k
Code Size: 3k
Category:
WEB(ASP,PHP,...)
Development Platform:
HTML/CSS
- <!--飘易网站统计程序 V1.5 Powered by flymorn,www.cn-pn.com-->
- <!--#include file="inc/conn.asp" -->
- <%
- sql="select * from cnt where id =1"
- set rs=server.createobject("adodb.recordset")
- rs.open sql,conn,1,1
- totalip=rs("totalip")
- totalpv=rs("totalpv")
- startday=rs("startday")
- yesdayip=rs("yesdayip")
- yesdaypv=rs("yesdaypv")
- day2ip=rs("day2ip")
- day2pv=rs("day2pv")
- dd=datediff("d",startday,date())
- if dd=0 then
- dd=1
- end if
- set rs=nothing
- '今日IP
- function todayip()
- sql="Select count(id) from ip"
- set ips=conn.execute(sql)
- todayip=ips(0)
- ips.close
- set ips=nothing
- end function
- '今日PV
- function todaypv()
- sql="Select sum(n) from ip"
- set rs=conn.execute(sql)
- If rs.eof and rs.bof Then
- todaypv=0
- Else
- todaypv=rs(0)
- end if
- rs.close
- set rs=nothing
- end function
- '在线人数
- function online()
- sql="Select count(id) from ip WHERE DATEDIFF('s', lastime, now()) < "&kicktime&"*60"
- set ips=conn.execute(sql)
- online=ips(0)
- ips.close
- set ips=nothing
- end function
- %>
- <html>
- <head>
- <title>总体数据 - 飘易网站统计程序 V1.5</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <LINK href="css.css" type=text/css rel=stylesheet>
- <style type="text/css">
- <!--
- .style1 {
- font-size: 14pt;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body>
- <!--#include file="head.asp"-->
- <!--飘易网站统计程序 V1.5 Powered by flymorn,www.cn-pn.com-->
- <div align="center"><br>
- </div>
- <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="biao_bdr1">
- <tr>
- <td><table width="756" border="0" align="left" cellpadding="0" cellspacing="0">
- <tr>
- <td><p align="center"><span class="style1"><br>
- </span><span class="style1">总体数据 - 飘易网站统计程序 V1.5</span> <br>
- </p></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <!--Powered by flymorn,www.cn-pn.com-->
- <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="biao_bdr2">
- <tr>
- <td><table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><hr noshade size="1">[ 当前在线:<font color=red><b><%=online()%></b></font>人 ] <br>
- <br>
- [ 今日IP:<b><%=todayip()%></b> ] [ 今日PV:<b><%=todaypv()%></b> ]<br>
- <br>
- [ 昨日IP:<b><%=yesdayip%></b> ] [ 昨日PV:<b><%=yesdaypv%></b> ] <br>
- <br>
- [ 前日IP:<b><%=day2ip%></b> ] [ 前日PV:<b><%=day2pv%></b> ]<br>
- <br>
- [ 开始统计:<b><%=startday%></b> ] [ 统计天数:<b><%=dd%></b> ] <br>
- <br>
- [ 总访问量:<b><%=totalpv%></b> ] [ 总IP量:<b><%=totalip%></b> ] <br>
- <br>
- [ 平均访量:<b><%=int(totalpv/dd)%></b> ] [ 平均IP:<b><%=int(totalip/dd)%></b> ]
- <br>
- <br>
- 注意:<br>
- 1、当前在线人数,今日IP,今日PV为即时更新数据。<br>
- 2、其他所有数据,每天凌晨只更新一次;目的:节省系统资源,使程序更快执行。<br>
- <br></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <br>
- <!--#include file="foot.asp"-->
- <!--飘易网站统计程序 V1.5 Powered by flymorn,www.cn-pn.com-->
- </body>
- </html>
- <%call closedb%>