%doc>
Simple display front-end for reports that produce some kind of data table,
which the user can request as an Excel spreadsheet. /elements/header.html
and /elements/footer.html are included automatically, so don't include them
again.
This element defines "total", "shaded", and "totalshaded" CSS classes. For
anything else, insert a
% foreach my $rowinfo (@rows) {
{class} ? ' class="'.$rowinfo->{class}.'"' : ''%>>
% my $thisrow = shift @cells;
% foreach my $cell (@$thisrow) {
% next if !ref($cell); # placeholders
% my $td = $cell->{header} ? 'th' : 'td';
% my $style = '';
% $style .= " rowspan=".$cell->{rowspan}
% if exists $cell->{rowspan} && $cell->{rowspan} > 1;
% $style .= " colspan=".$cell->{colspan}
% if exists $cell->{colspan} && $cell->{colspan} > 1;
% $style .= ' class="' . $cell->{class} . '"' if $cell->{class};
% if ($cell->{bypass_filter}) {
<<%$td%><%$style%>><% $cell->{value} %><%$td%>>
% } else {
<<%$td%><%$style%>><% $cell->{value} |h %><%$td%>>
% }
% }
% }
<% $foot %>
% unless ( $suppress_footer ) {
<& /elements/footer.html &>
% }
% }
<%args>
$title
@rows
@cells
$head => ''
$foot => ''
$table_width => "100%"
$table_class => "report"
$suppress_header => undef
$suppress_footer => undef
%args>