]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_refs.php
A lot code rewritten:
[mailer.git] / inc / modules / admin / what-list_refs.php
index 227f507f8390b55445baba0e8b69b47c67b5b582..70ab759ac238221f8cb8641b92279d1365e1f122 100644 (file)
@@ -75,11 +75,8 @@ ORDER BY
                // Are there some levels (VERY BAD IF NONE!)
                if (SQL_NUMROWS($result_levels) > 0) {
                        // List all ref levels or entries if no refback is installed
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($levels = SQL_FETCHARRAY($result_levels)) {
-                               // Insert more data
-                               $levels['sw']    = $SW;
-
                                // Is the refback still active? ;-)
                                if (isExtensionActive('refback')) {
                                        // Load all refs of this user
@@ -97,7 +94,7 @@ ORDER BY
                                                $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), $menge, $menge_lck);
 
                                                // Init variables
-                                               $OUT_REFS = ''; $SW = 2;
+                                               $OUT_REFS = '';
 
                                                // Load all refs
                                                while ($content = SQL_FETCHARRAY($result_refs)) {
@@ -109,7 +106,6 @@ ORDER BY
                                                                // Prepare data for the template
                                                                // @TODO Try to rewrite some to EL
                                                                $content = array(
-                                                                       'sw'         => $SW,
                                                                        'userid'     => getUserData('userid'),
                                                                        'gender'     => getUserData('gender'),
                                                                        'refs_link'  => 0,
@@ -132,9 +128,6 @@ ORDER BY
 
                                                        // Add content
                                                        $levels['rows'] = $OUT_REFS;
-
-                                                       // Switch colors
-                                                       $SW = 3 - $SW;
                                                } // END - while
                                        } else {
                                                // Output info message
@@ -155,7 +148,6 @@ ORDER BY
 
                                        // Prepare data for the template
                                        $content = array(
-                                               'sw'         => $SW,
                                                'userid'     => $levels['userid'],
                                                'gender'     => $levels['gender'],
                                                'refs_link'  => 0,
@@ -171,9 +163,6 @@ ORDER BY
 
                                        // Load template for level one
                                        $OUT .= loadTemplate('admin_list_refs_row', true, $content);
-
-                                       // Switch colors
-                                       $SW = 3 - $SW;
                                }
                        } // END - while