diff options
| author | jeff <jeff> | 2010-05-22 19:49:20 +0000 |
|---|---|---|
| committer | jeff <jeff> | 2010-05-22 19:49:20 +0000 |
| commit | 3e3c9fe57cd2b6dd0467b37b470892f0e448f300 (patch) | |
| tree | f6bddc5fadbbc0106ac75d6d11349bf0cdf9bab8 /httemplate/search/elements/search.html | |
| parent | 092f7a9513b9de30a2b936865667daf18a07a810 (diff) | |
improved fcc 477 report #7783
Diffstat (limited to 'httemplate/search/elements/search.html')
| -rw-r--r-- | httemplate/search/elements/search.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index 1312cac41..b97a9b321 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -171,6 +171,10 @@ Example: % <% include('search-xls.html', header=>$header, rows=>$rows, opt=>\%opt ) %> % +% } elsif ( $type eq 'xml' ) { +% +<% include('search-xml.html', rows=>$rows, opt=>\%opt ) %> +% % } else { # regular HTML % <% include('search-html.html', @@ -194,7 +198,7 @@ my(%opt) = @_; my $curuser = $FS::CurrentUser::CurrentUser; -my $type = $cgi->param('_type') =~ /^(csv|\w*\.xls|select|html(-print)?)$/ +my $type = $cgi->param('_type') =~ /^(csv|\w*\.xls|xml|select|html(-print)?)$/ ? $1 : 'html' ; my %align = ( @@ -223,9 +227,13 @@ if($type =~ /csv|xls/) { } while ( exists($h->[$i]) ); } +# wtf? $opt{disable_download} = 0 if $opt{disable_download} && $curuser->access_right('Configuration download'); +$opt{disable_download} = 1 + if $opt{really_disable_download}; + my @link_agentnums = (); my $null_link = ''; if ( $opt{'agent_virt'} ) { |
