), __FILE__, __LINE__);
// Payment type added!
- $MSG = ADMIN_SPONSOR_PAYTYPE_ADDED_1.REQUEST_POST('pay_name').ADMIN_SPONSOR_PAYTYPE_ADDED_2;
+ $MSG = sprintf(getMessage('ADMIN_SPONSOR_PAYTYPE_ADDED'), REQUEST_POST('pay_name'));
} else {
// Free memory
SQL_FREERESULT($result);
// Entry does already exists
- $MSG = ADMIN_SPONSOR_PAYTYPE_ALREADY_1.REQUEST_POST('pay_name').ADMIN_SPONSOR_PAYTYPE_ALREADY_2;
+ $MSG = sprintf(getMessage('ADMIN_SPONSOR_PAYTYPE_ALREADY'), REQUEST_POST('pay_name'));
}
// Output message
// Switch colors
$SW = 3 - $SW;
- }
+ } // END - foreach
// Remember content in constant
define('__SPONSOR_ROWS', $OUT);
// Do we have some paytypes setup?
if (SQL_NUMROWS($result) > 0) {
// Prepare variables for listing
- $SW = 2; $OUT = "";
+ $OUT = ""; $SW = 2;
// List alle found payment types
- while (list($id, $name, $rate, $min, $currency) = SQL_FETCHROW($result)) {
+ while ($content = SQL_FETCHARRAY($result)) {
// Remember data in array
$content = array(
'sw' => $SW,
- 'id' => $id,
- 'name' => $name,
- 'rate' => TRANSLATE_COMMA($rate),
- 'min' => $min,
- 'currency' => $currency
+ 'id' => $content['id'],
+ 'name' => $content['pay_name'],
+ 'rate' => TRANSLATE_COMMA($content['pay_rate']),
+ 'min' => $content['pay_min_count'],
+ 'currency' => $content['pay_currency']
);
// Add row
// Switch colors
$SW = 3 - $SW;
- }
+ } // END - while
// Free memory
SQL_FREERESULT($result);