]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-payments.php
Project continued:
[mailer.git] / inc / modules / admin / what-payments.php
index 8723a902c23c8cce6418813e900e8346b49093f1..0f11f5fed2984351a16089fedc30a4388e14b462 100644 (file)
@@ -51,7 +51,7 @@ if (isFormSent()) {
        switch (getRequestElement('do')) {
                case 'add':
                        addSql("INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES ('".postRequestElement('t_wait')."','".postRequestElement('payment')."','".postRequestElement('title')."','".postRequestElement('price')."')");
-                       if (countSumTotalData(postRequestElement('t_wait'), 'payments', 'id', 'time', true) == 1) {
+                       if (countSumTotalData(postRequestElement('t_wait'), 'payments', 'id', 'time', TRUE) == 1) {
                                // Re-init the array here
                                initSqls();
                        } // END - if
@@ -99,11 +99,11 @@ if (isFormSent()) {
                SQL_FREERESULT($result);
 
                // Load row template and switch colors
-               $OUT .= loadTemplate('admin_delete_payments_row', true, $content);
+               $OUT .= loadTemplate('admin_delete_payments_row', TRUE, $content);
        } // END - foreach
 
        // Load main template
-       loadTemplate('admin_delete_payments', false, $OUT);
+       loadTemplate('admin_delete_payments', FALSE, $OUT);
 } elseif ((isFormSent('edit')) && (ifPostContainsSelections())) {
        // Edit entries
        $OUT = '';
@@ -116,11 +116,11 @@ if (isFormSent()) {
                SQL_FREERESULT($result);
 
                // Load row template and switch colors
-               $OUT .= loadTemplate('admin_edit_payments_row', true, $content);
+               $OUT .= loadTemplate('admin_edit_payments_row', TRUE, $content);
        } // END - foreach
 
        // Load main template
-       loadTemplate('admin_edit_payments', false, $OUT);
+       loadTemplate('admin_edit_payments', FALSE, $OUT);
 } else {
        // Referral levels
        $result = SQL_QUERY("SELECT `id`, `time`, `payment`, `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
@@ -131,14 +131,14 @@ if (isFormSent()) {
                // List already existing categories for editing
                while ($content = SQL_FETCHARRAY($result)) {
                        // Load row template and switch colors
-                       $OUT .= loadTemplate('admin_list_payments_row', true, $content);
+                       $OUT .= loadTemplate('admin_list_payments_row', TRUE, $content);
                } // END - switch
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Load main template
-               loadTemplate('admin_list_payments', false, $OUT);
+               loadTemplate('admin_list_payments', FALSE, $OUT);
        } // END - if
 
        // Form for adding new referral levels