1 <& elements/search.html,
2 'title' => 'Prospect Search Results',
3 'name_singular' => 'prospect',
5 'count_query' => $count_query,
10 'fields' => [ 'prospectnum',
15 [ { 'data'=>$_->contact->line, }, ];
23 '', #link to contact edit???
27 'disabled_statuspos' => 2,
32 unless $FS::CurrentUser::CurrentUser->access_right('List prospects');
36 #$search_hash{'query'} = $cgi->keywords;
43 for my $param ( @scalars ) {
44 $search_hash{$param} = scalar( $cgi->param($param) )
45 if $cgi->param($param);
50 # $search_hash{$param} = [ $cgi->param($param) ];
54 #foreach my $field (qw( signupdate )) {
56 # my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, $field);
58 # next if $beginning == 0 && $ending == 4294967295;
59 # #or $disable{$cgi->param('status')}->{$field};
61 # $search_hash{$field} = [ $beginning, $ending ];
65 my $query = FS::prospect_main->search(\%search_hash);
66 my $count_query = delete($query->{'count_query'});
67 #my @extra_headers = @{ delete($query->{'extra_headers'}) };
68 #my @extra_fields = @{ delete($query->{'extra_fields'}) };
71 my $prospect_main = shift;
72 [ "${p}view/prospect_main.html?", 'prospectnum' ];