X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_emails.php;h=74384a2434c50551d10d758f531963eb0e6705d4;hp=c8d9ef649efa2a8945198ea28e3f834acea11238;hb=cf3765c38cf0a76f396aca291f71858936e92956;hpb=7f5ffcc103a856b8867ac5739dcf0a3b6710413a;ds=sidebyside diff --git a/inc/modules/admin/what-unlock_emails.php b/inc/modules/admin/what-unlock_emails.php index c8d9ef649e..74384a2434 100644 --- a/inc/modules/admin/what-unlock_emails.php +++ b/inc/modules/admin/what-unlock_emails.php @@ -126,7 +126,7 @@ LIMIT 1", } elseif (isPostRequestParameterSet(('reject'))) { if (countPostSelection() > 0) { // Reject mail orders - $OUT = ''; $SW = 2; + $OUT = ''; foreach (postRequestParameter('sel') as $id => $value) { // Secure id number $id = bigintval($id); @@ -154,15 +154,13 @@ LIMIT 1", // Prepare data for the row template $content = array( - 'sw' => $SW, 'id' => $id, 'url' => postRequestParameter('url', $id), ); // Load row template and switch colors $OUT .= loadTemplate('admin_unlock_emails_redir_row', true, $content); - $SW = 3 - $SW; - } + } // END - foreach // Load main template loadTemplate('admin_unlock_emails_redir', false, $OUT); @@ -193,15 +191,13 @@ LIMIT 1", loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}'); } elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) { // Mail orders are in pool so we can display them - $OUT = ''; $SW = 2; + $OUT = ''; while ($content = SQL_FETCHARRAY($result_main)) { // Prepare data for the template - $content['sw'] = $SW; $content['timestamp'] = generateDateTime($content['timestamp'], 2); // Load row template and switch colors $OUT .= loadTemplate('admin_unlock_emails_row', true, $content); - $SW = 3 - $SW; } // END - while // Free memory