retouch bandwidth countdown
[freeside.git] / fs_selfservice / FS-SelfService / cgi / view_usage.html
1 <HTML><HEAD><TITLE>MyAccount</TITLE></HEAD>
2 <BODY BGCOLOR="#eeeeee"><FONT SIZE=5>MyAccount</FONT><BR><BR>
3 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
4 <%= include('myaccount_menu') %>
5 <TD VALIGN="top">
6
7 <FONT SIZE=4>Service usage</FONT><BR><BR>
8
9 <%= if ( $error ) {
10   $OUT .= qq!<FONT SIZE="+1" COLOR="#ff0000">$error</FONT><BR><BR>!;
11 } ''; %>
12
13 <TABLE BGCOLOR="#cccccc">
14   <TR>
15     <TH ALIGN="left">Account</TH>
16     <TH ALIGN="right">Time remaining</TH>
17     <TH ALIGN="right">Upload remaining</TH>
18     <TH ALIGN="right">Download remaining</TH>
19     <TH ALIGN="right">Total remaining</TH>
20   </TR>
21 <%= foreach my $svc ( @svcs ) {
22   $OUT .= '<TR><TD>';
23     $OUT .= $svc->{'label'}. ': '. $svc->{'value'};
24     $OUT .= '</TD><TD ALIGN="right">';
25     $OUT .= $svc->{'seconds'};
26     $OUT .= '</TD><TD ALIGN="right">';
27     $OUT .=  $svc->{'upbytes'};
28     $OUT .= '</TD><TD ALIGN="right">';
29     $OUT .= $svc->{'downbytes'};
30     $OUT .= '</TD><TD ALIGN="right">';
31     $OUT .= $svc->{'totalbytes'};
32   $OUT .= '</TD></TR>';
33     if ( $svc->{'recharge_amount'} ) {
34       my $link = "${url}process_order_recharge;".
35                  "svcnum=$svc->{'svcnum'}";
36     $OUT .= '<TR><TD ALIGN="right">';
37       $OUT .= qq!<A HREF="$link">!.'Recharge for $';
38       $OUT .= $svc->{'recharge_amount'} . '</A> with';
39       $OUT .= '</TD><TD ALIGN="right">';
40       $OUT .= $svc->{'recharge_seconds'} if $svc->{'recharge_seconds'};
41       $OUT .= '</TD><TD ALIGN="right">';
42       $OUT .=  $svc->{'recharge_upbytes'} if $svc->{'recharge_upbytes'};
43       $OUT .= '</TD><TD ALIGN="right">';
44       $OUT .= $svc->{'recharge_downbytes'} if $svc->{'recharge_downbytes'};
45       $OUT .= '</TD><TD ALIGN="right">';
46       $OUT .= $svc->{'recharge_totalbytes'} if $svc->{'recharge_totalbytes'};
47     $OUT .= '</TD></TR>';
48     }
49   } %>
50
51 </TABLE>
52 <BR>
53
54 </TD></TR></TABLE>
55 <HR>
56 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>
57 </BODY></HTML>