summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2004-10-05 16:28:28 +0000
committerivan <ivan>2004-10-05 16:28:28 +0000
commit049da6c538c952f938af4544a07c688b89c26a17 (patch)
treebfec9f211acecf0f0c0bb0922b9fcb34f910d921 /httemplate/view
parentb0511ff939fe1622503ac8e53333fabb1ad9bd37 (diff)
RADIUS session viewing
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/svc_acct.cgi8
1 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index be58e4e1d..1322a69fd 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -93,8 +93,9 @@ if ( $part_svc->part_export('sqlradius')
}
if ( $cust_pkg ) {
- print ' since last bill ('. time2str("%C", $last_bill). ') - '.
- $plandata{recur_included_hours}. ' total hours in plan<BR>';
+ print ' since last bill ('. time2str("%C", $last_bill). ')'.
+ print ' - '. $plandata{recur_included_hours}. ' total hours in plan<BR>'
+ if length($plandata{recur_included_hours});
} else {
print ' (no billing cycle available for unaudited account)<BR>';
}
@@ -102,6 +103,9 @@ if ( $part_svc->part_export('sqlradius')
print 'Input: <B>'. sprintf("%.3f", $input). '</B> megabytes<BR>';
print 'Output: <B>'. sprintf("%.3f", $output). '</B> megabytes<BR>';
+ my $href = qq!<A HREF="${p}search/sqlradius.cgi?svcnum=$svcnum!;
+ print qq!View sessions: this billing cycle | $href">all sessions</A>!;
+
print '<BR>';
}