$SW, 'title' => $title, 'action' => $act, 'clicks' => $clicks, ); // Load row template $OUT .= LOAD_TEMPLATE("admin_mods_stats2_row", true, $content); // Switch colors $SW = 3 - $SW; } // Free memory SQL_FREERESULT($result); define('__MODS_ROWS', $OUT); // Load final template LOAD_TEMPLATE("admin_mods_stats2"); } else { // Load module statics $result = SQL_QUERY("SELECT module, title, clicks FROM "._MYSQL_PREFIX."_mod_reg ORDER BY clicks DESC, module", __FILE__, __LINE__); $SW = 2; $OUT = ""; while(list($mod, $title, $clicks) = SQL_FETCHROW($result)) { if (empty($title)) $title = "---"; if (($mod == "index") || ($mod == "login")) { // Add link to detail statistics $mod = "".$mod.""; } // Prepare array for the template $content = array( 'sw' => $SW, 'title' => $title, 'mod' => $mod, 'clicks' => $clicks, ); // Load row template $OUT .= LOAD_TEMPLATE("admin_mods_stats_row", true, $content); } // Free memory SQL_FREERESULT($result); define('__MODS_ROWS', $OUT); // Load final template LOAD_TEMPLATE("admin_mods_stats"); } // ?>