summaryrefslogtreecommitdiffstats
path: root/templates/sidebar_browse.inc.php
blob: dc669c3fccb6c1c24c2cbec9279eb662b5ce6649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php $ajax_info = Config::get('ajax_url'); ?>
<h4><?php echo _('Browse By'); ?></h4>
<?php 
	// Build the selected dealie
	$text = scrub_in($_REQUEST['action']) . '_ac';
	${$text} = ' selected="selected"'; 
?>
<form id="browse_type" name="browse_type" action="<?php echo Config::get('web_path'); ?>/browse.php" method="get">
<select name="action" onchange="document.getElementById('browse_type').submit();" >
	<option value="">-- <?php echo _('Type'); ?> --</option>
	<option value="song"<?php echo $song_ac; ?>><?php echo _('Song Title'); ?></option>
	<option value="album"<?php echo $album_ac; ?>><?php echo _('Albums'); ?></option>
	<option value="artist"<?php echo $artist_ac; ?>><?php echo _('Artist'); ?></option>
	<option value="genre"<?php echo $genre_ac; ?>><?php echo _('Genre'); ?></option>
</select>
</form>
<hr />
<h4><?php echo _('Filters'); ?></h4>
<?php show_alphabet_list($_REQUEST['alpha_match'],$_REQUEST['action']); ?>
<hr />
<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 />