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

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