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

                 <tr id="idr_<?php echo $CM->id . (defined('DASHBOARD') ? '_cm' : ''); ?>">
                   <?php
                   if (!defined('DASHBOARD')) {
                   ?>
                   <td><input type="checkbox" name="fm[id][]" value="<?php echo $CM->id; ?>" onclick="mswSCG('.managearea .table td','delb')"></td>
                   <?php
                   }
                   ?>
                   <td><b><?php echo mswSH($CM->affName); ?></b>
                   <span class="smalldata">
                     <?php echo mswSH($CM->productName); ?>
                   </span>
                   </td>
                   <td data-sort-value="<?php echo $CM->ts; ?>"><?php echo $DT->datedisplay($SETTINGS, $CM->ts); ?></td>
                   <td data-sort-value="<?php echo ($CM->saletotal > 0 ? $CM->saletotal : '0.00'); ?>"><?php echo mswCRFMT(mswFPCE($CM->saletotal, true), $SETTINGS); ?></td>
                   <td data-sort-value="<?php echo ($CM->commtotal > 0 ? $CM->commtotal : '0.00'); ?>"><?php echo mswCRFMT(mswFPCE($CM->commtotal, true), $SETTINGS); ?></td>
                   <td class="text-right">
                     <a href="?p=commissions-add&amp;id=<?php echo $CM->id; ?>&amp;aid=<?php echo $CM->affid . (!isset($_GET['id']) ? '&amp;rdr=commissions-manage' : '') . (defined('DASHBOARD') ? '&amp;rdr=dashboard' : ''); ?>" 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>