X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_www.cgi;h=935d139e9c4da4e15717dbecd5c712c54ca643b8;hb=c2a0fd8311842fd4bd27a5bdc93081c9300c7131;hp=c503d1829a3aacf7288154dd29cca9eedf89123c;hpb=8a507f43bfa5c5232b5babfbbf82ac5de5702add;p=freeside.git
diff --git a/httemplate/view/svc_www.cgi b/httemplate/view/svc_www.cgi
index c503d1829..935d139e9 100644
--- a/httemplate/view/svc_www.cgi
+++ b/httemplate/view/svc_www.cgi
@@ -1,90 +1,106 @@
-% die "access denied"
-% unless $FS::CurrentUser::CurrentUser->access_right('View customer services')
-% || $FS::CurrentUser::CurrentUser->access_right('View customer'); #XXX remove me
-%
-%my($query) = $cgi->keywords;
-%$query =~ /^(\d+)$/;
-%my $svcnum = $1;
-%my $svc_www = qsearchs({
-% 'select' => 'svc_www.*',
-% 'table' => 'svc_www',
-% 'addl_from' => ' LEFT JOIN cust_svc USING ( svcnum ) '.
-% ' LEFT JOIN cust_pkg USING ( pkgnum ) '.
-% ' LEFT JOIN cust_main USING ( custnum ) ',
-% 'hashref' => { 'svcnum' => $svcnum },
-% 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
-%}) or die "svc_www: Unknown svcnum $svcnum";
-%
-%#false laziness w/all svc_*.cgi
-%my $cust_svc = qsearchs( 'cust_svc', { 'svcnum' => $svcnum } );
-%my $pkgnum = $cust_svc->getfield('pkgnum');
-%my($cust_pkg, $custnum);
-%if ($pkgnum) {
-% $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } );
-% $custnum = $cust_pkg->custnum;
-%} else {
-% $cust_pkg = '';
-% $custnum = '';
-%}
-%#eofalse
-%
-%my $part_svc=qsearchs('part_svc',{'svcpart'=>$cust_svc->svcpart})
-% or die "svc_www: Unknown svcpart" . $cust_svc->svcpart;
-
-%my $usersvc = $svc_www->usersvc;
-%my $svc_acct = '';
-%my $email = '';
-%if ( $usersvc ) {
-% $svc_acct = qsearchs('svc_acct', { 'svcnum' => $usersvc } )
-% or die "svc_www: Unknown usersvc $usersvc";
-% $email = $svc_acct->email;
-%}
-%
-%my $domain_record = qsearchs('domain_record', { 'recnum' => $svc_www->recnum } )
-% or die "svc_www: Unknown recnum ". $svc_www->recnum;
-%
-%my $www = $domain_record->zone;
-%
-%print header('Website View', menubar(
-% ( ( $custnum )
-% ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
-% )
-% : ( "Cancel this (unaudited) website" =>
-% "${p}misc/cancel-unaudited.cgi?$svcnum" )
-% ),
-% "Main menu" => $p,
-%)).
-% qq!Edit this information
!.
-% ntable("#cccccc"). '
!.$cgi->escapeHTML(join("\n",$svc_www->config))."