X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_www.cgi;h=e19a4fa08119c591f775d87605fc2a5beda49cfa;hb=22c7daa1fd079e3ec9dee4da241f83e174132e4e;hp=4b27752ffa4e7526d0e9545eb830e981930f8778;hpb=633c48448d9468690b7ad77eb6ff7c660a286658;p=freeside.git diff --git a/httemplate/edit/svc_www.cgi b/httemplate/edit/svc_www.cgi index 4b27752ff..e19a4fa08 100644 --- a/httemplate/edit/svc_www.cgi +++ b/httemplate/edit/svc_www.cgi @@ -1,6 +1,6 @@ %my $conf = new FS::Conf; % -%my( $svcnum, $pkgnum, $svcpart, $part_svc, $svc_www ); +%my( $svcnum, $pkgnum, $svcpart, $part_svc, $svc_www, $config ); % %if ( $cgi->param('error') ) { % @@ -10,6 +10,7 @@ % $svcnum = $svc_www->svcnum; % $pkgnum = $cgi->param('pkgnum'); % $svcpart = $cgi->param('svcpart'); +% $config = $cgi->param('config'); % $part_svc=qsearchs('part_svc',{'svcpart'=>$svcpart}); % die "No part_svc entry!" unless $part_svc; % @@ -42,6 +43,7 @@ % % $pkgnum=$cust_svc->pkgnum; % $svcpart=$cust_svc->svcpart; +% $config=$cgi->escapeHTML($svc_www->config); % % $part_svc=qsearchs('part_svc',{'svcpart'=>$svcpart}); % die "No part_svc entry!" unless $part_svc; @@ -154,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'); @@ -200,6 +203,14 @@ % print ""; %} % +%if ( $part_svc->part_svc_column('config')->columnflag ne 'F' && +% $FS::CurrentUser::CurrentUser->access_right('Edit www config') ) { +% print 'Config lines'; +% print qq!! +%}else{ +% print qq!!; +%} +% %foreach my $field ($svc_www->virtual_fields) { % if ( $part_svc->part_svc_column($field)->columnflag ne 'F' ) { % # If the flag is X, it won't even show up in $svc_acct->virtual_fields. @@ -210,11 +221,7 @@ % %print '
'; % -%print < -% -% -%END -% + + +<% include('/elements/footer.html') %>