summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2007-08-07 21:58:45 +0000
committerspocky <spocky@ampache>2007-08-07 21:58:45 +0000
commit2a7030d1f1a21397b4b2757100e55414d42c819c (patch)
treeca666772fc06da055c8228eecb97e4c484eed78d /lib
parent14c5f8c0956ba5ad1e963921dc72845cd31f1301 (diff)
downloadampache-2a7030d1f1a21397b4b2757100e55414d42c819c.tar.gz
ampache-2a7030d1f1a21397b4b2757100e55414d42c819c.tar.bz2
ampache-2a7030d1f1a21397b4b2757100e55414d42c819c.zip
almost finished sidebar stuff
Diffstat (limited to 'lib')
-rw-r--r--lib/ui.lib.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 82cd0334..d0d58ac7 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -127,17 +127,23 @@ function return_referer() {
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",_('All'));
-
- $style_name = "style_" . strtolower($selected);
- ${$style_name} = "style=\"font-weight:bold;\"";
+
+ $selected = $_SESSION['browse']['filter']['alpha_match'];
+ //$style_name = "style_" . strtolower($selected);
+ //${$style_name} = "style=\"font-weight:bold;\"";
+
echo "<div class=\"alphabet\">";
foreach ($list as $l) {
$style_name = "style_" . strtolower($l);
- echo "<span class=\"link\" onclick=\"ajaxPut('". Config::get('ajax_url') ."?action=browse&amp;key=alpha_match&amp;value=$l');return true;\">" .
+ $class = "link";
+ if ($l==$selected) $class .=" active";
+ echo "<span class=\"" . $class . "\" onclick=\"ajaxPut('". Config::get('ajax_url') ."?action=browse&amp;key=alpha_match&amp;value=$l');return true;\">" .
$l . "</span>\n";
+ /* without this, it also works and breaks line when needed only
$i++;
- if ($i/5 == intval($i/5)) { echo "<br />"; }
+ if ($i/5 == intval($i/5)) { echo "<br />"; }
+ */
}
echo "</div>";