summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-24 03:15:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-24 03:15:05 +0000
commitae70bce26c2f39da93c85a082602d58dcf13652e (patch)
tree0bf530733d44216846ad39f245bc238baf174cee /albums.php
parentcb12b4a8c948d901f6851a7eae032827b423704d (diff)
downloadampache-ae70bce26c2f39da93c85a082602d58dcf13652e.tar.gz
ampache-ae70bce26c2f39da93c85a082602d58dcf13652e.tar.bz2
ampache-ae70bce26c2f39da93c85a082602d58dcf13652e.zip
more updates to the theme stuff
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php29
1 files changed, 9 insertions, 20 deletions
diff --git a/albums.php b/albums.php
index 606104d7..d62097e4 100644
--- a/albums.php
+++ b/albums.php
@@ -151,16 +151,22 @@ elseif ($_REQUEST['action'] === 'update_from_tags') {
else {
- if (strlen($_REQUEST['match']) < '1') { $match = 'none'; }
+ if (strlen($_REQUEST['match']) < '1') { $match = 'a'; }
// Setup the View Ojbect
$view = new View();
$view->import_session_view();
+ if ($match == 'Show_all' || $match == 'Show_missing_art' || $match == 'Browse') { $chr = ''; }
+ else { $chr = $match; }
+
+ require (conf('prefix') . '/templates/show_box_top.inc.php');
+ show_alphabet_list('albums','albums.php',$match);
+ show_alphabet_form($chr,_('Show Albums starting with'),"albums.php?action=match");
+ require (conf('prefix') . '/templates/show_box_bottom.inc.php');
+
switch($match) {
case 'Show_all':
- show_alphabet_list('albums','albums.php','show_all');
- show_alphabet_form('',_("Show Albums starting with"),"albums.php?action=match");
$offset_limit = 99999;
$sql = "SELECT album.id FROM song,album ".
" WHERE song.album=album.id ".
@@ -168,8 +174,6 @@ else {
" HAVING COUNT(song.id) > $min_album_size ";
break;
case 'Show_missing_art':
- show_alphabet_list('albums','albums.php','show_missing_art');
- show_alphabet_form('',_("Show Albums starting with"),"albums.php?action=match");
$offset_limit = 99999;
$sql = "SELECT album.id FROM song,album ".
" WHERE song.album=album.id ".
@@ -179,27 +183,12 @@ else {
break;
case 'Browse':
case 'show_albums':
- show_alphabet_list('albums','albums.php','browse');
- show_alphabet_form('',_("Show Albums starting with"),"albums.php?action=match");
- $sql = "SELECT album.id FROM song,album ".
- " WHERE song.album=album.id ".
- "GROUP BY song.album ".
- " HAVING COUNT(song.id) > $min_album_size ";
- break;
- case 'none':
- show_alphabet_list('albums','albums.php','a');
- show_alphabet_form('',_("Show Albums starting with"),"albums.php?action=match");
$sql = "SELECT album.id FROM song,album ".
" WHERE song.album=album.id ".
- " AND album.name LIKE 'a%'".
"GROUP BY song.album ".
" HAVING COUNT(song.id) > $min_album_size ";
break;
default:
- //FIXME: This is the old way of doing it, move this to browse
- show_alphabet_list('albums','albums.php',$match);
- show_alphabet_form($match,_("Show Albums starting with"),"albums.php?action=match");
- echo "<br /><br />";
$sql = "SELECT album.id FROM song,album ".
" WHERE song.album=album.id ".
" AND album.name LIKE '$match%'".