X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_bank_package.php;h=385b3c2d39b40abddfde41ca4723a85fe596c6f6;hp=3d6d246624a5f2c29f20766da7914f81b0eb32e2;hb=f2aeaab0cd313b2eeb151642455ed558f6b186dc;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e diff --git a/inc/modules/admin/what-list_bank_package.php b/inc/modules/admin/what-list_bank_package.php index 3d6d246624..385b3c2d39 100644 --- a/inc/modules/admin/what-list_bank_package.php +++ b/inc/modules/admin/what-list_bank_package.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,31 +47,31 @@ addMenuDescription('admin', __FILE__); // Check if there is enougth selected $show = true; -if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && (count(postRequestElement('id')) > 0)) { +if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id'))) && (count(postRequestParameter('id')) > 0)) { // Okay, which button was pressed? - if (isPostRequestElementSet('change')) { + if (isFormSent('change')) { // Change permissions - adminChangeActivationStatus(postRequestElement('id'), 'bank_packages', 'package_active'); - } elseif (isPostRequestElementSet('edit')) { + adminChangeActivationStatus(postRequestParameter('id'), 'bank_packages', 'package_active'); + } elseif (isFormSent('edit')) { // Delete entries (with confirmation) adminEditEntriesConfirm( - postRequestElement('id'), + postRequestParameter('id'), 'bank_packages', array('id', 'title', 'description', 'account_fee', 'free_transfers', 'transfer_fee', 'output_system_mode', 'package_active', 'free_months_no_fee', 'interest_plus', 'interest_minus', 'first_payment', 'free_account_income', 'free_account_stuff', 'tan_lock'), array('bigintval', '', '', 'translateComma', 'bigintval', 'translateComma', '', '', 'bigintval', 'translateComma', 'translateComma', 'translateComma', 'translateComma', '', 'bigintval'), array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '') ); $show = false; - } elseif (isPostRequestElementSet('do_edit')) { + } elseif (isPostRequestParameterSet('do_edit')) { // Delete entries (with confirmation) - adminEditEntriesConfirm(postRequestElement('id'), 'bank_packages', array(), array(), array(), true); - } elseif (isPostRequestElementSet('delete')) { + adminEditEntriesConfirm(postRequestParameter('id'), 'bank_packages', array(), array(), array(), true); + } elseif (isPostRequestParameterSet('delete')) { // Delete entries (with confirmation) - adminDeleteEntriesConfirm(postRequestElement('id'), 'bank_packages', array('id', 'title', 'description', 'account_fee'), array('bigintval', '', '', 'translateComma'), array('', '', '', '')); + adminDeleteEntriesConfirm(postRequestParameter('id'), 'bank_packages', array('id', 'title', 'description', 'account_fee'), array('bigintval', '', '', 'translateComma'), array('', '', '', '')); $show = false; - } elseif (isPostRequestElementSet('remove')) { + } elseif (isFormSent('remove')) { // Delete entries (with confirmation) - adminDeleteEntriesConfirm(postRequestElement('id'), 'bank_packages', array(), array(), array(), true); + adminDeleteEntriesConfirm(postRequestParameter('id'), 'bank_packages', array(), array(), array(), true); } } // END - if @@ -78,20 +79,19 @@ if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && ( if ($show === false) return; // Load all banking packages from DB -$result = SQL_QUERY("SELECT id, title, description, account_fee AS 'fee', package_active AS 'active', interest_plus AS 'plus', interest_minus AS 'minus' -FROM `{?_MYSQL_PREFIX?}_bank_packages` -ORDER BY `id`", __FILE__, __LINE__); +$result = SQL_QUERY("SELECT + `id`, `title`, `description`, `account_fee`, `package_active`, `interest_plus`, `interest_minus` +FROM + `{?_MYSQL_PREFIX?}_bank_packages` +ORDER BY + `id` ASC", __FILE__, __LINE__); // Is there at lease one package? if (SQL_NUMROWS($result) > 0) { // List all packages $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result)) { - // "Translate" some data - $content['active'] = translateYesNo($content['active']); - $content['fee'] = translateComma($content['fee']); - $content['plus'] = translateComma($content['plus']); - $content['minus'] = translateComma($content['minus']); + // Add color switch $content['sw'] = $SW; // Load row template @@ -103,11 +103,11 @@ if (SQL_NUMROWS($result) > 0) { loadTemplate('admin_list_bank_package', false, $OUT); } else { // No packages found! - loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BANK_NO_PACKAGES_FOUND')); + loadTemplate('admin_settings_saved', false, '{--ADMIN_BANK_NO_PACKAGES_FOUND--}'); } // Free the result SQL_FREERESULT($result); -// +// [EOF] ?>