array(getMemberId()), __FILE__, __LINE__);
if (SQL_NUMROWS($result_payouts) > 0) {
// List all his requests
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result_payouts)) {
// Translate status
$content['status'] = translatePayoutStatus();
// Prepare data for the template
$content = array(
- 'sw' => $SW,
'target_account' => $content['target_account'],
'payout_total' => $content['payout_total'],
'target_bank' => $content['target_bank'],
// Load row template and switch colors
$OUT .= loadTemplate('member_payout_row', true, $content);
- $SW = 3 - $SW;
- }
+ } // END - while
// Load template
loadTemplate('member_payout', false, $OUT);
- }
+ } // END - if
// Free memory
SQL_FREERESULT($result_payouts);