X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_transfer.php;h=677be3706ab5020b0059ce1b0084d4f4f5f7c210;hb=62b4ef5bb0b63f7cac5f0dccd816246a108a5d83;hp=16720437e975fe6f7dac6df60c782967c35856ab;hpb=7297440d795390abd70ddc339b1a81d34f76c953;p=mailer.git diff --git a/inc/modules/admin/what-list_transfer.php b/inc/modules/admin/what-list_transfer.php index 16720437e9..677be3706a 100644 --- a/inc/modules/admin/what-list_transfer.php +++ b/inc/modules/admin/what-list_transfer.php @@ -1,7 +1,7 @@ 0) { // Output rows $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result)) { // Prepare data for the row template $content = array( - 'sw' => $SW, - 'idx' => $content['trans_id'], - 'stamp' => generateDateTime($content['time_trans'], '3'), - 'from_link' => generateUserProfileLink($content['userid']), - 'to_link' => generateUserProfileLink($content['to_uid']), - 'reason' => wordwrap($content['reason'], 15), - 'points' => translateComma($content['points']), + 'sw' => $SW, + 'trans_id' => $content['trans_id'], + 'time_trans' => generateDateTime($content['time_trans'], 3), + 'from_link' => generateUserProfileLink($content['userid']), + 'to_link' => generateUserProfileLink($content['to_userid']), + 'reason' => wordwrap($content['reason'], 15), + 'points' => translateComma($content['points']), ); // Load row template add points and switch color - $OUT .= LOAD_TEMPLATE('admin_list_transfer_row', true, $content); + $OUT .= loadTemplate('admin_list_transfer_row', true, $content); $total += $content['points']; $SW = 3 - $SW; } @@ -73,30 +72,29 @@ if (SQL_NUMROWS($result) > 0) { } else { // Nothing for in and out $OUT = " - - ".LOAD_TEMPLATE('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))." + + ".loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))." "; } // ... and add them to a constant for the template -// @TODO Rewrite these constants -define('__TRANSFER_ROWS', $OUT); +$content['rows'] = $OUT; // Remeber total amount -define('__TRANSFER_TOTAL_VALUE', translateComma($total)); +$content['total'] = translateComma($total); // Set title -define('__TRANSFER_TITLE', getMessage('TRANSFER_LIST_ALL')); +$content['title'] = getMessage('TRANSFER_LIST_ALL'); // Set "balance" word -define('__TRANSFER_SUM', getMessage('TRANSFER_TOTAL_BALANCE')); +$content['balance'] = getMessage('TRANSFER_TOTAL_BALANCE'); // Don't show a delete button -define('__TRANSFER_DELETE', ' '); +$content['delete'] = ' '; // Load final template -LOAD_TEMPLATE('admin_list_transfer'); +loadTemplate('admin_list_transfer', false, $content); -// +// [EOF] ?>