]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_emails.php
Introduced padLeftZero()
[mailer.git] / inc / modules / admin / what-edit_emails.php
index 4d998c0132968ac39764c8d8f9ef919f028e1e0e..9e42da8f8846a28cadab4936624ed8ada44808ae 100644 (file)
@@ -70,7 +70,7 @@ LIMIT 1',
        SQL_FREERESULT($result);
 
        // Load template
-       loadTemplate('admin_edit_email', false, $content);
+       loadTemplate('admin_edit_email', FALSE, $content);
 } elseif (isGetRequestElementSet('mid')) {
        // Make also this email editable
        $result = SQL_QUERY_ESC('SELECT
@@ -93,7 +93,7 @@ LIMIT 1',
        SQL_FREERESULT($result);
 
        // Load template
-       loadTemplate('admin_edit_email', false, $content);
+       loadTemplate('admin_edit_email', FALSE, $content);
 } elseif (isGetRequestElementSet('bid')) {
                // Make also this email editable
                $result = SQL_QUERY_ESC('SELECT
@@ -115,8 +115,8 @@ LIMIT 1',
        SQL_FREERESULT($result);
 
        // Load template
-       loadTemplate('admin_edit_bonus_email', false, $content);
-} elseif (isFormSent('save')) {
+       loadTemplate('admin_edit_bonus_email', FALSE, $content);
+} elseif (isFormSent('do_edit')) {
        // Save changes
        if (isPostRequestElementSet('mid')) {
                // Update pool
@@ -190,14 +190,14 @@ ORDER BY
                $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Load row template and switch colors
-                       $OUT .= loadTemplate('admin_edit_email_row', true, $content);
+                       $OUT .= loadTemplate('admin_edit_email_row', TRUE, $content);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Load email template
-               loadTemplate('admin_edit_email_select', false, $OUT);
+               loadTemplate('admin_edit_email_select', FALSE, $OUT);
        } else {
                // No mail orders left in pool
                displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');