home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Shareware / Programare / bugzero / jsp / report.jsp < prev    next >
Encoding:
Text File  |  2004-10-01  |  3.0 KB  |  90 lines

  1. <%@ page
  2.     import="com.websina.bean.*,com.websina.util.*,com.websina.util.log.Log"
  3. %>
  4. <html>
  5. <head>
  6. <title>Reports and Statistics</title>
  7. </head>
  8. <body topmargin=0>
  9. <%@ include file="_header.jspf" %>
  10. <%      
  11.   if (!person.isAllowed("report")) {
  12.     response.sendRedirect("home.jsp");
  13.     return;
  14.   }
  15.   String parent = "report.jsp";
  16.   com.websina.bean.Filter filter = null;
  17.   String baseUrl = contextPath+"/servlet/report/bugzeroReport.jpg";
  18.   String projectId = person.getProject();
  19.   Project conf = Project.getInstance(projectId);
  20.  
  21.   String[] optionList;
  22.   String responsible= null;
  23.   if (conf.isFieldEnabled("responsible", person.getGroup())) {
  24.     responsible = "responsible";
  25.   }
  26. %>
  27.  
  28. <center>
  29. <form name="reportForm" method="post" action="<%=baseUrl%>" <%=acceptCharset%> onSubmit="return false">
  30. <table cellspacing=0 cellpadding=0 border=0>
  31. <tr><td height=36>
  32. <b><%=label.get("report", projectId)%></b>
  33. </td></tr>
  34. <tr><td>
  35. <table cellspacing=0 cellpadding=2 border=0 width=100% class="box">
  36. <tr class="header"><td colspan=3>
  37. <%=label.get("define_report")%>
  38. </td></tr>
  39. <tr><td height=32>
  40.      <select name="report_type"
  41.      onChange="set_report(reportForm);">
  42.   <option value="summary_report"><%=label.get("summary_report")%></option>
  43.   <option value="current_count"><%=label.get("current_counts")%></option>
  44.   <option value="trend"><%=label.get("trend_metrics")%></option>
  45.   </select></td>
  46. <td>   of   <select name="x_name">
  47.     <%=ListMaker.makeOptionList(label, projectId, conf.reportFields(person.getGroup()), "state") %>
  48.     </select></td>
  49.  
  50. <td id="summary_only" style="display:inline;">
  51.   versus <select name="y_name" style="margin-top:2;">
  52.        <%=ListMaker.makeOptionList(label, projectId, conf.reportFields(person.getGroup()), responsible) %>
  53.     </select>
  54. </td>
  55. <td id="trend_only" style="display:none;">
  56.   for the last
  57. <input name="time_period" size=2>
  58. <select name="time_unit" style="margin-top:2;">
  59.        <option value='week' selected><%=label.get("week")%></option>
  60.        <option value='month'><%=label.get("month")%></option>
  61.        <option value='day'><%=label.get("day")%></option>
  62.        <option value='year'><%=label.get("year")%></option>
  63.     </select>
  64. </td></tr>
  65. </table>
  66. </td></tr>
  67.  
  68. <tr><td> </td></tr>
  69. <tr><td>
  70. <table cellspacing=1 cellpadding=2 border=0 width=100% class="box">
  71. <tr><td colspan=2 align=center>
  72.      <input class="button" type="button" value="<%=label.get("show_report_button")%>" 
  73.       onClick="<%=onClick(conf, person, "reportForm")%> do_report(reportForm)">
  74.  <input class="button" type=reset value="<%=label.get("clear_button")%>">
  75.     </td></tr>
  76. <%@ include file="_queryform.jspf" %>
  77. <tr><td colspan=2 align=center>
  78.      <input class="button" type="button" value="<%=label.get("show_report_button")%>" 
  79.       onClick="<%=onClick(conf, person, "reportForm")%> do_report(reportForm)">
  80.  <input class="button" type=reset value="<%=label.get("clear_button")%>">
  81. </td></tr>
  82. </table>
  83. </td></tr>
  84. </table>
  85.  
  86. </form>
  87. </center>
  88.  
  89. </body></html>
  90.