diff options
author | Mark Wells <mark@freeside.biz> | 2012-08-28 18:44:42 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-08-28 18:44:42 -0700 |
commit | f98d0226901f7355652add424783f7f207aef596 (patch) | |
tree | da15f0195ea193fcabb7ddbc290690b50e5a4a08 /httemplate/search/elements/search-csv.html | |
parent | 7acc76e0ead0d88cb225c88016c778c8feb9a075 (diff) |
show footers in XLS and CSV reports, #18823
Diffstat (limited to 'httemplate/search/elements/search-csv.html')
-rw-r--r-- | httemplate/search/elements/search-csv.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/httemplate/search/elements/search-csv.html b/httemplate/search/elements/search-csv.html index 9eb1b66d1..90230e6dc 100644 --- a/httemplate/search/elements/search-csv.html +++ b/httemplate/search/elements/search-csv.html @@ -27,10 +27,21 @@ % $csv->combine(@$row); #or die $csv->status; % } % -% <% $csv->string %>\ % % } +% +% if ( $opt{'footer'} and !$opt{'no_csv_header'} ) { +% my @footer; +% foreach my $item (@{ $opt{'footer'} }) { +% if ( ref($item) eq 'CODE' ) { +% $item = &{$item}(); +% } +% push @footer, $item; +% } +% $csv->combine(@footer); +<% $csv->string %>\ +% } <%init> my %args = @_; |