X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fgrouped-search%2Fhtml;h=28d00404b2e64e3811240be034ca689d24e48248;hp=293da338fc0af898c7beb2a2e2bb517e0b17e634;hb=ecd038f7ae5c1ffc929f3c928ecd161eeb45d9be;hpb=a2ecb1cf6a6c084c521710f1256da082f70ba9e5 diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html index 293da338f..28d00404b 100644 --- a/httemplate/search/elements/grouped-search/html +++ b/httemplate/search/elements/grouped-search/html @@ -11,8 +11,8 @@ my $redirect; if ( $group_info->{num} == 0 ) { $redirect = $opt{'redirect_empty'}; + $redirect = &$redirect($cgi) if $redirect && ref($redirect) eq 'CODE'; if ($redirect) { - $redirect = &$redirect($cgi) if ref($redirect) eq 'CODE'; redirect( $redirect ); } else { # just print this stuff and exit $m->comp('/elements/header.html', $opt{'title'}); @@ -106,14 +106,18 @@ if ($group_info->{num} > 1) { &>
+% if ( $group->num_rows > 0 ) { +

<% emt('[quant,_1,_2]', $group->num_rows, $opt{name_singular}) %> +

%# download links -

<% emt('Download full results') %>
+

<% emt('Download results:') %> % $cgi->param('type', 'xls'); -<% emt('as Excel spreadsheet') %>
+<% emt('Spreadsheet') %> |  % $cgi->param('type', 'html-print'); -<% emt('as printable copy') %>
+<% emt('webpage') %> % $cgi->delete('type');

+% } <% $pager %>