From d2e5d9d1f65fc94eb87eae45b675645e92087f49 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 20 Feb 2010 22:34:57 +0000 Subject: communigate pro provisioning, RT#7083 --- httemplate/edit/svc_acct.cgi | 69 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 59 insertions(+), 10 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 2845c8301..065ce701d 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -241,31 +241,77 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% } -% if ( $part_svc->part_svc_column('quota')->columnflag eq 'F' ) { - -% } else { +% if ( $communigate ) { + + Mailbox type + + + + + - Quota: - + Mailbox type + XXX checkbox thingie!! + -% } -% if ( $part_svc->part_svc_column('slipip')->columnflag =~ /^[FA]$/ ) { + +% } else { + + +% } - -% } else { +% if ( $part_svc->part_svc_column('quota')->columnflag eq 'F' ) { + +% } else { +% my $quota_label = $communigate ? 'Mail storage limit' : 'Quota'; + + <% $quota_label %> + + +% } + +% tie my %cgp_label, 'Tie::IxHash', +% 'file_quota' => 'File storage limit', +% 'file_maxnum' => 'Number of files limit', +% 'file_maxsize' => 'File size limit', +% ; +% +% foreach my $key (keys %cgp_label) { +% +% if ( !$communigate || $part_svc->part_svc_column($key)->columnflag eq 'F' ){ + +% } else { + + + <% $cgp_label{$key} %> + + +% } +% } + + +% if ( $part_svc->part_svc_column('slipip')->columnflag =~ /^[FA]$/ ) { + +% } else { IP % } -% + % my %label = ( seconds => 'Time', % upbytes => 'Upload bytes', % downbytes => 'Download bytes', @@ -399,6 +445,9 @@ if ( $cgi->param('error') ) { } +my $communigate = scalar($part_svc->part_export('communigate_pro')); + # || scalar($part_svc->part_export('communigate_pro_singledomain')); + my( $cust_pkg, $cust_main ) = ( '', '' ); if ( $pkgnum ) { $cust_pkg = qsearchs('cust_pkg', { 'pkgnum' => $pkgnum } ); -- cgit v1.2.1