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 = " ".LOAD_TEMPLATE("admin_settings_saved", true, TRANSFER_NO_INOUT_TRANSFERS)." "; } // ... and add them to a constant for the template define('__TRANSFER_ROWS', $OUT); // Remeber total amount define('__TRANSFER_TOTAL_VALUE', TRANSLATE_COMMA($total)); // Set title define('__TRANSFER_TITLE', TRANSFER_LIST_ALL); // Set "balance" word define('__TRANSFER_SUM', TRANSFER_TOTAL_BALANCE); // Don't show a delete button define('__TRANSFER_DELETE', " "); // Load final template LOAD_TEMPLATE("admin_list_transfer"); // ?>