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 "
"; foreach ($list as $l) { $style_name = "style_" . strtolower($l); - echo "" . + $class = "link"; + if ($l==$selected) $class .=" active"; + echo "" . $l . "\n"; + /* without this, it also works and breaks line when needed only $i++; - if ($i/5 == intval($i/5)) { echo "
"; } + if ($i/5 == intval($i/5)) { echo "
"; } + */ } echo "
"; diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php index 7f7f2417..f7aff7c4 100644 --- a/templates/sidebar.inc.php +++ b/templates/sidebar.inc.php @@ -61,7 +61,7 @@ $ajax_url = Config::get('ajax_url'); -
  • +
  • diff --git a/templates/sidebar_admin.inc.php b/templates/sidebar_admin.inc.php index 193776fd..e18260ad 100644 --- a/templates/sidebar_admin.inc.php +++ b/templates/sidebar_admin.inc.php @@ -1,5 +1,5 @@
  • -
  • +
  • -
  • +