X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct_pop.cgi;h=399502a707738db0d51956cbd30d9a7a90474eb6;hp=23caa794baed3c751a3f18c7516ebfafbb0e1c5d;hb=b4206f7dd4e3f00b1fac73245ade1d28388f2ad3;hpb=c14a267229fc0d6f2d2afdebab3bd34d825df2ef diff --git a/httemplate/edit/svc_acct_pop.cgi b/httemplate/edit/svc_acct_pop.cgi index 23caa794b..399502a70 100755 --- a/httemplate/edit/svc_acct_pop.cgi +++ b/httemplate/edit/svc_acct_pop.cgi @@ -1,17 +1,7 @@ + <% -# - -use strict; -use vars qw( $cgi $svc_acct_pop $action $query $hashref $p1 ); -use CGI; -use CGI::Carp qw(fatalsToBrowser); -use FS::UID qw(cgisuidsetup); -use FS::Record qw(qsearch qsearchs fields); -use FS::CGI qw(header menubar popurl); -use FS::svc_acct_pop; -$cgi = new CGI; -&cgisuidsetup($cgi); +my $svc_acct_pop; if ( $cgi->param('error') ) { $svc_acct_pop = new FS::svc_acct_pop ( { map { $_, scalar($cgi->param($_)) } fields('svc_acct_pop') @@ -23,13 +13,13 @@ if ( $cgi->param('error') ) { } else { #adding $svc_acct_pop = new FS::svc_acct_pop {}; } -$action = $svc_acct_pop->popnum ? 'Edit' : 'Add'; -$hashref = $svc_acct_pop->hashref; +my $action = $svc_acct_pop->popnum ? 'Edit' : 'Add'; +my $hashref = $svc_acct_pop->hashref; -$p1 = popurl(1); -print header("$action POP", menubar( +my $p1 = popurl(1); +print header("$action Access Number", menubar( 'Main Menu' => popurl(2), - 'View all POPs' => popurl(2). "browse/svc_acct_pop.cgi", + 'View all Access Numbers' => popurl(2). "browse/svc_acct_pop.cgi", )); print qq!Error: !, $cgi->param('error'), @@ -54,7 +44,7 @@ Local {popnum} ? "Apply changes" : "Add Access Number", qq!">!; print <