From a5ca508ed3bf1bcb03df26d35d1316b3c313820a Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 29 Jun 2007 21:06:52 +0000 Subject: [PATCH] add regular header/footer to svc_www view and edit --- httemplate/edit/svc_www.cgi | 17 +++++++---------- httemplate/view/svc_www.cgi | 29 ++++++++++++++--------------- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/httemplate/edit/svc_www.cgi b/httemplate/edit/svc_www.cgi index 6e2db8f67..56dd602a3 100644 --- a/httemplate/edit/svc_www.cgi +++ b/httemplate/edit/svc_www.cgi @@ -156,8 +156,9 @@ % % %my $p1 = popurl(1); -%print header("Web Hosting $action", ''); -% + +<% include("/elements/header.html", "Web Hosting $action", '') %> + %print qq!Error: !, $cgi->param('error'), % "" % if $cgi->param('error'); @@ -192,7 +193,7 @@ %print ""; % %if ( $part_svc->part_svc_column('usersvc')->columnflag ne 'F' -% || $part_svc->part_svc_column('usersvc')->columnvalue !~ /^\s*$/) { +% || $part_svc->part_svc_column('usersvc')->columnvalue =~ /^\s*$/) { % print 'Username'; % -%print < -% -% -%END -% + + +<% include('/elements/footer.html') %> diff --git a/httemplate/view/svc_www.cgi b/httemplate/view/svc_www.cgi index c503d1829..37f186465 100644 --- a/httemplate/view/svc_www.cgi +++ b/httemplate/view/svc_www.cgi @@ -44,17 +44,18 @@ % 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
!. + +<% 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!Edit this information
!. % ntable("#cccccc"). ''. ntable("#cccccc",2). % qq!Service number!. % qq!$svcnum!. @@ -83,8 +84,6 @@ % % %print ''. -% '
'. joblisting({'svcnum'=>$svcnum}, 1). -% '' -%; -% +% '
'. joblisting({'svcnum'=>$svcnum}, 1); +<% include('/elements/footer.html') %> -- 2.11.0