-
- [% row_field FILTER html %]
- |
-
-
-
-[% classes = [ [ "t1", "t2" ] , [ "t3", "t4" ] ] %]
-[% col_idx = 0 %]
-[% row_idx = 0 %]
-
-
- [% IF col_names %]
-
-
- |
- [% FOREACH col = col_names %]
- [%# If no col header, skip the col. This makes display look right if
- there's no defined X axis. Not doing this gives us two cols. %]
- [% NEXT IF col == "" %]
- [% col_idx = 1 - col_idx %]
-
- [% col FILTER html %]
- |
- [% END %]
-
- Total
- |
-
- [% END %]
-
- [% FOREACH row = row_names %]
- [% row_idx = 1 - row_idx %]
-
-
- [% row FILTER html %]
- |
- [% FOREACH col = col_names %]
- [% NEXT IF col == "" %]
- [% col_idx = 1 - col_idx %]
-
- [% IF data.$row.$col AND data.$row.$col > 0 %]
-
- [% data.$row.$col %]
- [% ELSE %]
- .
- [% END %]
- |
- [% END %]
-
- [% row_totals.$row %]
- |
-
- [% END %]
-
-
- [% row_idx = 1 - row_idx %]
-
- Total
- |
- [% FOREACH col = col_names %]
- [% NEXT IF col == "" %]
-
- [% col_totals.$col %]
- |
- [% END %]
-
-
- [% grand_total %]
-
- |
-
-
-
-
- |
-
-