diff options
author | ivan <ivan> | 1998-11-21 06:43:08 +0000 |
---|---|---|
committer | ivan <ivan> | 1998-11-21 06:43:08 +0000 |
commit | 2dacf920a13436813b6f7e51c2ba2ef465b8a4ba (patch) | |
tree | 812f469b8961b37892b32d7f6853d44bd7420dc3 /htdocs/edit/process | |
parent | 2312a7bf316e4f58efb31e4fc72311fedaecd242 (diff) |
s/CGI::Request/CGI.pm/
Diffstat (limited to 'htdocs/edit/process')
-rwxr-xr-x | htdocs/edit/process/part_svc.cgi | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/htdocs/edit/process/part_svc.cgi b/htdocs/edit/process/part_svc.cgi index 0f0fbc6e8..48cc7fec3 100755 --- a/htdocs/edit/process/part_svc.cgi +++ b/htdocs/edit/process/part_svc.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# process/part_svc.cgi: Edit service definitions (process form) +# $Id: part_svc.cgi,v 1.2 1998-11-21 06:43:08 ivan Exp $ # # ivan@sisd.com 97-nov-14 # @@ -8,26 +8,31 @@ # bmccane@maxbaud.net 98-apr-3 # # lose background, FS::CGI ivan@sisd.com 98-sep-2 +# +# $Log: part_svc.cgi,v $ +# Revision 1.2 1998-11-21 06:43:08 ivan +# s/CGI::Request/CGI.pm/ +# use strict; -use CGI::Request; +use CGI; use CGI::Carp qw(fatalsToBrowser); use FS::UID qw(cgisuidsetup); use FS::Record qw(qsearchs); use FS::part_svc qw(fields); -use FS::CGI qw(eidiot); +use FS::CGI qw(eidiot popurl); -my($req)=new CGI::Request; # create form object +my($cgi)=new CGI; # create form object -&cgisuidsetup($req->cgi); +&cgisuidsetup($cgi); -my($svcpart)=$req->param('svcpart'); +my($svcpart)=$cgi->param('svcpart'); my($old)=qsearchs('part_svc',{'svcpart'=>$svcpart}) if $svcpart; my($new)=create FS::part_svc ( { map { - $_, $req->param($_); + $_, scalar($cgi->param($_)); # } qw(svcpart svc svcdb) } fields('part_svc') } ); @@ -43,5 +48,5 @@ if ( $svcpart ) { #$req->cgi->redirect("../../view/part_svc.cgi?$svcpart"); #$req->cgi->redirect("../../edit/part_svc.cgi?$svcpart"); -$req->cgi->redirect("../../browse/part_svc.cgi"); +print $cgi->redirect(popurl(3)."/browse/part_svc.cgi"); |