From 04cc48bd2a049909af54b9e58afebffe51cdd1b2 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 8 Jun 2005 09:03:06 +0000 Subject: prepaid card recharge --- httemplate/view/svc_acct.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'httemplate/view') 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 'RADIUS groups'. join('
', $svc_acct->radius_groups). ''; +if ( $svc_acct->seconds =~ /^\d+$/ ) { + print 'Prepaid time'. + duration_exact($svc_acct->seconds). ''; +} + # Can this be abstracted further? Maybe a library function like # widget('HTML', 'view', $svc_acct) ? It would definitely make UI # style management easier. -- cgit v1.2.1