0) { // Delete entries... foreach ($_POST['sel'] as $id=>$sel) { $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_transfers_in WHERE trans_id=%d LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_transfers_out WHERE trans_id=%d LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); } } } // We only need outgoing transfers $result = SQL_QUERY("SELECT userid, to_uid, trans_id, points, reason, time_trans FROM "._MYSQL_PREFIX."_user_transfers_out ORDER BY trans_id", __FILE__, __LINE__); $total = "0"; if (SQL_NUMROWS($result) > 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"), 'uid_from' => ADMIN_USER_PROFILE_LINK($uid1), 'uid_to' => ADMIN_USER_PROFILE_LINK($uid1), 'reason' => $reason, 'points' => TRANSLATE_COMMA($points), ); // Load row template $OUT .= LOAD_TEMPLATE("admin_del_transfer_row", true, $content); // Sum points and switch colors $total += $points; $SW = 3 - $SW; } // Free memory SQL_FREERESULT($result); } else { // Nothing for in and out $OUT = "