summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorjeff <jeff>2006-12-05 02:37:14 +0000
committerjeff <jeff>2006-12-05 02:37:14 +0000
commitbc392247350c4a124c8835f18dd19154ac343e9d (patch)
treedd4f27ebfbfa764c71ca56d612a011c2771c39ba /httemplate/view
parent5cb3aee153f8fd73defe6bfceef5983241739348 (diff)
editable service usage
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/svc_acct.cgi15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index 9c2fbc94d..7fbefa14b 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -284,6 +284,21 @@ Service #<B><% $svcnum %></B>
</TD>
</TR>
% }
+% my %ulabel = ( seconds => 'Seconds',
+% upbytes => 'Upload bytes',
+% downbytes => 'Download bytes',
+% totalbytes => 'Total bytes',
+% );
+% foreach my $uf ( keys %ulabel ) {
+% my $tf = $uf . "_threshold";
+% if ( $svc_acct->$tf ne '' ) {
+ <TR>
+ <TD ALIGN="right"><% $ulabel{$uf} %> remaining</TD>
+ <TD BGCOLOR="#ffffff"><% $svc_acct->$uf %></TD>
+ </TR>
+
+% }
+% }
% foreach my $attribute ( grep /^radius_/, $svc_acct->fields ) {
% $attribute =~ /^radius_(.*)$/;
% my $pattribute = $FS::raddb::attrib{$1};