diff options
author | ivan <ivan> | 2001-09-06 20:42:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-09-06 20:42:00 +0000 |
commit | 57d69d5c1f98f778a0df82795ce21ee7bd21042a (patch) | |
tree | 63f890cf25311b66c712933c84f64e43718039cd /httemplate/browse | |
parent | db1b6ebfe35aba1f4d2580b13a0a74ac317784ba (diff) |
finally fix part_svc!!!
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-x | httemplate/browse/part_svc.cgi | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 1306ac057..cfb1ad82b 100755 --- a/httemplate/browse/part_svc.cgi +++ b/httemplate/browse/part_svc.cgi @@ -1,4 +1,4 @@ -<!-- $Id: part_svc.cgi,v 1.3 2001-09-04 14:44:06 ivan Exp $ --> +<!-- $Id: part_svc.cgi,v 1.4 2001-09-06 20:41:59 ivan Exp $ --> <%= header('Service Definition Listing', menubar( 'Main Menu' => $p) ) %> Services are items you offer to your customers.<BR><BR> @@ -15,14 +15,11 @@ } qsearch('part_svc',{}) ) { my($hashref)=$part_svc->hashref; my($svcdb)=$hashref->{svcdb}; - my(@rows)= - grep $hashref->{${svcdb}.'__'.$_.'_flag'}, - map { /^${svcdb}__(.*)$/; $1 } - grep ! /_flag$/, - grep /^${svcdb}__/, - fields('part_svc') - ; - my($rowspan)=scalar(@rows) || 1; + my @fields = + grep { $_ ne 'svcnum' && $part_svc->part_svc_column($_)->columnflag } + fields($svcdb); + + my($rowspan)=scalar(@fields) || 1; my $url = "${p}edit/part_svc.cgi?$hashref->{svcpart}"; %> @@ -35,9 +32,8 @@ <%= $hashref->{svcdb} %></TD> <% my($n1)=''; - my($row); - foreach $row ( @rows ) { - my($flag)=$part_svc->getfield($svcdb.'__'.$row.'_flag'); + foreach my $field ( @fields ) { + my $flag = $part_svc->part_svc_column($field)->columnflag; %> <%= $n1 %><TD><%= $row %></TD><TD> @@ -45,7 +41,7 @@ elsif ( $flag eq "F" ) { print "Fixed"; } else { print "(Unknown!)"; } %> - </TD><TD><%= $part_svc->getfield($svcdb."__".$row) %></TD> + </TD><TD><%= $part_svc->part_svc_column($field)->columnvalue%></TD> <% $n1="</TR><TR>"; } %> |