home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 July
/
CMCD0703.ISO
/
Software
/
Freeware
/
Programare
/
bugzero
/
jsp
/
report.jsp
< prev
next >
Wrap
Text File
|
2003-06-05
|
3KB
|
115 lines
<%@ page
import="com.websina.bean.*,com.websina.util.*,com.websina.util.log.Log"
%>
<html>
<head>
<title>Reports and Statistics</title>
<script LANGUAGE="JavaScript" src="script/query.js"></script>
</head>
<body topmargin=0>
<%@ include file="_cache.jspf" %>
<%@ include file="_header.jspf" %>
<%
String baseUrl = contextPath+"/servlet/report/bugzeroReport.jpg";
String projectId = person.getProject();
Project conf = Project.getInstance(projectId);
String[] optionList;
%>
<center>
<font size=+1><b><%=label.get("report", projectId)%></b></font>
<p>
<form name="reportForm" method="post" action="<%=baseUrl%>" onSubmit="return false;">
<input type="hidden" name="report_type">
<table>
<tr><td height=40>
<font color="#702d07"><b>You can create three kinds of reports by clicking
on the corresponding link:</b></font>
</td><td height=40>
</table>
<table cellspacing=2 cellpadding=2 border=0>
<tr><td>
<table cellspacing=1 cellpadding=1 border=1>
<tr><td bgcolor="#cccccc"><a href="#" class="clickme"
TITLE="click to get <%=label.get("summary_report")%>"
onClick="do_report(reportForm, 'summary_report')">
<%=label.get("summary_report")%>
<img src="img/report.gif" border=0 align=middle>
</a>
</td></tr>
<tr><td bgcolor="#cccccc"><a href="#" class="clickme"
TITLE="click to chart <%=label.get("current_counts")%>"
onClick="do_report(reportForm, 'current_count')">
<%=label.get("current_counts")%>
<img src="img/reports.gif" border=0 align=middle>
</a>
</td></tr>
<tr><td bgcolor="#cccccc"><a href="#" class="clickme"
TITLE="click to chart <%=label.get("trend_metrics")%>"
onClick="do_report(reportForm, 'trend')">
<%=label.get("trend_metrics")%>
<img src="img/reports.gif" border=0 align=middle>
</a>
</td>
</tr>
</table>
</td><td>
<table cellspacing=0 cellpadding=2>
<tr bgcolor="#cccccc"><td>by <select name="x_name">
<%=ListMaker.makeOptionList(label, projectId, conf.reportFields(), "state") %>
</select>
</td></tr>
</table>
</td><td>
<table cellspacing=0 cellpadding=2>
<tr><td align=center bgcolor="#cccccc">
versus <select name="y_name">
<%=ListMaker.makeOptionList(label, projectId, conf.reportFields(), "responsible") %>
</select>
</td></tr>
<tr><td> </td></tr>
<tr><td align=center bgcolor="#cccccc">
for the last
<input name="time_period" size=2>
<select name="time_unit">
<option value='week' selected><%=label.get("week")%></option>
<option value='month'><%=label.get("month")%></option>
<option value='day'><%=label.get("day")%></option>
<option value='year'><%=label.get("year")%></option>
</select>
</td></tr>
</table>
</td></tr>
</table>
<table>
<tr><td height=40>
<font color="#702d07"><b>For each kind of reports, you can set constraints below or </b></font>
</td><td height=40>
<input type=reset value="<%=label.get("reset_button")%>">
(to no constraint)
</td>
</tr>
</table>
<%@ include file="_queryform.jspf" %>
<table cellspacing=4 cellpadding=2 border=0>
<tr>
<td align=center bgcolor="#e0e0e0"><%=label.get("responsible", projectId)%><br>
<select name=responsible size=4 multiple>
<%=ListMaker.makeOptionList(conf.getAccess().getUsers("edit"), default_option) %>
</select></td>
</tr></table>
</form>
</center>
</body></html>