diff options
author | ivan <ivan> | 2004-01-28 01:39:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-01-28 01:39:07 +0000 |
commit | bb6dfc07af5c7fee85f2c76ee22a833b41e13c36 (patch) | |
tree | 46d2cd7598f71355dcd4c07fc77cf2d4d6ec25c3 /httemplate/search/svc_domain.cgi | |
parent | ff15db0f2fa18e67498d0097797b667a81b51f71 (diff) |
add service definition browse by number of active services
Diffstat (limited to 'httemplate/search/svc_domain.cgi')
-rwxr-xr-x | httemplate/search/svc_domain.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/search/svc_domain.cgi b/httemplate/search/svc_domain.cgi index c0acf1143..948b1d9ae 100755 --- a/httemplate/search/svc_domain.cgi +++ b/httemplate/search/svc_domain.cgi @@ -23,6 +23,13 @@ if ( $query eq 'svcnum' ) { 'svcnum' => $_->svcnum, 'pkgnum' => '', }), qsearch('svc_domain',{}); +} elsif ( $cgi->param('svcpart') =~ /^(\d+)$/ ) { + @svc_domain = + qsearch( 'svc_domain', {}, '', + " WHERE $1 = ( SELECT svcpart FROM cust_svc ". + " WHERE cust_svc.svcnum = svc_domain.svcnum ) " + ); + $sortby=\*svcnum_sort; } else { $cgi->param('domain') =~ /^([\w\-\.]+)$/; my($domain)=$1; |