import_session_view(); $genre->show_match_list($_REQUEST['match']); $sql = $genre->get_sql_from_match($_REQUEST['match']); if ($_REQUEST['keep_view']) { $view->initialize(); } else { $db_results = mysql_query($sql, dbh()); $total_items = mysql_num_rows($db_results); $offset_limit = 999999; if ($match != 'Show_All') { $offset_limit = $_SESSION['userdata']['offset_limit']; } $view = new View($sql, 'browse.php?action=genre','name',$total_items,$offset_limit); } if ($view->base_sql) { $genres = $genre->get_genres($view->sql); show_genres($genres,$view); } break; case 'catalog': break; /* Throw recently added, updated here */ default: /* Show Most Popular artist/album/songs */ show_all_popular(); /* Show Recent Additions */ show_all_recent(); break; } // end Switch $action show_clear(); /* Show the Footer */ show_page_footer('Browse', '',$user->prefs['display_menu']); ?>