3 #my $conf = new FS::Conf;
5 my($query)=$cgi->keywords;
6 $query ||= ''; #to avoid use of unitialized value errors
7 my(@svc_www, $orderby);
8 if ( $query eq 'svcnum' ) {
9 $orderby = 'ORDER BY svcnum';
11 eidiot('unimplemented');
14 my $count_query = 'SELECT COUNT(*) FROM svc_www';
18 'extra_sql' => $orderby,
21 my $link = [ "${p}view/svc_www.cgi?", 'svcnum', ];
22 #my $dlink = [ "${p}view/svc_www.cgi?", 'svcnum', ];
23 my $ulink = [ "${p}view/svc_acct.cgi?", 'usersvc', ];
27 <%= include( 'elements/search.html',
28 'title' => 'Virtual Host Search Results',
29 'name' => 'virtual hosts',
30 'query' => $sql_query,
31 'count_query' => $count_query,
32 'header' => [ '#', 'Zone', 'User', ],
33 'fields' => [ 'svcnum',
34 sub { $_[0]->domain_record->zone },
35 sub { $_[0]->svc_acct->email },