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') %>
7 <FONT SIZE=4>Service usage</FONT><BR><BR>
10 $OUT .= qq!<FONT SIZE="+1" COLOR="#ff0000">$error</FONT><BR><BR>!;
13 <TABLE BGCOLOR="#cccccc">
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>
21 <%= foreach my $svc ( @svcs ) {
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'};
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'};
56 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>