1 <& elements/search.html,
2 'title' => 'Prospect Search Results',
3 'name_singular' => 'prospect',
5 'count_query' => $count_query,
11 'fields' => [ 'prospectnum',
16 [ { 'data'=>$_->contact->line, }, ];
23 my $pr = shift->part_referral;
24 $pr ? $pr->referral : '';
29 '', #link to contact edit???
34 'disabled_statuspos' => 2,
39 unless $FS::CurrentUser::CurrentUser->access_right('List prospects');
43 #$search_hash{'query'} = $cgi->keywords;
50 for my $param ( @scalars ) {
51 $search_hash{$param} = scalar( $cgi->param($param) )
52 if $cgi->param($param);
57 # $search_hash{$param} = [ $cgi->param($param) ];
61 #foreach my $field (qw( signupdate )) {
63 # my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, $field);
65 # next if $beginning == 0 && $ending == 4294967295;
66 # #or $disable{$cgi->param('status')}->{$field};
68 # $search_hash{$field} = [ $beginning, $ending ];
72 my $query = FS::prospect_main->search(\%search_hash);
73 my $count_query = delete($query->{'count_query'});
74 #my @extra_headers = @{ delete($query->{'extra_headers'}) };
75 #my @extra_fields = @{ delete($query->{'extra_fields'}) };
78 my $prospect_main = shift;
79 [ "${p}view/prospect_main.html?", 'prospectnum' ];