X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_domain.cgi;h=713b2ccd758af5eae4e88175001a120dd3e1c5b9;hb=c980083d90ee8796d8241686390048aee6d4fff9;hp=8ffc9d789c7ea70cf9ea5fe687a3ef20b7bf542d;hpb=3d671921441ba8422650b54435a1959ad1d4c71d;p=freeside.git
diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi
index 8ffc9d789..713b2ccd7 100755
--- a/httemplate/edit/svc_domain.cgi
+++ b/httemplate/edit/svc_domain.cgi
@@ -1,5 +1,5 @@
<%
-#
+#
use strict;
use vars qw( $cgi $action $svcnum $svc_domain $pkgnum $svcpart $part_svc
@@ -57,13 +57,15 @@ if ( $cgi->param('error') ) {
$svcnum='';
#set fixed and default fields from part_svc
- my($field);
- foreach $field ( fields('svc_domain') ) {
- if ( $part_svc->getfield('svc_domain__'. $field. '_flag') ne '' ) {
- $svc_domain->setfield($field,$part_svc->getfield('svc_domain__'. $field) );
- }
+ foreach my $part_svc_column (
+ grep { $_->columnflag } $part_svc->all_part_svc_column
+ ) {
+ $svc_domain->setfield( $part_svc_column->columnname,
+ $part_svc_column->columnvalue,
+ );
}
+
}
}
$action = $svcnum ? 'Edit' : 'Add';
@@ -75,7 +77,7 @@ $otaker = getotaker;
$domain = $svc_domain->domain;
$p1 = popurl(1);
-print $cgi->header( '-expires' => 'now' ), header("$action $svc", '');
+print header("$action $svc", '');
print qq!Error: !, $cgi->param('error'),
" "
@@ -98,19 +100,7 @@ print qq!>Transfer!;
print <Domain
Purpose/Description:
-
-
- COM is for commercial, for-profit organziations
- ORG is for miscellaneous, usually, non-profit organizations
- NET is for network infrastructure machines and organizations
- EDU is for 4-year, degree granting institutions
-
-
-US state and local government agencies, schools, libraries, museums, and individuals should register under the US domain. See RFC 1480 for a complete description of the US domain
-and registration procedures.
-
+