X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fgrid-report.html;h=efc00972517ce6ace9c1e7ef39c9d256991e73f7;hb=95cffb2e514c6117fc3eb111581d387b5d0b4e77;hp=98e81785f3b4f40f49fb47cac2643e57eb00b02e;hpb=4d7a5f06cbab1f4f9614d9915641557f4edad1cf;p=freeside.git diff --git a/httemplate/search/elements/grid-report.html b/httemplate/search/elements/grid-report.html index 98e81785f..efc009725 100644 --- a/httemplate/search/elements/grid-report.html +++ b/httemplate/search/elements/grid-report.html @@ -141,13 +141,17 @@ Usage: $m->print($output); % } else { +% unless ( $suppress_header ) { <& /elements/header.html, $title &> +% } <% $head %> % my $myself = $cgi->self_url; +% unless ( $suppress_header ) {

Download full reports
as ">Excel spreadsheet

+% } - +
% foreach my $rowinfo (@rows) { {class} ? ' class="'.$rowinfo->{class}.'"' : ''%>> % my $thisrow = shift @cells; @@ -169,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} %>> +% } else { <<%$td%><%$style%>><% $cell->{value} |h %>> +% } % } % }
<% $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