X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-payments.php;h=07e2a54fc4f4d1a29a3e28e90f442300f7a340cc;hb=2b55889fa41363630a0bb759e97868032983dc56;hp=0033e186b31090b0820d5982f27461903d38f9d2;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/modules/admin/what-payments.php b/inc/modules/admin/what-payments.php index 0033e186b3..07e2a54fc4 100644 --- a/inc/modules/admin/what-payments.php +++ b/inc/modules/admin/what-payments.php @@ -59,7 +59,7 @@ if (isFormSent()) { case 'edit': foreach (postRequestElement('time') as $id => $value) { - addSql("UPDATE `{?_MYSQL_PREFIX?}_payments` SET `time`='" . $value . "', `payment`='".postRequestElement('payment', $id)."', price='".postRequestElement('price', $id)."', mail_title='".postRequestElement('mail_title', $id)."' WHERE `id`='".$id."' LIMIT 1"); + addSql("UPDATE `{?_MYSQL_PREFIX?}_payments` SET `time`='" . $value . "',`payment`='".postRequestElement('payment', $id)."', price='".postRequestElement('price', $id)."', mail_title='".postRequestElement('mail_title', $id)."' WHERE `id`='".$id."' LIMIT 1"); } // END - foreach break; @@ -74,10 +74,10 @@ if (isFormSent()) { if (countSqls() > 0) { // Run all queries runFilterChain('run_sqls'); - $content = '{--SETTINGS_SAVED--}'; + $content = '{--SETTINGS_SAVED--}'; } else { // Nothing has changed! - $content = '{--SETTINGS_NOT_SAVED--}'; + $content = '{--SETTINGS_NOT_SAVED--}'; } // Output template @@ -117,10 +117,10 @@ if (isFormSent()) { // Load main template loadTemplate('admin_edit_payments', false, $OUT); } else { - // Referal levels + // Referral levels $result = SQL_QUERY("SELECT `id`,`time`,`payment`,`mail_title`,`price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__); if (!SQL_HASZERONUMS($result)) { - // Make referal levels editable and deletable + // Make referral levels editable and deletable $OUT = ''; // List already existing categories for editing @@ -136,7 +136,7 @@ if (isFormSent()) { loadTemplate('admin_list_payments', false, $OUT); } // END - if - // Form for adding new referal levels + // Form for adding new referral levels loadTemplate('admin_add_payment'); }