%= $url = "$selfurl?session=$session_id;action=";
@svc_acct = grep { $_->{svcdb} eq 'svc_acct' } @svcs;
@svc_phone = grep { $_->{svcdb} eq 'svc_phone' } @svcs;
@svc_port = grep { $_->{svcdb} eq 'svc_port' } @svcs;
'';
%>
<%= include('header', 'Account usage') %>
<%= if ( $error ) {
$OUT .= qq!$error
!;
} ''; %>
<%= if ( @svc_acct ) {
$OUT.= '
Account | Time remaining | Upload remaining | Download remaining | Total remaining |
---|---|---|---|---|
'; $OUT .= qq!!. $svc->{'label'}. ': '. $username .''; $OUT .= ' | '; $OUT .= $svc->{'seconds'}; $OUT .= ' | '; $OUT .= $svc->{'upbytes'}; $OUT .= ' | '; $OUT .= $svc->{'downbytes'}; $OUT .= ' | '; $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 .= ' |
Number | '; #"Account" ? #what else? $OUT .= '
---|
'; $OUT .= qq!!. $svc_phone->{'label'}. ': '. $svc_phone->{'value'}.''; $OUT .= ' |
Service | |
---|---|
'. $svc_port->{'label'}. ': '. $svc_port->{'value'}.' | '; $OUT .= qq!