<?php /* Smarty version 2.6.28, created on 2020-12-15 21:24:41
         compiled from /home/vinhostm/public_html/order/templates/portal/affiliates.tpl */ ?>
<?php if ($this->_tpl_vars['inactive']): ?>
<p><?php echo $this->_tpl_vars['LANG']['affiliatesdisabled']; ?>
</p>
<?php else: ?>
<p align="center"><?php echo $this->_tpl_vars['LANG']['affiliatesrealtime']; ?>
</p>
<p align="center"><strong><?php echo $this->_tpl_vars['LANG']['affiliatesreferallink']; ?>
:</strong>
  <input type="text" size="60" value="<?php echo $this->_tpl_vars['referrallink']; ?>
">
</p>
<table width="100%" cellpadding="0" cellspacing="0" class="frame" border="0">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
        <tr>
          <td width="230" class="fieldarea"><?php echo $this->_tpl_vars['LANG']['affiliatesvisitorsreferred']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['visitors']; ?>
</td>
        </tr>
        <tr>
          <td width="230" class="fieldarea"><?php echo $this->_tpl_vars['LANG']['affiliatessignups']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['signups']; ?>
</td>
        </tr>
        <tr>
          <td width="230" class="fieldarea"><?php echo $this->_tpl_vars['LANG']['affiliatesconversionrate']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['conversionrate']; ?>
%</td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" class="frame" border="0">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
        <tr>
          <td width="230" class="fieldarea"><?php echo $this->_tpl_vars['LANG']['affiliatescommissionspending']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['pendingcommissions']; ?>
</td>
        </tr>
        <tr>
          <td width="230" class="fieldarea"><?php echo $this->_tpl_vars['LANG']['affiliatescommissionsavailable']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['balance']; ?>
</td>
        </tr>
        <tr>
          <td width="230" class="fieldarea"><?php echo $this->_tpl_vars['LANG']['affiliateswithdrawn']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['withdrawn']; ?>
</td>
        </tr>
    </table></td>
  </tr>
</table>
<?php if ($this->_tpl_vars['withdrawrequestsent']): ?>
<p align="center"><?php echo $this->_tpl_vars['LANG']['affiliateswithdrawalrequestsuccessful']; ?>
</p>
<?php else: ?>
<?php if ($this->_tpl_vars['withdrawlevel']): ?>
<p align="center">
  <input type="button" value="<?php echo $this->_tpl_vars['LANG']['affiliatesrequestwithdrawal']; ?>
" onclick="window.location='<?php echo $_SERVER['PHP_SELF']; ?>
?action=withdrawrequest'" class="button">
</p>
<?php endif; ?>
<?php endif; ?>
<h2><?php echo $this->_tpl_vars['LANG']['affiliatesreferals']; ?>
</h2>
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
  <tr>
    <th><?php echo $this->_tpl_vars['LANG']['affiliatessignupdate']; ?>
</th>
    <th><?php echo $this->_tpl_vars['LANG']['orderproduct']; ?>
</th>
    <th><?php echo $this->_tpl_vars['LANG']['affiliatesamount']; ?>
</th>
    <th><?php echo $this->_tpl_vars['LANG']['affiliatescommission']; ?>
</th>
    <th><?php echo $this->_tpl_vars['LANG']['affiliatesstatus']; ?>
</th>
  </tr>
  <?php $_from = $this->_tpl_vars['referrals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['referral']):
?>
  <tr>
    <td><?php echo $this->_tpl_vars['referral']['date']; ?>
</td>
    <td><?php echo $this->_tpl_vars['referral']['service']; ?>
</td>
    <td><?php echo $this->_tpl_vars['referral']['amountdesc']; ?>
</td>
    <td><?php echo $this->_tpl_vars['referral']['commission']; ?>
</td>
    <td><?php echo $this->_tpl_vars['referral']['status']; ?>
</td>
  </tr>
  <?php endforeach; else: ?>
  <tr>
    <td colspan="5"><?php echo $this->_tpl_vars['LANG']['affiliatesnosignups']; ?>
</td>
  </tr>
  <?php endif; unset($_from); ?>
</table>
<?php if ($this->_tpl_vars['affiliatelinkscode']): ?>
<p><strong><?php echo $this->_tpl_vars['LANG']['affiliateslinktous']; ?>
</strong></p>
<p align="center"><?php echo $this->_tpl_vars['affiliatelinkscode']; ?>
</p>
<?php endif; ?>

<?php endif; ?>