X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_bank_package.php;h=491e87b4891ffacde7a06d9b840fdfc335f1c3dc;hb=534f676dc29968019d4313922a9a26e467681e35;hp=33e0b206c093b74183e57cf377013f40aaea5a79;hpb=0a37fc5afcd828646d4e62e68fea07c3d2c54a87;p=mailer.git diff --git a/inc/modules/admin/what-list_bank_package.php b/inc/modules/admin/what-list_bank_package.php index 33e0b206c0..491e87b489 100644 --- a/inc/modules/admin/what-list_bank_package.php +++ b/inc/modules/admin/what-list_bank_package.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -44,8 +44,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Check if there is enougth selected -$show = true; -if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && (count(postRequestElement('id')) > 0)) { +$show = TRUE; +if (ifPostContainsSelections('id')) { // Okay, which button was pressed? if (isFormSent('change')) { // Change permissions @@ -108,7 +108,7 @@ if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && ( '' ) ); - $show = false; + $show = FALSE; } elseif (isFormSent('do_edit')) { // Delete entries (with confirmation) adminEditEntriesConfirm( @@ -118,7 +118,7 @@ if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && ( array(), array(), array(), - array(true) + array(TRUE) ); } elseif (isFormSent('delete')) { // Delete entries (with confirmation) @@ -145,7 +145,7 @@ if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && ( '' ) ); - $show = false; + $show = FALSE; } elseif (isFormSent('do_delete')) { // Delete entries (with confirmation) adminDeleteEntriesConfirm( @@ -155,40 +155,46 @@ if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && ( array(), array(), array(), - array(true) + array(TRUE) ); } } // END - if // Skip showing old entries? -if ($show === false) return; +if ($show === FALSE) return; // Load all banking packages from DB -$result = SQL_QUERY("SELECT - `id`,`title`,`description`,`account_fee`,`package_active`,`interest_plus`,`interest_minus` +$result = sqlQuery('SELECT + `id`, + `title`, + `description`, + `account_fee`, + `package_active`, + `interest_plus`, + `interest_minus` FROM `{?_MYSQL_PREFIX?}_bank_packages` ORDER BY - `id` ASC", __FILE__, __LINE__); + `id` ASC', __FILE__, __LINE__); // Is there at lease one package? -if (!SQL_HASZERONUMS($result)) { +if (!ifSqlHasZeroNums($result)) { // List all packages $OUT = ''; - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Load row template - $OUT .= loadTemplate('admin_list_bank_package_row', true, $content); + $OUT .= loadTemplate('admin_list_bank_package_row', TRUE, $content); } // END - while // Load main template - loadTemplate('admin_list_bank_package', false, $OUT); + loadTemplate('admin_list_bank_package', FALSE, $OUT); } else { // No packages found displayMessage('{--ADMIN_BANK_NO_PACKAGES_FOUND--}'); } // Free the result -SQL_FREERESULT($result); +sqlFreeResult($result); // [EOF] ?>