diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-08-13 06:51:32 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-08-13 06:51:32 +0000 |
commit | 53cab4e5ba7e791c0c759a91895dffb072441017 (patch) | |
tree | 54a9eb268cdc83d4d8c3d809cda91a33d03eb42d /lib/ui.lib.php | |
parent | e7fea90327419214531371543662056c1398470d (diff) | |
download | ampache-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 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 85bae998..3b1abb19 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -171,6 +171,8 @@ function show_menu_items ($high) { */ function show_browse_menu($highlight) { + $highlight = ucfirst($highlight); + include(conf('prefix'). "/templates/show_browse_menu.inc"); } // show_browse_menu @@ -283,7 +285,7 @@ function return_referer() { * shows the A-Z,0-9 lists for * albums and artist pages */ -function show_alphabet_list ($type,$script="artist.php",$selected="false") { +function show_alphabet_list ($type,$script="artist.php",$selected="false",$action='match') { $list = array(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,"0"); @@ -293,20 +295,33 @@ function show_alphabet_list ($type,$script="artist.php",$selected="false") { echo "<div class=\"alphabet\">"; foreach ($list as $l) { $style_name = "style_" . strtolower($l); - echo "<a href=\"". conf('web_path') ."/$script?action=match&match=$l\" " . ${$style_name} . ">$l</a> | \n"; + echo "<a href=\"". conf('web_path') ."/$script?action=$action&match=$l\" " . ${$style_name} . ">$l</a> | \n"; } - echo " <a href=\"". conf('web_path') ."/$script?action=match&match=Browse\" $style_browse>" . _("Browse") . "</a> | \n"; + echo " <a href=\"". conf('web_path') ."/$script?action=$action&match=Browse\" $style_browse>" . _("Browse") . "</a> | \n"; if ($script == "albums.php") { - echo " <a href=\"". conf('web_path') ."/$script?action=match&match=Show_missing_art\" $style_show_missing_art>" . _("Show w/o art") . "</a> | \n"; + echo " <a href=\"". conf('web_path') ."/$script?action=$action&match=Show_missing_art\" $style_show_missing_art>" . _("Show w/o art") . "</a> | \n"; } // if we are on the albums page - echo " <a href=\"". conf('web_path') ."/$script?action=match&match=Show_all\" $style_show_all>" . _("Show all") . "</a>"; + echo " <a href=\"". conf('web_path') ."/$script?action=$action&match=Show_all\" $style_show_all>" . _("Show all") . "</a>"; echo "</div>\n"; } // show_alphabet_list /** + * show_alphabet_form + * this shows the spiffy little form that acts as a "quick search" when browsing + * @package General + * @catagory Display + */ +function show_alphabet_form($match, $text, $action) { + + require (conf('prefix') . '/templates/show_alphabet_form.inc.php'); + +} // show_alphabet_form + + +/** * show_local_control * shows the controls * for localplay @@ -676,5 +691,17 @@ function img_resize($image,$size,$type){ } // img_resize +/** + * show_genres + * this shows the 'many' genre form, it takes an array of genre objects and the view object + * @package Genre + * @catagory Display + */ +function show_genres($genres,$view) { + + require (conf('prefix') . '/templates/show_genres.inc.php'); + +} // show_genres + ?> |