📄 fyhour.asp
字号:
<HTML><HEAD><TITLE>中华健康网--免费网站流量分析系统</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<META NAME="Generator" CONTENT="免费统计,计数器,免费计数器,流量统计">
<META NAME="Author" CONTENT="免费统计,计数器,免费计数器,流量统计">
<META NAME="Keywords" CONTENT="免费统计,计数器,免费计数器,流量统计,htm,asp,sql,mssql">
<META NAME="Description" CONTENT="免费统计,计数器,免费计数器,流量统计">
<link rel="stylesheet" href="images/css.css" type="text/css"></HEAD><BODY bgColor=#e1e1e1 topMargin=60>
<TABLE width=569 height=471 border=0 align="center" cellPadding=0 cellSpacing=0
borderColor=#111111 class=ttbb
style="BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; BORDER-LEFT: 1px dotted; BORDER-BOTTOM: 1px dotted; BORDER-COLLAPSE: collapse">
<TBODY>
<TR>
<TD style="POSITION: relative" width=569 bgColor=#ffffff colSpan=3 height=45><div id="9126" style="position:absolute; left:0px; top:-31px; border-style:none;"><img src="images/logo.gif" width="560" height="78" border="0"></div></TD>
</TR>
<tr align="center">
<td width=569 height=24 colspan=3 bgcolor=#0374b8> <!--#include file="head.asp" -->
<%if request("view")<>"" then
view=request("view")
url1="?view="&view&"&"
else
url1="?"
end if
%>
<%if errornum<>1 then%>
<% if request.querystring("action")="" then%>
<%
fyear=year(now)'判断当前年份
fmonth=month(now)'判断当前月份
fday=day(now)'判断当前日期
fhour=hour(now)'判断当前小时
fweek=weekday(now)'判断当前星期
%>
</td>
</tr>
<TR>
<TD width=569 colspan="3" vAlign=top bgColor=#66ccff><div align="center">
<center>
<table border=0 cellPadding=0 cellSpacing=0 width=90% style="border-collapse: collapse" align=center>
<tr>
<td colspan="3" align="center" class=tdc1 height="23"><font color="#990000"><strong><%=date()%>-日统计</strong></font></td>
</tr>
<tr class=tdc1 >
<td height="22"> <p align="center">时间</td>
<td height="22"> <p align="center">访问人数</td>
<td height="22"> <p align="center">比例图-报表</td>
</tr>
<%
sql="select count(fid) as alldayweek from fcount where fyear='"&fyear&"' and fuser='"&view&"' and fmonth='"&fmonth&"' and fday='"&fday&"'"
set rs=conn.execute(sql)
maxalldayweek=rs("alldayweek")
if maxalldayweek=0 then maxalldayweek=1
set rs=nothing
rcount=0
for i= 1 to 24
sql="select count(*) as fweek1 from fcount where fyear='"&fyear&"' and fuser='"&view&"' and fmonth='"&fmonth&"' and fday='"&fday&"' and fhour='"&i&"' group by fhour "
set rs=conn.execute(sql)
if not rs.eof then
fweek1=rs("fweek1")
else
fweek1=0
end if
%>
<tr>
<td class=tdc height="20" width=15%><%=i%></td>
<td class=tdc height="20" width=15%><%=fweek1%></td>
<td class=tdc height="20"><img src="images/b3.gif" width="<%=(fweek1/maxalldayweek)*100%>" height="10"%><%=round(((fweek1/maxalldayweek)*100),2)%>%
</td>
</tr>
<%rcount=rcount+fweek1
next
%>
<tr>
<td colspan="3" align="center" class=tdc1 height="22">总访问人数:<%=rcount%>
<a href=<%=url1%>action=all> 所有日统计</a></td>
</tr>
</table>
</center>
</div>
<%else%>
<div align="center">
<center>
<table width=90% border=0 align=center cellPadding=0 cellSpacing=0 style="border-collapse: collapse">
<tr>
<td colspan="3" align="center" class=tdc1 height="23">所有日统计</td>
</tr>
<tr class=tdc1 >
<td height="22"> <p align="center">时间</td>
<td height="22"> <p align="center">访问人数</td>
<td height="22"> <p align="center">比例图-报表</td>
</tr>
<% sql="select count(fid) as alldayweek from fcount where fuser='"&view&"'"
set rs=conn.execute(sql)
maxalldayweek=rs("alldayweek")
if maxalldayweek=0 then maxalldayweek=1
set rs=nothing
rcount=0
for i= 1 to 24
sql="select count(*) as fweek1 from fcount where fhour='"&i&"' and fuser='"&view&"' group by fhour "
set rs=conn.execute(sql)
if not rs.eof then
fweek1=rs("fweek1")
else
fweek1=0
end if%>
<tr>
<td class=tdc height="20" width=15%><%=i%></td>
<td class=tdc height="20" width=15%><%=fweek1%></td>
<td class=tdc height="20"><img src="images/b3.gif" width="<%=(fweek1/maxalldayweek)*100%>" height="10"%><%=round(((fweek1/maxalldayweek)*100),2)%>%
</td>
</tr>
<%rcount=rcount+fweek1
next
%>
<tr>
<td colspan="3" align="center" class=tdc1 height="22">总访问人数:<%=rcount%>
<a href=fyhour.asp<%=url%>> 今日统计</a></td>
</tr>
</table>
</center>
</div>
<%end if%>
<%else%>
<!--#include file="error.asp" -->
<%end if%>
</TD>
</TR>
</TBODY>
</TABLE>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -