0) { // Output rows $OUT = ""; $SW = 2; while(list($uid1, $uid2, $idx, $points, $reason, $stamp) = SQL_FETCHROW($result)) { // Prepare data for the row template $content = array( 'sw' => $SW, 'idx' => $idx, 'stamp' => MAKE_DATETIME($stamp, "3"), 'from_link' => ADMIN_USER_PROFILE_LINK($uid1), 'to_link' => ADMIN_USER_PROFILE_LINK($uid2), 'reason' => wordwrap($reason, 15), 'points' => TRANSLATE_COMMA($points), ); // Load row template add points and switch color $OUT .= LOAD_TEMPLATE("admin_list_transfer_row", true, $content); $total += $points; $SW = 3 - $SW; } // Free memory SQL_FREERESULT($result); } else { // Nothing for in and out $OUT = "