summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-06 21:07:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-06 21:07:03 +0000
commit691c838e90e759a7461cec657d95a4f1af9f46c6 (patch)
treea979b7a7a67ac22a4119ad9e7311163be50bae24 /templates
parentb1f2bacf4499a3768cf8b64f425110d0616d0154 (diff)
downloadampache-691c838e90e759a7461cec657d95a4f1af9f46c6.tar.gz
ampache-691c838e90e759a7461cec657d95a4f1af9f46c6.tar.bz2
ampache-691c838e90e759a7461cec657d95a4f1af9f46c6.zip
basic browse concept added to sidebar and start of the browse logic
Diffstat (limited to 'templates')
-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 />