summaryrefslogtreecommitdiffstats
path: root/artists.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-08-13 06:51:32 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-08-13 06:51:32 +0000
commit53cab4e5ba7e791c0c759a91895dffb072441017 (patch)
tree54a9eb268cdc83d4d8c3d809cda91a33d03eb42d /artists.php
parente7fea90327419214531371543662056c1398470d (diff)
downloadampache-53cab4e5ba7e791c0c759a91895dffb072441017.tar.gz
ampache-53cab4e5ba7e791c0c759a91895dffb072441017.tar.bz2
ampache-53cab4e5ba7e791c0c759a91895dffb072441017.zip
initial genre browsing and improved artists/albums browse code (made it consistent)
Diffstat (limited to 'artists.php')
-rw-r--r--artists.php29
1 files changed, 4 insertions, 25 deletions
diff --git a/artists.php b/artists.php
index 3511c1f9..19a8836c 100644
--- a/artists.php
+++ b/artists.php
@@ -68,33 +68,17 @@ switch($action) {
preg_match("/^(\w*)/", $match, $matches);
show_alphabet_list('artists','artists.php',$match);
if ($match === "Browse") {
- echo "<form name=\"f\" method=\"get\" action=\"".$_SERVER['PHP_SELF']."\">\n";
- echo "<label for=\"match\" accesskey=\"S\">";
- echo _("<u>S</u>how artists starting with") . "</label> \n";
- echo "<input type=\"text\" size=\"3\" id=\"match\" name=\"match\" value=\"\" />\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"match\" />\n";
- echo "</form>\n";
+ show_alphabet_form('',_("Show Artists starting with"),"albums.php?action=match");
show_artists();
}
elseif ($match === "Show_all") {
- echo "<form name=\"f\" method=\"get\" action=\"".$_SERVER['PHP_SELF']."\">\n";
- echo "<label for=\"match\" accesskey=\"S\">";
- echo _("<u>S</u>how artists starting with") . "</label> ";
- echo "<input type=\"text\" size=\"3\" id=\"match\" name=\"match\" value=\"\" />\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"match\" />\n";
- echo "</form>\n";
+ show_alphabet_form('',_("Show Artists starting with"),"albums.php?action=match");
$_SESSION['view_offset_limit'] = 999999;
show_artists();
}
else {
$chr = preg_replace("/[^a-zA-Z0-9]/", "", $matches[1]);
-
- echo "<form name=\"f\" method=\"get\" action=\"".$_SERVER['PHP_SELF']."\">\n";
- echo "<label for=\"match\" accesskey=\"S\">";
- echo _("<u>S</u>how artists starting with") . "</label> \n";
- echo "<input type=\"text\" size=\"3\" id=\"match\" name=\"match\" value=\"$chr\" />\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"match\" />\n";
- echo "</p></form>\n";
+ show_alphabet_form($chr,_("Show Artists starting with"),"albums.php?action=match");
if ($chr == '') {
show_artists('A');
@@ -106,13 +90,8 @@ switch($action) {
break;
default:
- echo "<form name=\"f\" method=\"get\" action=\"".$_SERVER['PHP_SELF']."\">\n";
- echo "<label for=\"match\" accesskey=\"S\">";
- echo _("<u>S</u>how artists starting with") . "</label> \n";
- echo "<input type=\"text\" size=\"3\" id=\"match\" name=\"match\" value=\"\" />\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"match\" />\n";
- echo "</p></form>\n";
show_alphabet_list('artists','artists.php');
+ show_alphabet_form('',_("Show Artists starting with"),"albums.php?action=match");
show_artists('A');
break;