<?php /* Smarty version 2.6.2, created on 2012-10-10 13:03:28
         compiled from login_box.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'myescape', 'login_box.tpl', 1, false),)), $this); ?>
<?php if (((is_array($_tmp=$this->_tpl_vars['userinfo']['logged'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) != 1):  echo '
<script language=javascript>
function checklogin() {   
  if (document.loginform.username.value==\'\') {
    alert("Please enter your username!");
    document.loginform.username.focus();
    return false;
  }
  if (document.loginform.password.value==\'\') {
    alert("Please enter your password!");
    document.loginform.password.focus();
    return false;
  }
  return true;
}
</script>
'; ?>

<form method=post name=loginform onsubmit="return checklogin()">
<input type=hidden name=a value='do_login'>
<input type=hidden name=follow value='<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['follow'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
'>
<table cellspacing=0 cellpadding=2 border=0 width="100%">
<tr>
 <th colspan=2><img src=images/q.gif width=1 height=3></th>
</tr>
<tr>
 <th colspan=2 class=title>Member login</th>
 </tr>
<tr>
 <td class=menutxt>Username:</td>
 <td><input type=text name=username class=inpts size=15></td>
</tr>
<tr>
 <td class=menutxt>Password:</td>
 <td><input type=password name=password class=inpts size=15></td>
</tr>
<?php if (((is_array($_tmp=$this->_tpl_vars['userinfo']['validation_enabled'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1): ?>
<tr>
 <td class=menutxt><img src="?a=show_validation_image&<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['session_name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
=<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['session_id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
&rand=<?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['rand'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
"></td>
 <td><input type=text name=validation_number class=inpts size=15></td>
</tr>
<?php endif; ?>
<tr>
 <td class=menutxt>&nbsp;</td>
 <td><input type=submit value="Login" class=sbmt size=15></td>
</tr>
<tr>
 <td colspan=2 align=right><a href=?a=forgot_password class=menutxt>Password recovery</a>
</table>
</form>

<?php else: ?>

<table cellspacing=0 cellpadding=2 border=0 width="100%">
<tr>
 <th colspan=2><img src=images/q.gif width=1 height=3></th>
</tr>
<tr>
 <th colspan=2 class=title>Navigation</th>
</tr><tr>
 <td class=menutxt><a href=? class=menutxt>Home</a></td>
</tr><tr>
 <td class=menutxt><br><a href=?a=account class=menutxt>Account</a></td>
</tr>
<tr>
 <td class=menutxt><br><a href=?a=deposit class=menutxt>Make Deposit</a></td>
</tr>
<tr>
<?php if (((is_array($_tmp=$this->_tpl_vars['settings']['use_add_funds'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 <td class=menutxt><a href=?a=add_funds class=menutxt>Make Deposit to Account</a></td>
</tr><tr>
<?php endif; ?>
 <td class=menutxt><a href=?a=deposit_list class=menutxt>Your Deposits</a></td>
</tr><tr>
 <td class=menutxt><a href=?a=deposit_history class=menutxt>Deposits History</a></td>
</tr><tr>
 <td class=menutxt><br><a href=?a=earnings class=menutxt>Earnings History</a></td>
</tr><?php if (((is_array($_tmp=$this->_tpl_vars['settings']['use_referal_program'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1): ?><tr>
 <td class=menutxt><a href=?a=earnings&type=commissions class=menutxt>Referrals History</a></td>
</tr><?php endif; ?>
<tr>
 <td class=menutxt><br><a href=?a=withdraw class=menutxt>Withdraw</a></td>
</tr><tr>
 <td class=menutxt><a href=?a=withdraw_history class=menutxt>Withdrawals History</a></td>
</tr><tr>
 <td class=menutxt><br><a href=?a=exchange class=menutxt>Currency Exchange</a></td>
<?php if (((is_array($_tmp=$this->_tpl_vars['settings']['internal_transfer_enabled'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
</tr><tr>
 <td class=menutxt><br><a href=?a=internal_transfer class=menutxt>Internal Transfer</a></td>
<?php endif; ?>
</tr><tr>
</tr><?php if (((is_array($_tmp=$this->_tpl_vars['settings']['use_referal_program'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1): ?><tr>
 <td class=menutxt><br><a href=?a=referals class=menutxt>Your Referrals</a></td>
</tr><tr>
 <td class=menutxt><a href=?a=referallinks class=menutxt>Referral Links</a></td>
</tr><?php endif;  if (((is_array($_tmp=$this->_tpl_vars['settings']['tell_friend_page'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<tr>
 <td class=menutxt><a href=?a=tell_friend class=menutxt>Tell a friend</a></td>
</tr>
<?php endif; ?>
<tr>
 <td class=menutxt><br><a href=?a=edit_account class=menutxt>Edit Account</a></td>
</tr><tr>
 <td class=menutxt><a href=?a=security class=menutxt>Security</a></td>
</tr><tr>

 <td class=menutxt><br><a href=?a=logout class=menutxt>Logout</a></td>
</tr>
</table>


<?php endif; ?>