From dad297316ae335ccc20e5d0546525d1c117131c0 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Tue, 29 Oct 2002 15:43:57 +0000 Subject: Bug 173005 - Add bar charts, pie charts etc. to reporting. Patch by gerv; 2xr=joel. --- template/en/default/reports/menu.html.tmpl | 8 +- template/en/default/reports/report-bar.png.tmpl | 54 +++++++ template/en/default/reports/report-line.png.tmpl | 53 +++++++ template/en/default/reports/report-pie.png.tmpl | 35 +++++ template/en/default/reports/report-table.csv.tmpl | 54 ++++--- template/en/default/reports/report-table.html.tmpl | 123 +++++----------- template/en/default/reports/report.csv.tmpl | 26 ++++ template/en/default/reports/report.html.tmpl | 156 +++++++++++++++++++++ 8 files changed, 389 insertions(+), 120 deletions(-) create mode 100644 template/en/default/reports/report-bar.png.tmpl create mode 100644 template/en/default/reports/report-line.png.tmpl create mode 100644 template/en/default/reports/report-pie.png.tmpl create mode 100644 template/en/default/reports/report.csv.tmpl create mode 100644 template/en/default/reports/report.html.tmpl (limited to 'template/en/default/reports') diff --git a/template/en/default/reports/menu.html.tmpl b/template/en/default/reports/menu.html.tmpl index d93717532..4e21bf4d6 100644 --- a/template/en/default/reports/menu.html.tmpl +++ b/template/en/default/reports/menu.html.tmpl @@ -29,7 +29,7 @@ %]
- Bugzilla allows you to view and track the state of your bug database in + Bugzilla allows you to view and track the state of the bug database in all manner of exciting ways.
@@ -46,6 +46,12 @@ - tables of bug counts in 1, 2 or 3 dimensions, as HTML or CSV. +- | -
- [% tbl FILTER html %]- |
-
- | - [% col_field_disp FILTER html %] + |
+ [% tbl_disp %] |
|||
+ | ++ [% col_field_disp FILTER html %] + | +||||
- [% row_field_disp FILTER html %] - | -+ | ||||
+ [% row_field_disp FILTER html %] + | +[% classes = [ [ "t1", "t2" ] , [ "t3", "t4" ] ] %] @@ -150,8 +109,7 @@ [% col_idx = 1 - col_idx %] | [% IF data.$tbl.$col.$row AND data.$tbl.$col.$row > 0 %] - [% data.$tbl.$col.$row %] @@ -161,8 +119,7 @@ | [% END %]- [% row_total %] [% grand_total = grand_total + row_total %] @@ -179,8 +136,7 @@ [% NEXT IF col == "" %] |
-
[% col_totals.$col %]
@@ -188,24 +144,13 @@
[% END %]
- [% grand_total %]
+ [% grand_total %]
|
|
[% query FILTER html %]
+[% END %] + ++ [% formats = [ { name => "pie", description => "Pie" }, + { name => "bar", description => "Bar" }, + { name => "line", description => "Line" }, + { name => "table", description => "Table" } ] %] + + [% formaturl = "report.cgi?$switchbase&width=$width&height=$height" _ + "&action=wrap" %] + [% FOREACH other_format = formats %] + [% NEXT IF other_format.name == "pie" AND row_field %] + [% UNLESS other_format.name == format %] + + [% END %] + [% other_format.description %] + [% "" UNLESS other_format.name == format %] | + [% END %] + CSV + | + + [% IF format != "table" %] ++ + | + + [% sizeurl = "report.cgi?$switchbase&action=wrap&format=$format" %] +
+ Taller + Thinner * + Fatter + Shorter + |
+ [% END %]
+
+ [% IF format == "table" %] + Edit + this report + [% ELSE %] + Edit this report + [% END %] +
+ +