📄 stat_site_date.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ page import="cn.com.dekn.cms.syscfg.vo.SiteConfig"%>
<%@ page import="cn.com.dekn.cms.util.DateUtil"%>
<%@ page import="cn.com.dekn.cms.security.login.CMS4JUser"%>
<%
String node_id = CMS4JUser.getClusterNodeIDForParam(request);
if(null != request.getParameter("node_id") && !request.getParameter("node_id").equals("")){
node_id = request.getParameter("node_id");
}
String begin_date = DateUtil.format(DateUtil.rollDayTimestamp(DateUtil.getCurrentDay("yyyy-MM-dd"),-10),"yyyy-MM-dd");
String end_date = DateUtil.getCurrentDay("yyyy-MM-dd");
String dateArea = "";
if(null != request.getParameter("and_date") && !request.getParameter("and_date").equals("")){
String and_date[] = request.getParameter("and_date").split(",");
begin_date = and_date[0];
end_date = and_date[1];
dateArea = begin_date + "," + end_date;
}else{
dateArea = begin_date + "," + end_date;
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {font-size: 13px}
-->
</style>
</head>
<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script src="../../js/date/WdatePicker.js"></script>
<script language="javascript">
//页面初始化
function pageInit(){
<% if(cn.com.dekn.cms.syscfg.SysConfigHelper.getInstance().getValue("version").equals("cluster")){ %>
selectInit("node_id","${param.node_id}");
<%}%>
//selectInit("unit","${param.unit}");
}
function sendDate(){
var date = document.form1.begin_date.value + "," + document.form1.end_date.value;
var tmp = removeSearch("URL","and_date");
this.location.search = addSearch(tmp,"and_date",date);
}
</script>
<body onLoad="pageInit()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title-bar"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26" class="title-bar-title-icon"> </td>
<td width="745" class="title-bar-text">日流量统计</td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="oper-bar">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1" action="" method="post">
<tr>
<td width="28%" class="title_bar">
<% if(cn.com.dekn.cms.syscfg.SysConfigHelper.getInstance().getValue("version").equals("cluster")){ %>
<select name="NODE_ID" id="NODE_ID" onChange="dataFilter('node_id')">
<cms4j:cluster_node node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request)%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"><%=cluster_node_info.getNAME()%></option>
<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"> └<%=cluster_node_info.getNAME()%></option>
<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"> └<%=cluster_node_info.getNAME()%></option>
<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"> └<%=cluster_node_info.getNAME()%></option>
</cms4j:cluster_node>
</cms4j:cluster_node>
</cms4j:cluster_node>
</cms4j:cluster_node>
</select>
<%}%> </td>
<td align="right" class="STYLE1">时间段:
<input name="begin_date" type="text" class="form_input" id="begin_date" value="<%=begin_date%>" size="12" onFocus="new WdatePicker(this,'%Y-%M-%D',false)">
至
<input name="end_date" type="text" class="form_input" id="end_date" value="<%=end_date%>" size="12" onFocus="new WdatePicker(this,'%Y-%M-%D',false)">
<input name="Submit2" type="button" class="form-buttun" onClick="sendDate()" value="统 计"></td>
</tr>
<tr height="4">
<td height="4" colspan="2"></td>
</tr>
</form>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-frame">
<tr class="table_title">
<td width="29%" class="table-titlebar">日期</td>
<td width="17%" class="table-titlebar">访问量</td>
<td width="26%" class="table-titlebar">访问比例</td>
<td width="28%" class="table-titlebar">图表</td>
</tr>
<cms4j:stat_unit node_id="${param.node_id}" and_date="<%=dateArea%>">
<tr class="table_border_cell_bg">
<td align="center" class="table-cell" title=""><%=stat_unit_info.getDate()%></td>
<td align="right" class="table-cell"><strong><font color="#003399"><%=stat_unit_info.getSTAT_PV2()%></font></strong><strong><font color="#990000"><%=stat_unit_info.getSTAT_IP2()%></font></strong></td>
<td align="center" class="table-cell"><strong><font color="#003399"><%=stat_unit_info.getSCALE_PV2()%></font><font color="#990000"><%=stat_unit_info.getSCALE_IP2()%></font></strong></td>
<td align="left" class="table-cell"><%
if(stat_unit_info.getSTAT_IP() > 0){
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/countbg.gif" width="<%=stat_unit_info.getSCALE_PV_IMG()*2%>" height="11"><img src="../images/count.gif" width="6" height="11"></td>
</tr>
<tr>
<td><img src="../images/onlybg.gif" width="<%=stat_unit_info.getSCALE_IP_IMG()*2%>" height="8"><img src="../images/only.gif" width="6" height="8"></td>
</tr>
</table>
<%
}
%>
</td>
</tr>
</cms4j:stat_unit>
<tr class="table_border_cell_bg">
<td colspan="4" align="center" bgcolor="#FFFFFF" title=""><table width="99%" height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="8%"> </td>
<td width="92%"><span style="font-size:14px;"><B>统计日期</B>:${begin_date} ~ ${end_date} <strong>统计天数:</strong><%=DateUtil.getDayBetween(end_date,begin_date)+1%> <B>访问量</B>:PV:<font color="#003399"><B>${STAT_COUNT_PV}</B></font> IP:<font color="#990000"><B>${STAT_COUNT_IP}</B></font></span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -