- // Get message
- $message = getMessage('ADMIN_PAYOUT_ENTRIES_CHANGED');
- } else {
- $display = false; //Suppress any other outputs
- $OUT = ''; $SW = 2;
- foreach (postRequestElement('sel') as $id => $sel) {
- // Load data
- $result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- list($title, $rate, $mpoi, $allow) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
-
- // Prepare data for the row template
- $content = array(
- 'sw' => $SW,
- 'id' => $id,
- 'title' => $title,
- 'rate' => translateComma($rate),
- 'mpoi' => translateComma($mpoi),
- 'allow' => addSelectionBox('yn', $allow, "allow[".$id."]"),
- );
-
- // Load row template and switch color
- $OUT .= loadTemplate('admin_config_payouts_edit_row', true, $content);
- $SW = 3 - $SW;
- }
+ // Load row template and switch color
+ $OUT .= loadTemplate('admin_edit_payouts_row', true, $content);
+ } // END - foreach