]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-guestedit.php
Naming convention applied: is outdated, use (not shortended word), fixed missing...
[mailer.git] / inc / modules / admin / what-guestedit.php
index 2a9d15f2773e51d475a77ba120c33113312a8c09..69c5b0a345c5ed7c41dbc807dcbb50780c091d65 100644 (file)
@@ -57,10 +57,10 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        $content['sub'] = $subMenu;
        $content['chk'] = countPostSelection();
 
-       $cnt = '0'; $OUT = '';
+       $count = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
-                       $cnt++;
+                       $count++;
                        $result = SQL_QUERY_ESC("SELECT `title`, `action`, `what` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
@@ -69,7 +69,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
 
                                // Prepapre content
                                $DATA = array(
-                                       'cnt'    => $cnt,
+                                       'cnt'    => $count,
                                        'sel'    => $sel,
                                        'action' => adminAddMenuSelectionBox('guest', 'action', 'sel_action[' . $sel . ']', $DATA['action']),
                                        'what'   => adminAddMenuSelectionBox('guest', 'what'  , 'sel_what['   . $sel . ']', $DATA['what']),
@@ -92,7 +92,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        } // END - foreach
 
        $content['rows'] = $OUT;
-       $content['cnt']  = $cnt;
+       $content['cnt']  = $count;
 
        // Load template
        loadTemplate('admin_edit_guest_menu_form', false, $content);
@@ -101,19 +101,19 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        $content['sub'] = $subMenu;
        $content['chk'] = countPostSelection();
 
-       $cnt = '0';
+       $count = '0';
        $OUT = '';
 
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
-                       $cnt++;
+                       $count++;
                        $result = SQL_QUERY_ESC("SELECT `title` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
                                $DATA = SQL_FETCHARRAY($result);
                                $DATA = array(
-                                       'cnt'  => $cnt,
+                                       'cnt'  => $count,
                                        'menu' => $DATA['title'],
                                        'sel'  => $sel,
                                );
@@ -129,7 +129,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                } // END - if
        } // END - foreach
        $content['rows'] = $OUT;
-       $content['cnt']  = $cnt;
+       $content['cnt']  = $count;
 
        // Load template
        loadTemplate('admin_delete_guest_menu', false, $content);
@@ -139,17 +139,17 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        $content['chk'] = countPostSelection();
 
        // Load template
-       $cnt = '0'; $OUT = '';
+       $count = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
-                       $cnt++;
+                       $count++;
                        $result = SQL_QUERY_ESC("SELECT `title`, `visible`, `locked` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
                                $data = SQL_FETCHARRAY($result);
                                $data = array(
-                                       'cnt'     => $cnt,
+                                       'cnt'     => $count,
                                        'menu'    => $data['title'],
                                        'sel'     => $sel,
                                        'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
@@ -169,7 +169,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                        SQL_FREERESULT($result);
                } // END - if
        } // END - foreach
-       $content['cnt']  = $cnt;
+       $content['cnt']  = $count;
        $content['rows'] = $OUT;
 
        // Load template
@@ -197,16 +197,16 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                $content['sub'] = $subMenu;
 
                // Init variables
-               $cnt = '0';
+               $count = '0';
                $OUT = '';
 
                // Process all menu entries
                while ($data = SQL_FETCHARRAY($result)) {
-                       $cnt++;
+                       $count++;
                        if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($subMenu)))) {
                                // Is highest position
                                $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
-                       } elseif ($cnt == SQL_NUMROWS($result)) {
+                       } elseif ($count == SQL_NUMROWS($result)) {
                                // Is lowest position
                                $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>';
                        } elseif ($data['sort'] > 0) {