X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_email_max_rec.php;h=0dc271e48c99f097bd41814df0428af8b3ac1174;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=cae2ae147525eaefa834ec6da4376f9b89856df1;hpb=fbdd6b3a1bd2559e3f5186f859f40e71eee45ccc;p=mailer.git diff --git a/inc/modules/admin/what-list_email_max_rec.php b/inc/modules/admin/what-list_email_max_rec.php index cae2ae1475..0dc271e48c 100644 --- a/inc/modules/admin/what-list_email_max_rec.php +++ b/inc/modules/admin/what-list_email_max_rec.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -54,7 +54,7 @@ if (isPostRequestElementSet('add_max')) { array(bigintval(postRequestElement('max'))), __FILE__, __LINE__); if (SQL_HASZERONUMS($result)) { // Add this value (including comment) - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES ('%s','%s')", + SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES ('%s','%s')", array(bigintval(postRequestElement('max')), postRequestElement('comment')),__FILE__, __LINE__); $content = '{--ADMIN_MAX_VALUE_SAVED--}'; } else { @@ -102,44 +102,44 @@ if (isPostRequestElementSet('add_max')) { $OUT = ''; foreach (postRequestElement('sel') as $id => $value) { // Load data - $result = SQL_QUERY_ESC("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); $content = SQL_FETCHARRAY($result); SQL_FREERESULT($result); // Load row template and switch color - $OUT .= loadTemplate('admin_delete_email_max_rec_row', true, $content); + $OUT .= loadTemplate('admin_delete_email_max_rec_row', TRUE, $content); } // END - foreach $content['rows'] = $OUT; // Load main template - loadTemplate('admin_delete_email_max_rec', false, $content); + loadTemplate('admin_delete_email_max_rec', FALSE, $content); } elseif ((isFormSent('edit')) && (ifPostContainsSelections())) { // Edit entries $OUT = ''; foreach (postRequestElement('sel') as $id => $value) { // Load data - $result = SQL_QUERY_ESC("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); $content = SQL_FETCHARRAY($result); SQL_FREERESULT($result); // Load row template and switch color - $OUT .= loadTemplate('admin_edit_email_max_rec_row', true, $content); + $OUT .= loadTemplate('admin_edit_email_max_rec_row', TRUE, $content); } // END - foreach $content['rows'] = $OUT; // Load main template - loadTemplate('admin_edit_email_max_rec', false, $content); + loadTemplate('admin_edit_email_max_rec', FALSE, $content); } else { - $result = SQL_QUERY("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC", + $result = SQL_QUERY("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC", __FILE__, __LINE__); if (!SQL_HASZERONUMS($result)) { // List already existing entries for editing $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // Load row template and switch color - $OUT .= loadTemplate('admin_list_email_max_rec_row', true, $content); + $OUT .= loadTemplate('admin_list_email_max_rec_row', TRUE, $content); } // END - while // Free memory @@ -147,7 +147,7 @@ if (isPostRequestElementSet('add_max')) { $content['rows'] = $OUT; // Load main template - loadTemplate('admin_list_email_max_rec', false, $content); + loadTemplate('admin_list_email_max_rec', FALSE, $content); } // END - if // Display form