<?php if(!defined('PARENT') || !isset($AF->id)) { exit; } ?>

                 <tr id="idr_<?php echo $AF->id . (defined('DASHBOARD') ? '_am' : ''); ?>">
                   <?php
                   if (!defined('DASHBOARD')) {
                   ?>
                   <td><input type="checkbox" name="fm[id][]" value="<?php echo $AF->id; ?>" onclick="mswSCG('.managearea .table td','delb')"></td>
                   <?php
                   }
                   ?>
                   <td><b><?php echo mswSH($AF->fname . ' ' . $AF->lname); ?></b>
                   <span class="smalldata">
                     <?php echo mswSH($AF->email); ?><br>
                     <?php echo $msw_adm_aff_manage9 . '<span class="highlight">' . ($AF->commtier ? $AF->commtier : $msw_common17); ?></span><br>
                     <?php echo $msw_adm_aff_manage11 . '<span class="highlight">' .  mswAff($SETTINGS, $AF); ?></span>
                   </span>
                   </td>
                   <td data-sort-value="<?php echo ($AF->affCommissions > 0 ? $AF->affCommissions : '0.00'); ?>"><a href="?p=aff-commissions&amp;id=<?php echo $AF->id; ?>" title="<?php echo mswSH($msw_adm_aff_manage7); ?>"><?php echo mswCRFMT(mswFPCE($AF->affCommissions, true), $SETTINGS); ?></a></td>
                   <td data-sort-value="<?php echo ($AF->affPayments > 0 ? $AF->affPayments : '0.00'); ?>"><a href="?p=payments-manage&amp;id=<?php echo $AF->id; ?>" title="<?php echo mswSH($msw_adm_aff_manage8); ?>"><?php echo mswCRFMT(mswFPCE($AF->affPayments, true), $SETTINGS); ?></a></td>
                   <td data-sort-value="<?php echo ($due > 0 ? $due : '0.00'); ?>"><a href="?p=payments-add&amp;aid=<?php echo $AF->id; ?>&amp;due=<?php echo $due; ?>&amp;rdr=aff-manage" title="<?php echo mswSH($msw_adm_aff_manage20); ?>" class="due"><?php echo mswCRFMT(mswFPCE($due, true), $SETTINGS); ?></a></td>
                   <td data-sort-value="<?php echo (int) $AF->affReferrals; ?>"><a href="?p=aff-referrals&amp;id=<?php echo $AF->id; ?>" title="<?php echo mswSH($msw_adm_aff_manage10); ?>"><?php echo mswNFM($AF->affReferrals); ?></a></td>
                   <td data-sort-value="<?php echo $AF->en; ?>"><?php echo mswGST($AF->en, array($msw_common15, $msw_common16)); ?></td>
                   <td class="text-right">
                     <a href="?p=payments-add&amp;aid=<?php echo $AF->id; ?>&amp;due=<?php echo $due . (defined('DASHBOARD') ? '&amp;rdr=dashboard' : '&amp;rdr=aff-manage'); ?>" title="<?php echo mswSH($msw_adm_aff_manage20); ?>"><span class="fa-stack"><i class="fa fa-square fa-stack-2x"></i><i class="fa fa-plus fa-stack-1x fa-inverse"></i></span></a>
                     <a href="?p=aff-add&amp;id=<?php echo $AF->id; ?>" title="<?php echo mswSH($msw_common4); ?>"><span class="fa-stack"><i class="fa fa-square fa-stack-2x"></i><i class="fa fa-pencil fa-stack-1x fa-inverse"></i></span></a>
                   </td>
                 </tr>