diff options
author | ivan <ivan> | 2002-06-25 23:27:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-06-25 23:27:23 +0000 |
commit | 765837b89aa3baa8466213111ec9484042fb9acb (patch) | |
tree | bd542d7b86f8c904aea858fb7a7ad5cc1a60b2e6 /httemplate/view/svc_www.cgi | |
parent | fe610572852e2eb7c3458e77dc167c25a098c84a (diff) |
add link to controlling account
Diffstat (limited to 'httemplate/view/svc_www.cgi')
-rw-r--r-- | httemplate/view/svc_www.cgi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/view/svc_www.cgi b/httemplate/view/svc_www.cgi index 86f693201..9fa9661b1 100644 --- a/httemplate/view/svc_www.cgi +++ b/httemplate/view/svc_www.cgi @@ -20,8 +20,13 @@ 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 =~ /\.$/ ) { @@ -45,6 +50,8 @@ print header('Website View', menubar( qq!<TD BGCOLOR="#ffffff">$svcnum</TD></TR>!. qq!<TR><TD ALIGN="right">Website name</TD>!. qq!<TD BGCOLOR="#ffffff"><A HREF="http://$www">$www<A></TD></TR>!. + qq!<TR><TD ALIGN="right">Account</TD>!. + qq!<TD BGCOLOR="#ffffff"><A HREF="${p}view/svc_acct.cgi?$usersvc">$email</A></TD></TR>!. '</TABLE></TD></TR></TABLE>'. '<BR>'. joblisting({'svcnum'=>$svcnum}, 1). '</BODY></HTML>' |