X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fgrid-report.html;h=efc00972517ce6ace9c1e7ef39c9d256991e73f7;hb=7b0bbc4117a7959b9f7b7b2cf999b8188ba34160;hp=cb06b2bd6020f14f7b382d113645a85d44f827aa;hpb=af4e5e495388889f3b8d3d9bb385064fb4b6d539;p=freeside.git
diff --git a/httemplate/search/elements/grid-report.html b/httemplate/search/elements/grid-report.html
index cb06b2bd6..efc009725 100644
--- a/httemplate/search/elements/grid-report.html
+++ b/httemplate/search/elements/grid-report.html
@@ -5,6 +5,9 @@ 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;
@@ -167,21 +173,33 @@ as ">Excel spreadsheet
% 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 .= " 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>