diff options
author | spocky <spocky@ampache> | 2007-10-16 20:26:16 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-10-16 20:26:16 +0000 |
commit | 15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f (patch) | |
tree | 0d16eb9fb44337d4176af2ca42c3ca070b878113 /lib/class | |
parent | 4b58b3e218d2e926d7bb0e4d07be2877853de689 (diff) | |
download | ampache-15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f.tar.gz ampache-15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f.tar.bz2 ampache-15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f.zip |
- hardcoded disk# sort order when sort is set to album name
- removed pager from browse table
- added footer to browse tables
- updated browse files for better customization
- modified css
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/browse.class.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index 89341ec2..fbcc2948 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -428,7 +428,7 @@ class Browse { case 'album': switch($field) { case 'name': - $sql = "`album`.`name`"; + $sql = "`album`.`name`, `album`.`disk`"; break; case 'year': $sql = "`album`.`year`"; @@ -503,44 +503,45 @@ class Browse { // Format any matches we have so we can show them to the masses $match = $_SESSION['browse']['filter']['alpha_match'] ? ' (' . $_SESSION['browse']['filter']['alpha_match'] . ')' : ''; + $class = "box browse_".$_SESSION['browse']['type']; switch ($_SESSION['browse']['type']) { case 'song': - show_box_top(_('Songs') . $match); + show_box_top(_('Songs') . $match, $class); require_once Config::get('prefix') . '/templates/show_songs.inc.php'; show_box_bottom(); break; case 'album': - show_box_top(_('Albums') . $match); + show_box_top(_('Albums') . $match, $class); require_once Config::get('prefix') . '/templates/show_albums.inc.php'; show_box_bottom(); break; case 'genre': - show_box_top(_('Genres') . $match); + show_box_top(_('Genres') . $match, $class); require_once Config::get('prefix') . '/templates/show_genres.inc.php'; show_box_bottom(); break; case 'user': - show_box_top(_('Manage Users') . $match); + show_box_top(_('Manage Users') . $match, $class); require_once Config::get('prefix') . '/templates/show_users.inc.php'; show_box_bottom(); break; case 'artist': - show_box_top(_('Artists') . $match); + show_box_top(_('Artists') . $match, $class); require_once Config::get('prefix') . '/templates/show_artists.inc.php'; show_box_bottom(); break; case 'live_stream': - show_box_top(_('Radion Stations') . $match); + show_box_top(_('Radion Stations') . $match, $class); require_once Config::get('prefix') . '/templates/show_live_streams.inc.php'; show_box_bottom(); break; case 'playlist': - show_box_top(_('Playlists') . $match); + show_box_top(_('Playlists') . $match, $class); require_once Config::get('prefix') . '/templates/show_playlists.inc.php'; show_box_bottom(); break; case 'catalog': - show_box_top(_('Catalogs')); + show_box_top(_('Catalogs'), $class); require_once Config::get('prefix') . '/templates/show_catalogs.inc.php'; show_box_bottom(); break; |