$message = '{--ADMIN_PAYOUT_ENTRIES_CHANGED--}';
} else {
$display = false; //Suppress any other outputs
- $OUT = ''; $SW = 2;
+ $OUT = '';
foreach (postRequestParameter('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",
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
'id' => $id,
'title' => $title,
'rate' => translateComma($rate),
// Load row template and switch color
$OUT .= loadTemplate('admin_config_payouts_edit_row', true, $content);
- $SW = 3 - $SW;
- }
+ } // END - foreach
// Load main template
loadTemplate('admin_config_payouts_edit', false, $OUT);
$message = '{--ADMIN_PAYOUT_ENTRIES_DELETED--}';
} else {
$display = false; //Suppress any other outputs
- $OUT = ''; $SW = 2;
+ $OUT = '';
foreach (postRequestParameter('sel') as $id => $sel) {
// Secure id number
$id = bigintval($id);
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
'id' => $id,
'title' => $title,
'rate' => translateComma($rate),
// Load row template and switch color
$OUT .= loadTemplate('admin_config_payouts_del_row', true, $content);
- $SW = 3 - $SW;
- }
+ } // END - foreach
// Load main template
loadTemplate('admin_config_payouts_del', false, $OUT);
if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
// List all payout types
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result_type)) {
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
'id' => $content['id'],
'from_account' => $content['from_account'],
'type' => $content['type'],
// Load row template and switch color
$OUT .= loadTemplate('admin_config_payouts_row', true, $content);
- $SW = 3 - $SW;
} // END - while
// Free memory
// Load main template
loadTemplate('admin_config_payouts', false, $OUT);
-}
+} // END - if
// Does your members request payouts?
if ((SQL_NUMROWS($result_mem) > 0) && ($display)) {