X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch-html.html;h=29e0999c999855ca94154bfad62d5dc86d8c7939;hb=7b0bbc4117a7959b9f7b7b2cf999b8188ba34160;hp=12f6c1e046710e85342a7fbb610ff3323952cd8f;hpb=379c06ccd4b984bfa8130d98f862799239a8d00c;p=freeside.git diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html index 12f6c1e04..29e0999c9 100644 --- a/httemplate/search/elements/search-html.html +++ b/httemplate/search/elements/search-html.html @@ -62,7 +62,7 @@ <% defined($opt{'html_init'}) ? ( ref($opt{'html_init'}) - ? &{$opt{'html_init'}}() + ? &{$opt{'html_init'}}($opt{html_init_data}) : $opt{'html_init'} ) : '' @@ -95,8 +95,9 @@ % { % $cgi->delete('maxrecords'); % $cgi->param('_dummy', 1); +% my $query = $m->scomp('/elements/create_uri_query'); - ( show ;maxrecords=' + this.options[this.selectedIndex].value;"> % foreach my $max ( map { $_ * $confmax } qw( 1 5 10 25 ) ) { @@ -136,22 +137,40 @@ - <% $opt{'download_label'} || 'Download full results' %>
+ <% $opt{'download_label'} || 'Download results:' %> % $cgi->param('_type', "$xlsname.xls" ); - as query_string %>">Excel spreadsheet
+% my $query = $m->scomp('/elements/create_uri_query'); + ">Spreadsheet |  % $cgi->param('_type', 'csv'); - as query_string %>">CSV file
+% my $query = $m->scomp('/elements/create_uri_query'); + ">CSV |  % if ( defined($opt{xml_elements}) ) { % $cgi->param('_type', 'xml'); - as query_string %>">XML file
+% my $query = $m->scomp('/elements/create_uri_query'); + ">XML |  % } % $cgi->param('_type', 'html-print'); - as query_string %>">printable copy +% my $query = $m->scomp('/elements/create_uri_query'); + ">webpage +%# "save search" -- for now, obey disable_download and the 'Download +%# report data' ACL, because saving a search allows the user to receive +%# copies of the data. +
+%# XXX should do a check here on whether the user already has this +%# search saved... + <& /elements/popup_link.html, + 'action' => $fsurl.'/edit/saved_search.html?title='. + uri_escape($opt{title}), + 'label' => 'Save this search', + 'actionlabel' => 'Save this search', + 'width' => 650, + 'height' => 500, + &> % $cgi->param('_type', "html" ); % } @@ -293,8 +312,8 @@ my $self_url = $cgi->url('-path_info' => 1, '-full' =>1); % } else { % $cgi->param('order_by', $field); % } -% $label = qq($label); +% my $query = $m->scomp('/elements/create_uri_query'); +% $label = qq($label); % } % % $colspan = ref($header) ? $header->{colspan} : 0;