]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_payouts.php
Huge rewrite:
[mailer.git] / inc / modules / admin / what-config_payouts.php
index ef1973fbe404d45fc4730c5a1e52329d350f084c..0143150c274ddfdc780c2a2cd1833f79174c6273 100644 (file)
@@ -70,13 +70,13 @@ VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')",
                ), __FILE__, __LINE__);
 
                // Get message
-               $msg = getMessage('ADMIN_PAYOUT_TYPE_ADDED');
+               $message = getMessage('ADMIN_PAYOUT_TYPE_ADDED');
        } else {
                // Free memory
                SQL_FREERESULT($result);
 
                // Does already exist
-               $msg = "<div class=\"admin_failed\">{--ADMIN_PAYOUT_TYPE_ALREADY--}</div>";
+               $message = "<div class=\"admin_failed\">{--ADMIN_PAYOUT_TYPE_ALREADY--}</div>";
        }
 }
 
@@ -117,7 +117,7 @@ WHERE `id`='".$id."' LIMIT 1",
                runFilterChain('run_sqls');
 
                // Get message
-               $msg = getMessage('ADMIN_PAYOUT_ENTRIES_CHANGED');
+               $message = getMessage('ADMIN_PAYOUT_ENTRIES_CHANGED');
        } else {
                $display = false; //Suppress any other outputs
                $OUT = ''; $SW = 2;
@@ -165,7 +165,7 @@ WHERE `id`='".$id."' LIMIT 1",
                runFilterChain('run_sqls');
 
                // Get message
-               $msg = getMessage('ADMIN_PAYOUT_ENTRIES_DELETED');
+               $message = getMessage('ADMIN_PAYOUT_ENTRIES_DELETED');
        } else {
                $display = false; //Suppress any other outputs
                $OUT = ''; $SW = 2;
@@ -199,13 +199,18 @@ WHERE `id`='".$id."' LIMIT 1",
        }
 }
 
-if (!empty($msg)) {
+if (!empty($message)) {
        // Output message
-       LOAD_TEMPLATE('admin_settings_saved', false, $msg);
-}
+       LOAD_TEMPLATE('admin_settings_saved', false, $message);
+} // END - if
 
 // Payout types
-$result_type = SQL_QUERY("SELECT id, type, rate, min_points, from_account FROM `{!_MYSQL_PREFIX!}_payout_types` ORDER BY type", __FILE__, __LINE__);
+$result_type = SQL_QUERY("SELECT
+       `id`, `type`, `rate`, `min_points`, `from_account`
+FROM
+       `{!_MYSQL_PREFIX!}_payout_types`
+ORDER BY
+       `type` ASC", __FILE__, __LINE__);
 
 if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
        // List all payout types