]> git.mxchange.org Git - mailer.git/commitdiff
Fix for rewritting code #4
authorRoland Häder <roland@mxchange.org>
Wed, 18 Nov 2009 04:27:09 +0000 (04:27 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 18 Nov 2009 04:27:09 +0000 (04:27 +0000)
inc/modules/admin/what-admins_mails.php
templates/de/html/admin/admin_admins_mails_edit_row.tpl

index d07a7d120eec2591ea76413cc94403830b6b465b..fc6a658a08cfdbdfff47cbf3fe7439b27c504b2e 100644 (file)
@@ -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'));
index 0bb276ffaaa0c871c585c4dc650d340f95703d75..7c0c5de7d2709adf6115f079fc3ce6fc5fb26dd3 100644 (file)
@@ -1,7 +1,9 @@
 <tr>
        <td align="center" class="switch_sw$content[sw] bottom right">
-       $content[mail_template] <input type="hidden" name="template[$content[id2]]"
-               value="$content[mail_template]"></td>
+               $content[mail_template]
+               <input type="hidden" name="template[$content[id]]" value="$content[mail_template]" />
+       </td>
        <td align="center" class="switch_sw$content[sw] bottom">
-       $content[content]</td>
+               $content[content]
+       </td>
 </tr>