X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch.html;h=40c71d812c651781d5db41cad4eb7e29c752db1e;hb=37f181cc0b65e4509dd68593cb7555db42d8e088;hp=e1bc02450927b5ee6d3f79c328eba3581bc14f6a;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index e1bc02450..40c71d812 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -93,6 +93,8 @@ Example: #disabling things 'disable_download' => '', # set true to hide the CSV/Excel download links + 'disable_total' => '', # set true to hide the total" + 'disable_maxselect' => '', # set true to disable record/page selection 'disable_nonefound' => '', # set true to disable the "No matching Xs found" # message @@ -291,6 +293,17 @@ Example: <% include( '/elements/header-popup.html', $opt{'title'} ) %> +% } elsif ( $type eq 'select' ) { + + <% include( '/elements/header-popup.html', $opt{'title'} ) %> + <% defined($opt{'html_init'}) + ? ( ref($opt{'html_init'}) + ? &{$opt{'html_init'}}() + : $opt{'html_init'} + ) + : '' + %> + % } else { % % my @menubar = (); @@ -330,14 +343,18 @@ Example:
- <% $total %> total <% $opt{'name'} %> +% if (! $opt{'disable_total'}) { + <% $total %> total <% $opt{'name'} %> +% } -% if ( $confmax && $total > $confmax && $type ne 'html-print' ) { +% if ( $confmax && $total > $confmax +% && ! $opt{'disable_maxselect'} +% && $type ne 'html-print' ) +% { % $cgi->delete('maxrecords'); % $cgi->param('_dummy', 1); %# ( show % foreach my $max ( map { $_ * $confmax } qw( 1 5 10 25 ) ) { @@ -770,7 +787,7 @@ if ( $opt{'disableable'} ) { } -my $type = $cgi->param('_type') =~ /^(csv|\w*\.xls|html(-print)?)$/ +my $type = $cgi->param('_type') =~ /^(csv|\w*\.xls|select|html(-print)?)$/ ? $1 : 'html'; my $limit = '';