From: Roland Häder Date: Wed, 18 Nov 2009 04:27:09 +0000 (+0000) Subject: Fix for rewritting code #4 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58f55e4161d3b4034ea54ad486d90fc045288d89;p=mailer.git Fix for rewritting code #4 --- diff --git a/inc/modules/admin/what-admins_mails.php b/inc/modules/admin/what-admins_mails.php index d07a7d120e..fc6a658a08 100644 --- a/inc/modules/admin/what-admins_mails.php +++ b/inc/modules/admin/what-admins_mails.php @@ -49,7 +49,7 @@ if (isPostRequestElementSet('edit')) { if (countPostSelection() > 0) { // Add option for events $adminsList = generateOptionList('admins', 'id', 'login', '', 'email'); - $SW = 2; $rowNameS = ''; + $SW = 2; $rows = ''; foreach (postRequestElement('sel') as $template => $sel) { // First of all load data from DB $result = SQL_QUERY_ESC("SELECT `admin_id`, `id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC", @@ -92,12 +92,12 @@ if (isPostRequestElementSet('edit')) { $content['content'] = $OUT; // Start outputing line - $rowNameS .= loadTemplate('admin_admins_mails_edit_row', true, $content); + $rows .= loadTemplate('admin_admins_mails_edit_row', true, $content); $SW = 3 - $SW; } // Edit checked entries - loadTemplate('admin_admins_mails_edit', false, $rowNameS); + loadTemplate('admin_admins_mails_edit', false, $rows); } else { // Nothing selected loadTemplate('admin_settings_saved', false, getMessage('ADMINS_NO_MAIL_CHECKED')); diff --git a/templates/de/html/admin/admin_admins_mails_edit_row.tpl b/templates/de/html/admin/admin_admins_mails_edit_row.tpl index 0bb276ffaa..7c0c5de7d2 100644 --- a/templates/de/html/admin/admin_admins_mails_edit_row.tpl +++ b/templates/de/html/admin/admin_admins_mails_edit_row.tpl @@ -1,7 +1,9 @@ - $content[mail_template] + $content[mail_template] + + - $content[content] + $content[content] +