X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fview_usage.html;fp=fs_selfservice%2FFS-SelfService%2Fcgi%2Fview_usage.html;h=73ad1e4af4cd829370ca6628d10092689817c696;hp=40aec7bcfed65f5cde38d7c4a8b97ed2912bf3ea;hb=6194551336a925ae5455cede68a7f73660b06bb6;hpb=571d5e87ffc63a155072dab88fba16d5918cc57d diff --git a/fs_selfservice/FS-SelfService/cgi/view_usage.html b/fs_selfservice/FS-SelfService/cgi/view_usage.html index 40aec7bcf..73ad1e4af 100644 --- a/fs_selfservice/FS-SelfService/cgi/view_usage.html +++ b/fs_selfservice/FS-SelfService/cgi/view_usage.html @@ -6,8 +6,9 @@ Service usage

-
- +<%= if ( $error ) { + $OUT .= qq!$error

!; +} ''; %> @@ -18,13 +19,6 @@ <%= 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 .= ''; + if ( $svc->{'recharge_amount'} ) { + my $link = "${url}process_order_recharge;". + "svcnum=$svc->{'svcnum'}"; + $OUT .= ''; + } } %>
Total remaining
'; $OUT .= $svc->{'label'}. ': '. $svc->{'value'}; $OUT .= ''; @@ -34,15 +28,29 @@ $OUT .= ''; $OUT .= $svc->{'downbytes'}; $OUT .= ''; - $OUT .= $totalbytes; + $OUT .= $svc->{'totalbytes'}; $OUT .= '
'; + $OUT .= qq!!.'Recharge for $'; + $OUT .= $svc->{'recharge_amount'} . ' with'; + $OUT .= ''; + $OUT .= $svc->{'recharge_seconds'} if $svc->{'recharge_seconds'}; + $OUT .= ''; + $OUT .= $svc->{'recharge_upbytes'} if $svc->{'recharge_upbytes'}; + $OUT .= ''; + $OUT .= $svc->{'recharge_downbytes'} if $svc->{'recharge_downbytes'}; + $OUT .= ''; + $OUT .= $svc->{'recharge_totalbytes'} if $svc->{'recharge_totalbytes'}; + $OUT .= '

-
-
powered by freeside