?>
</td>
			<td><?php 
    echo $affiliate->paypalEmail;
    ?>
</td>
			<td><?php 
    echo $transaction->status;
    ?>
</td>
			<td><?php 
    echo $transaction->description;
    ?>
</td>
			<td style="text-align: right"><?php 
    echo wpam_format_money($transaction->amount);
    ?>
</td>
			<td>
				<select name="transactionStatus[<?php 
    echo $transaction->transactionId;
    ?>
]" style="width: 100px;">
					<option value="unset"></option>
					<option value="success" style="color: green; ">Success</option>
					<option value="failed" style="color: red;">Failed</option>
				</select>
			</td>

		</tr>
		<?php 
    echo $transaction->description;
    ?>
</td>
                <td><?php 
    echo $transaction->referenceId;
    ?>
</td>
                <td style="text-align: right"><?php 
    echo wpam_format_money($transaction->amount);
    ?>
</td>
                <?php 
    if ($this->viewData['showBalance']) {
        ?>
                    <td style="text-align: right"><?php 
        echo wpam_format_money($transaction->balance);
        ?>
</td>
                <?php 
    }
    ?>
            </tr>
        <?php 
}
?>

    </tbody>
</table>
<?php 
if (!count($this->viewData['transactions'])) {
    ?>
 protected function getCommissionRateString(WPAM_Data_Models_AffiliateModel $affiliate)
 {
     if ($affiliate->bountyType === 'fixed') {
         return sprintf(__('%s per sale.', 'wpam'), wpam_format_money($affiliate->bountyAmount, false));
     } else {
         return sprintf(__('%s%% of each completed sale, pre-tax', 'wpam'), $affiliate->bountyAmount);
     }
 }
					<td><?php 
echo sprintf(__('PayPal Fee<br /><small>2%% per payment, max %s1 per payment</small>', 'wpam'), $currency);
?>
</td>
					<td class="moneyCell" id="paypalFeeCell"><?php 
echo wpam_format_money(0, false);
?>
</td>
				</tr>
				<tr class="totalSeparatorRow"><td colspan="2"></td> </tr>
				<tr class="totalRow">
					<th><?php 
_e('Estimated Total', 'wpam');
?>
</th>
					<th class="moneyCell" id="totalCell"><?php 
echo wpam_format_money(0, false);
?>
</th>
				</tr>
			</table>
			<div style="float: right; margin: 10px;">
				<input type="submit" class="button-primary" id="btnSubmit" name="btnSubmit" value="<?php 
_e('Continue with these payments', 'wpam');
?>
" />
			</div>
		</div>
		</form>
	</div>
</div>
</td>
		</tr>
		<tr>
			<td><?php 
echo sprintf(__('PayPal Fee<br /><small>2%% per payment, max %s1 per payment</small>', 'affiliates-manager'), $currency);
?>
</td>
	 		<td class="moneyCell" id="paypalFeeCell"><?php 
echo wpam_format_money($this->viewData['feeTotal'], false);
?>
</td>
		</tr>
		<tr class="totalSeparatorRow"><td colspan="2"></td> </tr>
		<tr class="totalRow">
			<th><?php 
_e('Estimated Total', 'affiliates-manager');
?>
</th>
			<th class="moneyCell" id="totalCell"><?php 
echo wpam_format_money($this->viewData['total'], false);
?>
</th>
		</tr>
	</table>
	<input type="submit" class="button-primary" id="submit-to-paypal-button" style="float: right; margin-top: 20px" value="<?php 
_e('Submit Mass Payment to PayPal', 'affiliates-manager');
?>
"/>
	</form>
	</div>
</div>
            <thead>
                <tr>
                    <th colspan="2"><?php 
_e('Account Summary', 'affiliates-manager');
?>
</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><?php 
_e('Balance', 'affiliates-manager');
?>
</td>
                    <td><?php 
echo wpam_format_money($this->viewData['accountStanding']);
?>
</td>
                </tr>
                <tr>
                    <td><?php 
_e('Commission Rate', 'affiliates-manager');
?>
</td>
                    <td><?php 
echo $this->viewData['commissionRateString'];
?>
</td>
                </tr>
            </tbody>
        </table>
 <?php 
echo wpam_format_money($this->viewData['accountCredits']);
?>
<br/>
				<?php 
_e('Payments:', 'affiliates-manager');
?>
 <?php 
echo wpam_format_money($this->viewData['accountDebits']);
?>
<br/>
				<?php 
_e('Adjustments:', 'affiliates-manager');
?>
 <?php 
echo wpam_format_money($this->viewData['accountAdjustments']);
?>
<br/>
			</div>
		</div>
		<div class="buttonsBar">
			<a id="applyPayoutButton" class="button-secondary"><?php 
_e('Apply Payout', 'affiliates-manager');
?>
</a>
			<a id="applyAdjustmentButton" class="button-secondary"><?php 
_e('Apply Manual Adjustment', 'affiliates-manager');
?>
</a>
		</div>
	  <?php 
    echo $a->affiliateId;
    ?>
</td>
			<td><span class="status_<?php 
    echo $a->status;
    ?>
"><?php 
    echo wpam_format_status($a->status);
    ?>
</span></td>
			<td><?php 
    echo wpam_format_money($a->balance);
    ?>
</td>
			<td><?php 
    echo wpam_format_money($a->earnings);
    ?>
</td>
			<td><?php 
    echo $a->firstName;
    ?>
</td>
			<td><?php 
    echo $a->lastName;
    ?>
</td>
			<td><?php 
    echo $a->email;
    ?>
</td>
			<td><?php