X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_bank_package.php;h=bb2fa1fbb1d76aee1f895375d1abe16a6a7f8b18;hb=17c1d13dde4b9725bb9dc55c49838ff9aa751dc0;hp=385c115eae1b0bcf1520a228d44d2f00fff4d1cb;hpb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;p=mailer.git diff --git a/inc/modules/admin/what-list_bank_package.php b/inc/modules/admin/what-list_bank_package.php index 385c115eae..bb2fa1fbb1 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, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -55,21 +55,104 @@ if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id'))) adminEditEntriesConfirm( 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('', '', '', '', '', '', '', '', '', '', '', '', '', '', '') + 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 (isPostRequestParameterSet('do_edit')) { + } elseif (isFormSent('do_edit')) { // Delete entries (with confirmation) - adminEditEntriesConfirm(postRequestParameter('id'), 'bank_packages', array(), array(), array(), true); - } elseif (isPostRequestParameterSet('delete')) { + adminEditEntriesConfirm( + postRequestParameter('id'), + 'bank_packages', + array(), + array(), + array(), + true + ); + } elseif (isFormSent('delete')) { // Delete entries (with confirmation) - adminDeleteEntriesConfirm(postRequestParameter('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 (isFormSent('remove')) { + } elseif (isFormSent('do_delete')) { // Delete entries (with confirmation) - adminDeleteEntriesConfirm(postRequestParameter('id'), 'bank_packages', array(), array(), array(), true); + adminDeleteEntriesConfirm( + postRequestParameter('id'), + 'bank_packages', + array(), + array(), + array(), + true + ); } } // END - if @@ -96,8 +179,8 @@ if (!SQL_HASZERONUMS($result)) { // Load main template loadTemplate('admin_list_bank_package', false, $OUT); } else { - // No packages found! - loadTemplate('admin_settings_saved', false, '{--ADMIN_BANK_NO_PACKAGES_FOUND--}'); + // No packages found + displayMessage('{--ADMIN_BANK_NO_PACKAGES_FOUND--}'); } // Free the result