]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bank_package.php
Project continued:
[mailer.git] / inc / modules / admin / what-list_bank_package.php
index a8d1c1720c82a0d026dd17eef44bd389ea53cd38..f35badc028826a029d6b976f953a7642e7f63b9c 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Check if there is enougth selected
-$show = true;
+$show = TRUE;
 if (ifPostContainsSelections('id')) {
        // Okay, which button was pressed?
        if (isFormSent('change')) {
@@ -108,7 +108,7 @@ if (ifPostContainsSelections('id')) {
                                ''
                        )
                );
-               $show = false;
+               $show = FALSE;
        } elseif (isFormSent('do_edit')) {
                // Delete entries (with confirmation)
                adminEditEntriesConfirm(
@@ -118,7 +118,7 @@ if (ifPostContainsSelections('id')) {
                        array(),
                        array(),
                        array(),
-                       array(true)
+                       array(TRUE)
                );
        } elseif (isFormSent('delete')) {
                // Delete entries (with confirmation)
@@ -145,7 +145,7 @@ if (ifPostContainsSelections('id')) {
                                ''
                        )
                );
-               $show = false;
+               $show = FALSE;
        } elseif (isFormSent('do_delete')) {
                // Delete entries (with confirmation)
                adminDeleteEntriesConfirm(
@@ -155,21 +155,27 @@ if (ifPostContainsSelections('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 = 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__);
+       `id` ASC', __FILE__, __LINE__);
 
 // Is there at lease one package?
 if (!SQL_HASZERONUMS($result)) {
@@ -177,11 +183,11 @@ if (!SQL_HASZERONUMS($result)) {
        $OUT = '';
        while ($content = SQL_FETCHARRAY($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--}');