diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-07 08:00:05 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-07 08:00:05 +0000 |
commit | c0455678c1f6644801e5c25cb07510e49db7b28d (patch) | |
tree | c32edccb9386316c8b6ff1f885efa8a66ac0d067 /browse.php | |
parent | 0dcbad80cde204cfda078b5fc16a92c41d74c87d (diff) | |
download | ampache-c0455678c1f6644801e5c25cb07510e49db7b28d.tar.gz ampache-c0455678c1f6644801e5c25cb07510e49db7b28d.tar.bz2 ampache-c0455678c1f6644801e5c25cb07510e49db7b28d.zip |
started work on the sorting, and added in album viewing that kinda works
Diffstat (limited to 'browse.php')
-rw-r--r-- | browse.php | 32 |
1 files changed, 4 insertions, 28 deletions
@@ -42,34 +42,9 @@ echo '<div id="browse_content">'; switch($_REQUEST['action']) { case 'file': case 'album': - show_alphabet_list('albums','albums.php',$match); - show_alphabet_form($match,_("Show Albums starting with"),"albums.php?action=match"); - - /* Get the results and show them */ - $sql = "SELECT id FROM album WHERE name LIKE '$match%'"; - - $view = new View(); - $view->import_session_view(); - - // if we are returning - if ($_REQUEST['keep_view']) { - $view->initialize(); - } - - // If we aren't keeping the view then initlize it - elseif ($sql) { - $db_results = mysql_query($sql, dbh()); - $total_items = mysql_num_rows($db_results); - if ($match != "Show_all") { $offset_limit = $user->prefs['offset_limit']; } - $view = new View($sql, 'albums.php','name',$total_items,$offset_limit); - } - - else { $view = false; } - - if ($view->base_sql) { - $albums = get_albums($view->sql); - show_albums($albums,$view); - } + Browse::set_type('album'); + $album_ids = Browse::get_objects(); + Browse::show_objects($album_ids); break; case 'artist': show_alphabet_list('artists','artists.php'); @@ -107,6 +82,7 @@ switch($_REQUEST['action']) { Browse::set_type('song'); $song_ids = Browse::get_objects(); Browse::show_objects($song_ids); + break; case 'catalog': |