最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp按日期统计访问量
时间:2022-07-02 23:12:50 编辑:袖梨 来源:一聚教程网
<%
oConn.Open();
var bIsLogined = chkLogin(true);
var iDaySum = 0;
var iPageDaySum = 0;
var iDayMax = 0;
var iPageDayMax = 0;
var aDay = new Array();
var aPageNowHour = new Array();
var sSqlString = "select Year(CountDate),Month(CountDate),Sum(HourCount),Sum(PageViewCount) from v_Count "
+ "where siteid="+iSiteId+" and (CountDate between #"+(dToday.getYear())+"-1-1# and #"+(dToday.getYear())+"-12-31#) "
+ "group by Year(CountDate), Month(CountDate)"
var oRs = oConn.Execute( sSqlString );
for(var i=0;i
if(!oRs.EOF){
if(oRs.fields.item(1).value==(i+1)){
aDay[aDay.length] = Array(sTmpDate,parseInt(oRs.Fields.Item(2).Value),parseInt(oRs.Fields.Item(3).Value));
oRs.moveNext();
}else{
aDay[aDay.length] = Array(sTmpDate,0,0);
}
}else{
aDay[aDay.length] = Array(sTmpDate,0,0);
}
if(iDayMax
}
var sNowFromTo = ' '+(dToday.getYear())+'-1-1 ~ '+(dToday.getYear())+'-12-31';
oConn.Close();
%>
相关文章
- 《彩色点点战争》推图常用三大主c玩法详解 01-23
- 《燕云十六声》池鱼林木任务攻略 01-23
- 《大连地铁e出行》查看行程记录方法 01-23
- 《明日方舟》2025春节限定干员余角色介绍 01-23
- 《崩坏:星穹铁道》万敌光锥搭配攻略 01-23
- 《燕云十六声》一药千金任务攻略 01-23