X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_svc.cgi;h=ec5f321dda975ad33731841fbe2b86d34a583e30;hb=98f6d91ec7eaa907204afbfeb90ede1e3bff656d;hp=6198a1aec1d044a19169b78eaedd88fe50885f62;hpb=633c48448d9468690b7ad77eb6ff7c660a286658;p=freeside.git diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 6198a1aec..ec5f321dd 100755 --- a/httemplate/browse/part_svc.cgi +++ b/httemplate/browse/part_svc.cgi @@ -1,44 +1,4 @@ -% -% -%#code duplication w/ edit/part_svc.cgi, should move this hash to part_svc.pm -%my %flag = ( -% '' => '', -% 'D' => 'Default', -% 'F' => 'Fixed (unchangeable)', -% 'S' => 'Selectable choice', -% #'M' => 'Manual selection from inventory', -% 'M' => 'Manual selected from inventory', -% #'A' => 'Automatically fill in from inventory', -% 'A' => 'Automatically filled in from inventory', -% 'X' => 'Excluded', -%); -% -%my %search; -%if ( $cgi->param('showdisabled') ) { -% %search = (); -%} else { -% %search = ( 'disabled' => '' ); -%} -% -%my @part_svc = -% sort { $a->getfield('svcpart') <=> $b->getfield('svcpart') } -% qsearch('part_svc', \%search ); -%my $total = scalar(@part_svc); -% -%my %num_active_cust_svc = map { $_->svcpart => $_->num_cust_svc } @part_svc; -% -%if ( $cgi->param('orderby') eq 'active' ) { -% @part_svc = sort { $num_active_cust_svc{$b->svcpart} <=> -% $num_active_cust_svc{$a->svcpart} } @part_svc; -%} elsif ( $cgi->param('orderby') eq 'svc' ) { -% @part_svc = sort { lc($a->svc) cmp lc($b->svc) } @part_svc; -%} -% -%my %inventory_class = (); -% -% - -<% include("/elements/header.html",'Service Definition Listing', menubar( 'Main Menu' => $p) ) %> +<% include('/elements/header.html', 'Service Definition Listing') %>