%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 $cell->{rowspan} > 1;
% $style .= " colspan=".$cell->{colspan} if $cell->{colspan} > 1;
% $style .= ' class="' . $cell->{class} . '"' if $cell->{class};
<<%$td%><%$style%>><% $cell->{value} |h %><%$td%>>
% }
% }
<% $foot %>
<& /elements/footer.html &>
% }
<%args>
$title
@rows
@cells
$head => ''
$foot => ''
%args>