X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htdocs%2Fview%2Fsvc_domain.cgi;h=9abeebbf48347ef8fd8342b1fff948f301357402;hb=6b842a0891010b36bf7b0596bd062f70bcff7826;hp=fa35a8cd510324b894f0417c0552b5090e7863e8;hpb=0bf5ad9ff0a65195db88ed0bac3aa11c33ec1ad3;p=freeside.git diff --git a/htdocs/view/svc_domain.cgi b/htdocs/view/svc_domain.cgi index fa35a8cd5..9abeebbf4 100755 --- a/htdocs/view/svc_domain.cgi +++ b/htdocs/view/svc_domain.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# View svc_domain records +# $Id: svc_domain.cgi,v 1.4 1998-12-23 03:10:19 ivan Exp $ # # Usage: svc_domain svcnum # http://server.name/path/svc_domain.cgi?svcnum @@ -15,7 +15,13 @@ # bmccane@maxbaud.net 98-apr-3 # # $Log: svc_domain.cgi,v $ -# Revision 1.2 1998-11-13 09:56:50 ivan +# Revision 1.4 1998-12-23 03:10:19 ivan +# $cgi->keywords instead of $cgi->query_string +# +# Revision 1.3 1998/12/17 09:57:25 ivan +# s/CGI::(Base|Request)/CGI.pm/; +# +# Revision 1.2 1998/11/13 09:56:50 ivan # change configuration file layout to support multiple distinct databases (with # own set of config files, export, etc.) # @@ -23,13 +29,15 @@ use strict; use CGI; use FS::UID qw(cgisuidsetup); +use FS::CGI qw(header menubar popurl); use FS::Record qw(qsearchs); my($cgi) = new CGI; cgisuidsetup($cgi); #untaint svcnum -$cgi->query_string =~ /^(\d+)$/; +my($query) = $cgi->keywords; +$query =~ /^(\d+)$/; my($svcnum)=$1; my($svc_domain)=qsearchs('svc_domain',{'svcnum'=>$svcnum}); die "Unknown svcnum" unless $svc_domain; @@ -46,19 +54,13 @@ if ($pkgnum) { my($part_svc)=qsearchs('part_svc',{'svcpart'=> $cust_svc->svcpart } ); die "Unkonwn svcpart" unless $part_svc; -print $cgi->header, < - - Domain View - - -

Domain View

- -
-View this package (#$pkgnum) | -View this customer (#$custnum) | -Main menu

- Service #$svcnum +my $p = popurl(2); +print $cgi->header, header('Domain View', menubar( + "Main menu" => $p, + "View this package (#$pkgnum)" => "${p}view/cust_pkg.cgi?$pkgnum", + "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", +)), <Service #$svcnum
END