1 <& elements/search.html,
2 'title' => 'Prospect Search Results',
3 'name_singular' => 'prospect',
5 'count_query' => $count_query,
10 'fields' => [ 'prospectnum',
15 [ { 'data' => $_->line, }, ];
23 '', #link to contact edit???
30 unless $FS::CurrentUser::CurrentUser->access_right('List prospects');
34 #$search_hash{'query'} = $cgi->keywords;
41 for my $param ( @scalars ) {
42 $search_hash{$param} = scalar( $cgi->param($param) )
43 if $cgi->param($param);
48 # $search_hash{$param} = [ $cgi->param($param) ];
52 #foreach my $field (qw( signupdate )) {
54 # my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, $field);
56 # next if $beginning == 0 && $ending == 4294967295;
57 # #or $disable{$cgi->param('status')}->{$field};
59 # $search_hash{$field} = [ $beginning, $ending ];
63 my $query = FS::prospect_main->search(\%search_hash);
64 my $count_query = delete($query->{'count_query'});
65 #my @extra_headers = @{ delete($query->{'extra_headers'}) };
66 #my @extra_fields = @{ delete($query->{'extra_fields'}) };
69 my $prospect_main = shift;
70 [ "${p}view/prospect_main.html?", 'prospectnum' ];