X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-memedit.php;h=0349a74b3563586efb42342571885c8e262c75b0;hp=53a971aa63bb7040d349ffe3a0e7acb18497e06a;hb=cf3765c38cf0a76f396aca291f71858936e92956;hpb=7f5ffcc103a856b8867ac5739dcf0a3b6710413a diff --git a/inc/modules/admin/what-memedit.php b/inc/modules/admin/what-memedit.php index 53a971aa63..0349a74b35 100644 --- a/inc/modules/admin/what-memedit.php +++ b/inc/modules/admin/what-memedit.php @@ -58,7 +58,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) // Edit menu entries $content['sub'] = $SUB; $content['chk'] = countPostSelection(); - $SW = 2; $cnt = '0'; $OUT = ''; + $cnt = '0'; $OUT = ''; foreach (postRequestParameter('sel') as $sel => $confirm) { if ($confirm == 1) { $cnt++; @@ -71,7 +71,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) 'cnt' => $cnt, 'sel' => $sel, 'menu' => $data['title'], - 'sw' => $SW, 'act' => adminAddMenuSelectionBox('member', 'act' , 'sel_act[' . $sel . ']', $data['action']), 'what' => adminAddMenuSelectionBox('member', 'what', 'sel_what[' . $sel . ']', $data['what']), ); @@ -81,7 +80,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) } else { // Entry not found? $data = array( - 'sw' => $SW, 'sel' => $sel ); @@ -89,9 +87,10 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) $OUT .= loadTemplate('admin_menu_404_row', true, $data); } SQL_FREERESULT($result); - $SW = 3 - $SW; - } - } + } // END - if + } // END - foreach + + // Add row content and current counter $content['rows'] = $OUT; $content['cnt'] = $cnt; @@ -101,7 +100,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) // Del menu entries with or without confirmation $content['sub'] = $SUB; $content['chk'] = countPostSelection(); - $SW = 2; $cnt = '0'; $OUT = ''; + $cnt = '0'; $OUT = ''; foreach (postRequestParameter('sel') as $sel => $confirm) { if ($confirm == 1) { $cnt++; @@ -121,7 +120,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) } else { // Entry not found? $content = array( - 'sw' => $SW, 'sel' => $sel ); @@ -140,7 +138,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) // Change status (visible / locked) $content['sub'] = $SUB; $content['chk'] = countPostSelection(); - $SW = 2; $cnt = '0'; $OUT = ''; + $cnt = '0'; $OUT = ''; foreach (postRequestParameter('sel') as $sel => $confirm) { if ($confirm == 1) { $cnt++; @@ -153,7 +151,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) 'cnt' => $cnt, 'menu' => $data['title'], 'sel' => $sel, - 'sw' => $SW, 'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel), 'locked' => addSelectionBox('yn', $data['locked'] , 'locked' , $sel), ); @@ -163,7 +160,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) } else { // Entry not found? $data = array( - 'sw' => $SW, 'sel' => $sel ); @@ -171,7 +167,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) $OUT .= loadTemplate('admin_menu_404_row', true, $data); } SQL_FREERESULT($result); - $SW = 3 - $SW; } // END - if } // END - foreach $content['rows'] = $OUT; @@ -264,7 +259,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) // Set sub value $content['sub'] = $SUB; - $SW = 2; $cnt = '0'; $OUT = ''; + $cnt = '0'; $OUT = ''; while ($data = SQL_FETCHARRAY($result)) { // Init navigation $data['navi'] = ''; @@ -286,12 +281,10 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) if (empty($data['title'])) $data['title'] = ' '; // Add more entries - $data['sw'] = $SW; $data['mode'] = 'mem'; // Load row template and switch color $OUT .= loadTemplate('admin_menu_overview_row', true, $data); - $SW = 3 - $SW; } // END - while // Free memory