[freeside-commits] freeside/httemplate/view svc_acct.cgi,1.46,1.47
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Dec 4 18:37:16 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv17993/httemplate/view
Modified Files:
svc_acct.cgi
Log Message:
editable service usage
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_acct.cgi,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- svc_acct.cgi 23 Aug 2006 22:25:38 -0000 1.46
+++ svc_acct.cgi 5 Dec 2006 02:37:14 -0000 1.47
@@ -284,6 +284,21 @@
</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};
More information about the freeside-commits
mailing list