diff options
author | ivan <ivan> | 2005-06-08 09:03:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-06-08 09:03:06 +0000 |
commit | 04cc48bd2a049909af54b9e58afebffe51cdd1b2 (patch) | |
tree | b2cfa7703499af022d1b7669138077cb8c211623 /httemplate/view | |
parent | 2b7d11d0b79821a0c7f39ce8777b6aa91d37a26e (diff) |
prepaid card recharge
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 246a7fbc8..1486d7b11 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -283,6 +283,11 @@ foreach $attribute ( grep /^rc_/, $svc_acct->fields ) { print '<TR><TD ALIGN="right">RADIUS groups</TD><TD BGCOLOR="#ffffff">'. join('<BR>', $svc_acct->radius_groups). '</TD></TR>'; +if ( $svc_acct->seconds =~ /^\d+$/ ) { + print '<TR><TD ALIGN="right">Prepaid time</TD><TD BGCOLOR="#ffffff">'. + duration_exact($svc_acct->seconds). '</TD></TR>'; +} + # Can this be abstracted further? Maybe a library function like # widget('HTML', 'view', $svc_acct) ? It would definitely make UI # style management easier. |