From dbb388836b7951a3db49deda05a1ff9ba5125c17 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 30 Nov 2006 02:27:57 +0000 Subject: prepaid download/upload tracking --- fs_selfservice/FS-SelfService/cgi/view_usage.html | 49 +++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 fs_selfservice/FS-SelfService/cgi/view_usage.html (limited to 'fs_selfservice/FS-SelfService/cgi/view_usage.html') diff --git a/fs_selfservice/FS-SelfService/cgi/view_usage.html b/fs_selfservice/FS-SelfService/cgi/view_usage.html new file mode 100644 index 000000000..40aec7bcf --- /dev/null +++ b/fs_selfservice/FS-SelfService/cgi/view_usage.html @@ -0,0 +1,49 @@ +MyAccount +MyAccount

+<%= $url = "$selfurl?session=$session_id;action="; ''; %> +<%= include('myaccount_menu') %> + + +Service usage

+ +
+ + + + + + + + + + +<%= foreach my $svc ( @svcs ) { + my $totalbytes = ''; + if ( ($svc->{'upbytes'} + 0) eq $svc->{'upbytes'} + || ($svc->{'downbytes'} + 0) eq $svc->{'downbytes'} ) { + + $totalbytes = $svc->{'upbytes'} + $svc->{'downbytes'}; + } + + $OUT .= ''; + } %> + +
AccountTime remainingUpload remainingDownload remainingTotal remaining
'; + $OUT .= $svc->{'label'}. ': '. $svc->{'value'}; + $OUT .= ''; + $OUT .= $svc->{'seconds'}; + $OUT .= ''; + $OUT .= $svc->{'upbytes'}; + $OUT .= ''; + $OUT .= $svc->{'downbytes'}; + $OUT .= ''; + $OUT .= $totalbytes; + $OUT .= '
+
+ +
+ + +
+powered by freeside + -- cgit v1.2.1