📄 reportbyservicebody.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.longtime.wap.model.Cp"%>
<%@ page import="java.util.List"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic"%>
<%@ taglib uri="/page-tag" prefix="page"%>
<script language="javascript" type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<html:form action="/cpReport.do?method=reportByService"
styleId="reportByService" method="post" onsubmit="return false;">
<table align="center" width="98%" class="TableBack">
<th colspan="3" align="left"><a
href="toModule.do?prefix=/module/cp&page=/cpReport.do?method=reportByCp">按CP单位统计</a>
<a
href="toModule.do?prefix=/module/cp&page=/cpReport.do?method=reportByService">按业务类别统计</a></th>
<logic:notEmpty name="wap_global_messages" scope="request">
<tr>
<td class="tborder"></td>
<td> <logic:iterate id="message" name="wap_global_messages"
scope="request">
<center><font color="red">
<li><bean:write name="message" /></li>
</font></center>
</logic:iterate></td>
<td class="tborder"></td>
</tr>
</logic:notEmpty>
<tr>
<td colspan="3">
<table width="100%" class="TableBack">
<tr>
<td align="left">
</tr>
<tr>
<td align="left">时间段选择:从
<html:text property="fromDate" size="10"
onfocus="new WdatePicker(this)"
readonly="true"></html:text>
到
<html:text property="toDate"
size="10" onfocus="new WdatePicker(this)"
readonly="true"></html:text>
<html:errors property="date" /> <input
class="ButtonCss" type="button" name="search" value="搜索"
onClick="formSubmit('reportByService', 'module/cp/cpReport.do?method=reportByService')"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<table align="center" border="1" width="100%" id="cpTable"
class="TableBack2">
<tr>
<th>业务类别</th>
<th>发布信息数量</th>
<th>暂存信息数量</th>
<th>总访问量</th>
</tr>
<%
int sum[] = new int[4];
if (null != request.getAttribute("cps")) {
List cps = (List) request.getAttribute("cps");
for (int i = 0; i < cps.size(); i++) {
Object obj[] = (Object[]) cps.get(i);
sum[1] += Integer.parseInt((String)obj[1]);
sum[2] += Integer.parseInt((String)obj[2]);
sum[3] += Integer.parseInt((String)obj[3]);
String category = (String)obj[0];
if(category.equals("0")) category = "文字";
else if(category.equals("1")) category = "音乐";
else if(category.equals("2")) category = "图片";
%>
<TR>
<TD align="center"><%=category%></TD>
<TD align="center"><%=obj[1]%></TD>
<TD align="center"><%=obj[2]%></TD>
<TD align="center"><%=obj[3]%></TD>
</TR>
<%}
}
%>
<TR>
<TD align="center">合计</TD>
<TD align="center"><%=sum[1]%></TD>
<TD align="center"><%=sum[2]%></TD>
<TD align="center"><%=sum[3]%></TD>
</TR>
</table>
</td>
</tr>
<!--
<TR>
<td class="tborder"></td>
<td><page:page_tag formName="reportByService"
action="module/cp//cpReport.do?method=reportByService" /></td>
<td class="tborder"></td>
</TR>
-->
<tr>
<td colspan="3" class="tborder"></td>
</tr>
</table>
</html:form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -