X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-stats.php;h=38ea6bbf473a8d561e7d32bb0f2daf5d3be44e3c;hp=2ef513ca78cab39f7975ced9dd88a2e9d02a50f5;hb=cf3765c38cf0a76f396aca291f71858936e92956;hpb=7f5ffcc103a856b8867ac5739dcf0a3b6710413a diff --git a/inc/modules/guest/what-stats.php b/inc/modules/guest/what-stats.php index 2ef513ca78..38ea6bbf47 100644 --- a/inc/modules/guest/what-stats.php +++ b/inc/modules/guest/what-stats.php @@ -163,23 +163,21 @@ switch (getConfig('guest_stats')) { $l = 'll'; $r = 'lr'; } $SW = 3 - $SW; - } + } // END - foreach $content['month_rows'] = $OUT; // Generate category stats - $OUT = ''; $SW = 2; + $OUT = ''; foreach ($cat_cnt as $id => $cnt) { // Prepare data for the template $data = array( - 'sw' => $SW, 'cat' => $cats[$id], 'cnt' => $cnt, ); // Load row template and switch colors $OUT .= loadTemplate('guest_stats_cats_row', true, $data); - $SW = 3 - $SW; - } + } // END - foreach $content['cats_rows'] = $OUT; // Load final template @@ -199,26 +197,18 @@ switch (getConfig('guest_stats')) { if (SQL_NUMROWS($guest_t10) > 0) { // Guest clicks $OUT .= loadTemplate('guest_stats_header', true, '{--GUEST_TOP_GUEST_STATS--}'); - $SW = 2; while ($content = SQL_FETCHARRAY($guest_t10)) { - $content['sw'] = $SW; - // Load row template $OUT .= loadTemplate('guest_stats_row', true, $content); - $SW = 3 - $SW; } // END - while } // END - if if (SQL_NUMROWS($mem_t10) > 0) { // Member clicks $OUT .= loadTemplate('guest_stats_header', true, '{--GUEST_TOP_MEMBER_STATS--}'); - $SW = 2; while ($content = SQL_FETCHARRAY($mem_t10)) { - $content['sw'] = $SW; - // Load row template $OUT .= loadTemplate('guest_stats_row', true, $content); - $SW = 3 - $SW; } // END - while } // END - if