X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch-html.html;h=e5e6ca9542c19cd1675e69b2c4d223078a97521c;hb=7b125e587a4d1ee0aca692e23ea7897f671855ae;hp=98f9c4476c9b46982d7de2cd0921a026d427e27b;hpb=4317635c55495a4c89413e59bd55f64aa001e38c;p=freeside.git diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html index 98f9c4476..e5e6ca954 100644 --- a/httemplate/search/elements/search-html.html +++ b/httemplate/search/elements/search-html.html @@ -1,3 +1,4 @@ +% % if ( exists($opt{'redirect'}) && $opt{'redirect'} % && scalar(@$rows) == 1 && $total == 1 % && $type ne 'html-print' @@ -102,7 +103,7 @@ % $cgi->delete('maxrecords'); % $cgi->param('_dummy', 1); - ( show % foreach my $max ( map { $_ * $confmax } qw( 1 5 10 25 ) ) { @@ -143,18 +144,18 @@ Download full results
% $cgi->param('_type', "$xlsname.xls" ); - as query_string %>">Excel spreadsheet
+ as Excel spreadsheet
% $cgi->param('_type', 'csv'); - as query_string %>">CSV file
+ as CSV file
% if ( defined($opt{xml_elements}) ) { % $cgi->param('_type', 'xml'); - as query_string %>">XML file
+ as XML file
% } % $cgi->param('_type', 'html-print'); - as query_string %>">printable copy + as printable copy % $cgi->param('_type', "html" ); @@ -464,7 +465,7 @@ my $confmax = $args{'confmax'}; my $maxrecords = $args{'maxrecords'}; my $offset = $args{'offset'}; my %opt = %{ $args{'opt'} }; -my $self_url = $opt{'url'} || $cgi->url('-path_info' => 1, '-full' =>1); +my $self_url = $opt{'url'} || $cgi->self_url; my $count_sth = dbh->prepare($opt{'count_query'}) or die "Error preparing $opt{'count_query'}: ". dbh->errstr;