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 ) {
22 my $link = "${url}view_usage_details;".
23 "svcnum=$svc->{'svcnum'};beginning=0;ending=0";
25 $OUT .= qq!<A HREF="$link">!. $svc->{'label'}. ': '. $svc->{'value'}.'</A>';
26 $OUT .= '</TD><TD ALIGN="right">';
27 $OUT .= $svc->{'seconds'};
28 $OUT .= '</TD><TD ALIGN="right">';
29 $OUT .= $svc->{'upbytes'};
30 $OUT .= '</TD><TD ALIGN="right">';
31 $OUT .= $svc->{'downbytes'};
32 $OUT .= '</TD><TD ALIGN="right">';
33 $OUT .= $svc->{'totalbytes'};
35 if ( $svc->{'recharge_amount'} ) {
36 my $link = "${url}process_order_recharge;".
37 "svcnum=$svc->{'svcnum'}";
38 $OUT .= '<TR><TD ALIGN="right">';
39 $OUT .= qq!<A HREF="$link">!.'Recharge for $';
40 $OUT .= $svc->{'recharge_amount'} . '</A> with';
41 $OUT .= '</TD><TD ALIGN="right">';
42 $OUT .= $svc->{'recharge_seconds'} if $svc->{'recharge_seconds'};
43 $OUT .= '</TD><TD ALIGN="right">';
44 $OUT .= $svc->{'recharge_upbytes'} if $svc->{'recharge_upbytes'};
45 $OUT .= '</TD><TD ALIGN="right">';
46 $OUT .= $svc->{'recharge_downbytes'} if $svc->{'recharge_downbytes'};
47 $OUT .= '</TD><TD ALIGN="right">';
48 $OUT .= $svc->{'recharge_totalbytes'} if $svc->{'recharge_totalbytes'};
58 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>