welcome to the new world
[freeside.git] / httemplate / view / svc_www.cgi
index c503d18..d6d458c 100644 (file)
@@ -1,6 +1,5 @@
 % die "access denied"
-% unless $FS::CurrentUser::CurrentUser->access_right('View customer services')
-%     || $FS::CurrentUser::CurrentUser->access_right('View customer'); #XXX remove me
+% unless $FS::CurrentUser::CurrentUser->access_right('View customer services');
 %
 %my($query) = $cgi->keywords;
 %$query =~ /^(\d+)$/;
 %  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!<A HREF="${p}edit/svc_www.cgi?$svcnum">Edit this information</A><BR>!.
+
+<% include("/elements/header.html", "Website View", menubar(
+    ( ( $custnum )
+      ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
+        )                                                                       
+      : ( "Cancel this (unaudited) website" =>
+            "${p}misc/cancel-unaudited.cgi?$svcnum" )
+    ),
+  ))
+%>
+
+%print qq!<A HREF="${p}edit/svc_www.cgi?$svcnum">Edit this information</A><BR>!.
 %      ntable("#cccccc"). '<TR><TD>'. ntable("#cccccc",2).
 %      qq!<TR><TD ALIGN="right">Service number</TD>!.
 %        qq!<TD BGCOLOR="#ffffff">$svcnum</TD></TR>!.
@@ -83,8 +83,6 @@
 %
 %
 %print '</TABLE></TD></TR></TABLE>'.
-%      '<BR>'. joblisting({'svcnum'=>$svcnum}, 1).
-%      '</BODY></HTML>'
-%;
-%
+%      '<BR>'. joblisting({'svcnum'=>$svcnum}, 1);
 
+<% include('/elements/footer.html') %>