{include file="header.tpl"}

<h1><span>{$userinfo.username}</span>, welcome to your account!</h1>

{if $settings.use_transaction_code ==1 && $userinfo.transaction_code == ''} <b>Note: currently you have not specified 
a Transaction code. The Transaction code strengthens your funds security in our 
system. The code is required to withdraw funds from your account{if $settings.internal_transfer_enabled} 
and for internal transfer to another user account{/if}. Just do not change 'Transaction 
code' in your account information if you do not want to use this feature. <a href=?a=edit_account>Click 
here</a> to specify a new transaction code .</b> <br>
<br>
{/if}

<div class="accpage">
<div class="accform">
  <div class="aleft">
    <p class="accbal">Account Balance:</p>
    <p class="accbal2">${$ab_formated.total}</p>
    <p class="btn"><a href="?a=deposit"><img src="images/accmain_deposit.png" width="123" height="29" alt=" " /></a></p>
  </div>
  <div class="aright">
    <p class="lastaccess">&nbsp;</p>
    <p class="regdate">Registered on: {$userinfo.create_account_date}</p>
    <p class="btn"><a href="?a=withdraw"><img src="images/accmain_withdraw.png" width="123" height="29" alt=" " /></a></p>    
  </div>
</div>

<hr />

<h4>Account overview</h4>
<div class="accform2">

<p><span class="sp1">Earned Total:</span><span class="sp2">${$ab_formated.earning}</span></p>
<p class="bg1"><span class="sp1">Last Deposit:</span><span class="sp2">${if $last_deposit}{$last_deposit}&nbsp; <small>{$last_deposit_date}</small>{else}0.00{/if}</span></p>
<p><span class="sp1">Pending Withdrawal:</span><span class="sp2">&nbsp;
{section name=p loop=$ps}
  {if $ps[p].pending_col > 0}{$ps[p].pending_col} {$ps[p].name} deposit{if $ps[p].pending_col > 1}s{/if} of ${$ps[p].pending_amount} total pending<br>{/if}
{/section}
</span></p>

<p class="bg1"><span class="sp1">Total Deposit:</span><span class="sp2">${if $ab_formated.deposit != 0}{$ab_formated.deposit}{else}0.00{/if}</span></p>
<p><span class="sp1">Withdrew Total:</span><span class="sp2">${if $ab_formated.withdrawal > 0}{$ab_formated.withdrawal}{else}0.00{/if}</span></p>
<p class="bg1"><span class="sp1">Last Withdrawal:</span><span class="sp2">${$last_withdrawal}&nbsp; <small>{$last_withdrawal_date}</small></span></p>

<p><span class="sp1">Active Deposit:</span><span class="sp2">${$ab_formated.active_deposit}</span></p>
<p class="bg1"><span class="sp1">Withdrew Total:</span><span class="sp2">${if $ab_formated.withdrawal > 0}{$ab_formated.withdrawal}{else}0.00{/if}</span></p>

</div>


{*
Account Balance:
$<b>{$ab_formated.total}</b><br>
 <small>
{section name=p loop=$ps}
   {if $ps[p].balance > 0}${$ps[p].balance} of {$ps[p].name}<br>{/if}
{/section}
   Earned Total: $<b>{$ab_formated.earning}</b>

Active Deposit: $<b>{$ab_formated.active_deposit}</b>

{if $last_deposit}
Last Deposit: $<b>{$last_deposit}</b> &nbsp; <small>{$last_deposit_date}</small>
{/if}

{if $ab_formated.deposit != 0}
Total Deposit: $<b>{$ab_formated.deposit}</b> 
{/if}

{if $last_withdrawal}
 Last Withdrawal: $<b>{$last_withdrawal}</b> &nbsp; <small>{$last_withdrawal_date}</small>
{/if}
{if $ab_formated.withdrawal > 0}
   Withdrawn Total: $<b>{$ab_formated.withdrawal}</b>
{/if}


{section name=p loop=$ps}
  {if $ps[p].pending_col > 0}{$ps[p].pending_col} {$ps[p].name} deposit{if $ps[p].pending_col > 1}s{/if} of ${$ps[p].pending_amount} total pending<br>{/if}
{/section}

<br><br>
{if $wires} {$wires} Wire Transfer(s) pending.<br>
{/if}
*}


</div>
{include file="footer.tpl"}
