<%@ page language="java" session="true" import="com.websina.bean.*,com.websina.util.*,com.websina.util.log.Log" errorPage="error.jsp" %> Summary Report <%@ include file="_cache.jspf" %> <% Label label = Label.getInstance(); com.websina.bean.Report report = (com.websina.bean.Report)session.getAttribute("summary_report"); java.util.Map summary = null; if (report != null) { summary = report.getSummary(); } if (summary == null) { out.print("
"); out.print(" 
 
"+MessageCode.get("servlet.report.no_summary_report")); out.print("
"); return; } String xName = report.getXName(); String yName = report.getYName(); String projectId = report.getProjectId(); Project conf = Project.getInstance(projectId); DateTime dateTime = (DateTime)session.getAttribute("datetime"); String[] x = null; String[] xDisplay = null; String[] y = null; String[] yDisplay = null; int[] total = null; if ("responsible".equalsIgnoreCase(xName)) { com.websina.util.Field field = conf.getAccess().getUsers("edit"); x = field.getValue(); xDisplay = field.getText(); } else { x = (String[])summary.keySet().toArray(new String[0]); xDisplay = x; } if ("responsible".equalsIgnoreCase(yName)) { com.websina.util.Field field = conf.getAccess().getUsers("edit"); y = field.getValue(); yDisplay = field.getText(); } else { java.util.HashSet set = new java.util.HashSet(); for (int i=0; i
 
<%=conf.getName()%> Summary Report
<%=label.get(yName, projectId)%> versus <%=label.get(xName, projectId)%>
<%=dateTime.localTime()%>

<% for (int i=0; i <% } %> <% for (int i=0; i <% for (int j=0; j <% } %> <% } %> <% for (int j=0; j<=x.length; j++) { %> <% } %>
  <%= xDisplay[i] %>Total 
<%= yDisplay[i] %>  <%= count %><%=xTotal%>
Total <%=total[j] %>
align=right>  
Export