summaryrefslogtreecommitdiffstats
path: root/templates/sidebar_browse.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar_browse.inc.php')
-rw-r--r--templates/sidebar_browse.inc.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/templates/sidebar_browse.inc.php b/templates/sidebar_browse.inc.php
index 1b6a02ee..949d174e 100644
--- a/templates/sidebar_browse.inc.php
+++ b/templates/sidebar_browse.inc.php
@@ -1,9 +1,24 @@
+<?php $ajax_info = Config::get('ajax_url'); ?>
<h4><?php echo _('Browse By'); ?></h4>
-<form id="browse_type" name="browse_type" action="#" method="post">
-<select name="type" onchange="ajaxPut('browse_type','<?php echo Config::get('ajax_url'); ?>?action=browse_type');return true;" >
+<form id="browse_type" name="browse_type" action="<?php echo Config::get('web_path'); ?>/browse.php" method="post">
+<select name="action" onchange="document.getElementById('browse_type').submit();" >
+ <option value="">-- <?php echo _('Type'); ?> --</option>
<option value="song"><?php echo _('Song Title'); ?></option>
<option value="album"><?php echo _('Albums'); ?></option>
<option value="artist"><?php echo _('Artist'); ?></option>
<option value="genre"><?php echo _('Genre'); ?></option>
</select>
+</form>
+<hr />
+<?php show_alphabet_list($_REQUEST['alpha_match'],$_REQUEST['action']); ?>
+<hr />
+<h4><?php echo _('Filters'); ?></h4>
+<input type="checkbox" onclick="ajaxPut('<?php echo $ajax_info; ?>?action=browse&amp;key=show_art&amp;value=1');return true;" value="1" />
+ <?php echo _('Show Art'); ?><br />
+<input type="checkbox" onclick="ajaxPut('<?php echo $ajax_info; ?>?action=browse&amp;key=min_count&amp;value=1');return true;" value="1" />
+ <?php echo _('Minimum Count'); ?><br />
+<input type="checkbox" onclick="ajaxPut('<?php echo $ajax_info; ?>?action=browse&amp;key=unplayed&amp;value=1');return true;" value="1" />
+ <?php echo _('Unplayed'); ?><br />
+<input type="checkbox" onclick="ajaxPut('<?php echo $ajax_info; ?>?action=browse&amp;key=rated&amp;value=1');return true;" value="1" />
+ <?php echo _('Rated'); ?><br />
<hr />