0) { // Init SQLs INIT_SQLS(); // Delete entries... foreach (REQUEST_POST('sel') as $id => $sel) { ADD_SQL(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_user_transfers_in` WHERE trans_id=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__, false)); ADD_SQL(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_user_transfers_out` WHERE trans_id=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__, false)); } // END - foreach // Run all SQLs runFilterChain('run_sqls'); } } // 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 ($content = SQL_FETCHARRAY($result)) { // Prepare data for the row template // @TODO Rewritings: idx->trans_id in template $content = array( 'sw' => $SW, 'idx' => $content['trans_id'], 'stamp' => generateDateTime($content['time_trans'], '3'), 'uid_from' => generateUserProfileLink($content['userid']), 'uid_to' => generateUserProfileLink($content['to_uid']), 'reason' => $content['reason'], 'points' => translateComma($content['points']), ); // Load row template $OUT .= LOAD_TEMPLATE("admin_del_transfer_row", true, $content); // Sum points and switch colors $total += $content['points']; $SW = 3 - $SW; } // Free memory SQL_FREERESULT($result); } else { // Nothing for in and out $OUT = "