X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-payments.php;h=0f11f5fed2984351a16089fedc30a4388e14b462;hb=5ab0d021f3e96722af5d96d2b9036430200c06cb;hp=8723a902c23c8cce6418813e900e8346b49093f1;hpb=2df9f7a53f8b1dd5164f87824a324ccb3b6634cb;p=mailer.git diff --git a/inc/modules/admin/what-payments.php b/inc/modules/admin/what-payments.php index 8723a902c2..0f11f5fed2 100644 --- a/inc/modules/admin/what-payments.php +++ b/inc/modules/admin/what-payments.php @@ -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