0)) { // Okay, which button was pressed? if (isPostRequestElementSet('change')) { // Change permissions adminChangeActivationStatus(postRequestElement('id'), 'bank_packages', 'package_active'); } elseif (isPostRequestElementSet('edit')) { // Delete entries (with confirmation) adminEditEntriesConfirm( postRequestElement('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')) { // Delete entries (with confirmation) adminEditEntriesConfirm(postRequestElement('id'), 'bank_packages', array(), array(), array(), true); } elseif (isPostRequestElementSet('delete')) { // Delete entries (with confirmation) adminDeleteEntriesConfirm(postRequestElement('id'), 'bank_packages', array('id', 'title', 'description', 'account_fee'), array('bigintval', '', '', 'translateComma'), array('', '', '', '')); $show = false; } elseif (isPostRequestElementSet('remove')) { // Delete entries (with confirmation) adminDeleteEntriesConfirm(postRequestElement('id'), 'bank_packages', array(), array(), array(), true); } } // END - if // Skip showing old entries? 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__); // 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']); $content['sw'] = $SW; // Load row template $OUT .= loadTemplate('admin_list_bank_package_row', true, $content); $SW = 3 - $SW; } // END - while // Load main template loadTemplate('admin_list_bank_package', false, $OUT); } else { // No packages found! loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BANK_NO_PACKAGES_FOUND')); } // Free the result SQL_FREERESULT($result); // ?>