if (SQL_NUMROWS($result) > 0) {
// List users
- $OUT = '';$SW = 2; $cnt = 1; $total = '0';
+ $OUT = ''; $cnt = 1; $total = '0';
while ($content = SQL_FETCHARRAY($result)) {
// Add total points
$total += $content['points'];
// Prepare content
$content['email'] = generateEmailLink($content['email'], 'user_data');
$content['last_online'] = generateDateTime($content['last_online'], 2);
- $content['sw'] = $SW;
$content['win1'] = $WIN1;
$content['win2'] = $WIN2;
$content['cnt'] = $cnt;
// Load template and add it
$OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
- $SW = 3 - $SW; $cnt++;
+ $cnt++;
} // END - while
$content['rows'] = $OUT;