最新下载
热门教程
- 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();
%>
相关文章
- 王者荣耀侦探能力大测试攻略 王者荣耀侦探能力大测试怎么过 11-22
- 无期迷途主线前瞻兑换码是什么 11-22
- 原神欧洛伦怎么培养 11-22
- 炉石传说网易云音乐联动怎么玩 11-22
- 永劫无间手游确幸转盘怎么样 11-22
- 无期迷途主线前瞻兑换码是什么 无期迷途主线前瞻直播兑换码介绍 11-22