From 691c838e90e759a7461cec657d95a4f1af9f46c6 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 6 May 2007 21:07:03 +0000 Subject: basic browse concept added to sidebar and start of the browse logic --- lib/ui.lib.php | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'lib/ui.lib.php') diff --git a/lib/ui.lib.php b/lib/ui.lib.php index af88b29e..6746226a 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -141,29 +141,25 @@ function return_referer() { /** * show_alphabet_list - * shows the A-Z,0-9 lists for - * albums and artist pages + * shows the A-Z,0-9 lists for albums and artist page + * It takes a selected and an action */ -function show_alphabet_list ($type,$script="artist.php",$selected="false",$action='match') { +function show_alphabet_list () { $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"); $style_name = "style_" . strtolower($selected); ${$style_name} = "style=\"font-weight:bold;\""; - unset($title); + echo "
"; foreach ($list as $l) { $style_name = "style_" . strtolower($l); - echo "$l | \n"; + echo "" . + $l . "\n"; + $i++; + if ($i/11 == intval($i/11)) { echo "
"; } } - - echo " " . _("Browse") . " | \n"; - if ($script == "albums.php") { - echo " " . _("Show w/o art") . " | \n"; - } // if we are on the albums page - - echo " " . _("Show all") . ""; - echo "
\n"; + echo ""; } // show_alphabet_list -- cgit