summaryrefslogtreecommitdiffstats
path: root/artists.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 /artists.php
parentcb12b4a8c948d901f6851a7eae032827b423704d (diff)
downloadampache-ae70bce26c2f39da93c85a082602d58dcf13652e.tar.gz
ampache-ae70bce26c2f39da93c85a082602d58dcf13652e.tar.bz2
ampache-ae70bce26c2f39da93c85a082602d58dcf13652e.zip
more updates to the theme stuff
Diffstat (limited to 'artists.php')
-rw-r--r--artists.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/artists.php b/artists.php
index 6d4191fb..1f86172d 100644
--- a/artists.php
+++ b/artists.php
@@ -190,21 +190,22 @@ switch($action) {
case 'match':
case 'Match':
$match = scrub_in($_REQUEST['match']);
- preg_match("/^(\w*)/", $match, $matches);
+ if ($match == "Browse" || $match == "Show_all") { $chr = ""; }
+ else { $chr = $match; }
+ /* Enclose this in the purty box! */
+ require (conf('prefix') . '/templates/show_box_top.inc.php');
show_alphabet_list('artists','artists.php',$match);
+ show_alphabet_form($chr,_('Show Artists starting with'),"artists.php?action=match");
+ require (conf('prefix') . '/templates/show_box_bottom.inc.php');
+
if ($match === "Browse") {
- show_alphabet_form('',_('Show Artists starting with'),"artists.php?action=match");
show_artists();
}
elseif ($match === "Show_all") {
- show_alphabet_form('',_('Show Artists starting with'),"artists.php?action=match");
$_SESSION['view_offset_limit'] = 999999;
show_artists();
}
else {
- $chr = preg_replace("/[^a-zA-Z0-9]/", "", $matches[1]);
- show_alphabet_form($chr,_("Show Artists starting with"),"artists.php?action=match");
-
if ($chr == '') {
show_artists('A');
}