1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Gervase Markham <gerv@gerv.net>
23
# This template has no interface. However, to use it, you need to fulfill
24
# the interfaces of the templates it contains.
27
[% PROCESS global/variables.none.tmpl %]
29
[% PROCESS global/header.html.tmpl
30
title = "Generate Graphical Report"
31
onload = "selectProduct(document.forms['reportform']);chartTypeChanged()"
34
[% PROCESS "search/search-report-select.html.tmpl" %]
37
Choose one or more fields as your axes, and then refine your set of
38
[% terms.bugs %] using the rest of the form.
41
<script type="text/javascript"><!--
42
[%# The Y-axis fields are not used for pie charts %]
43
function chartTypeChanged() {
44
// format[2] is the pie chart radio button
45
if (document.reportform.format[2].checked == true) {
46
document.reportform.y_axis_field.disabled = true;
47
document.reportform.cumulate[0].disabled = true;
48
document.reportform.cumulate[1].disabled = true;
50
document.reportform.y_axis_field.disabled = false;
51
document.reportform.cumulate[0].disabled = false;
52
document.reportform.cumulate[1].disabled = false;
58
[% button_name = "Generate Report" %]
60
<form method="get" action="report.cgi" name="reportform">
62
<table align="center">
65
<b>Vertical Axis:</b><br>
66
<noscript><small>(not for pie charts)</small><br></noscript>
67
[% PROCESS select name = 'y_axis_field' %]<br>
69
<b>Plot Data Sets:</b><br>
70
<input type="radio" name="cumulate" value="0"
71
[% " checked" IF default.cumulate.0 != "1" %]>
73
<input type="radio" name="cumulate" value="1"
74
[% " checked" IF default.cumulate.0 == "1" %]>
77
<td width="150" height="150">
78
<table border="1" width="100%" height="100%">
80
<td align="center" valign="middle">
81
<b>Multiple Images:</b><br>
82
[% PROCESS select name = 'z_axis_field' %]
90
{ name => "line", description => "Line Graph" },
91
{ name => "bar", description => "Bar Chart" },
92
{ name => "pie", description => "Pie Chart" } ] %]
93
[% default.chart_format.0 = default.chart_format.0 || "bar" %]
95
[% FOREACH chart_format = chart_formats %]
96
<input type="radio" name="format"
97
value="[% chart_format.name FILTER html %]"
98
onchange="chartTypeChanged()"
99
[% " checked" IF default.chart_format.0 == chart_format.name %]>
100
[% chart_format.description FILTER html %]<br>
109
<b>Horizontal Axis:</b>
110
[% PROCESS select name = 'x_axis_field' %]<br>
111
<label for="x_labels_vertical"><b>Vertical labels:</b></label>
112
<input type="checkbox" name="x_labels_vertical" id="x_labels_vertical"
114
[% " checked" IF default.x_labels_vertical.0 == "1" %]>
123
[% PROCESS search/form.html.tmpl %]
126
<input type="submit" value="[% button_name FILTER html %]">
127
<input type="hidden" name="action" value="wrap">
130
[% PROCESS "search/boolean-charts.html.tmpl" %]
134
[% PROCESS global/footer.html.tmpl %]