X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_www.cgi;h=2980f846b6a7107a567329131058bad744ca5d15;hb=34647c32b50ce3b8ee1b6d3d7aef4ba9d0297bdb;hp=70a7a1be4adcbea66c6430461bb1b039cc4d2e00;hpb=8f42b751aebda2e7dce2c363bed6f1e15b411b1d;p=freeside.git
diff --git a/httemplate/view/svc_www.cgi b/httemplate/view/svc_www.cgi
index 70a7a1be4..2980f846b 100644
--- a/httemplate/view/svc_www.cgi
+++ b/httemplate/view/svc_www.cgi
@@ -20,27 +20,41 @@ if ($pkgnum) {
}
#eofalse
+my $usersvc = $svc_www->usersvc;
+my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $usersvc } )
+ or die "svc_www: Unknown usersvc $usersvc";
+my $email = $svc_acct->email;
+
my $domain_record = qsearchs('domain_record', { 'recnum' => $svc_www->recnum } )
- or die "svc_www: Unknown recnum". $svc_www->recnum;
+ or die "svc_www: Unknown recnum ". $svc_www->recnum;
-my $www = $domain_record->reczone;
-unless ( $www =~ /\.$/ ) {
- my $svc_domain = qsearchs('svc_domain', { svcnum=>$domain_record->svcnum } );
- $www .= '.'. $svc_domain->domain;
-}
+my $www = $domain_record->zone;
print header('Website View', menubar(
( ( $custnum )
- ? ( "View this package (#$pkgnum)" => "${p}view/cust_pkg.cgi?$pkgnum",
- "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
+ ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
)
: ( "Cancel this (unaudited) website" =>
"${p}misc/cancel-unaudited.cgi?$svcnum" )
),
"Main menu" => $p,
)).
- "Service #$svcnum".
- qq!
Website name: $www!.
+ qq!Edit this information
!.
+ ntable("#cccccc"). '