diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-25 05:49:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-25 05:49:22 +0000 |
commit | 79316acb81fe9215b09ec41918b9a402560e7bef (patch) | |
tree | 9a71adc5d6dd297e3f39976796e380be10f19a4e /templates/sidebar_browse.inc.php | |
parent | 035b273ff529a34e1d2cb52bd61c653c6bff8250 (diff) | |
download | ampache-79316acb81fe9215b09ec41918b9a402560e7bef.tar.gz ampache-79316acb81fe9215b09ec41918b9a402560e7bef.tar.bz2 ampache-79316acb81fe9215b09ec41918b9a402560e7bef.zip |
fixed find album art, including a fix from Karl Hungus... seriously I am not making that name up
Diffstat (limited to 'templates/sidebar_browse.inc.php')
-rw-r--r-- | templates/sidebar_browse.inc.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/sidebar_browse.inc.php b/templates/sidebar_browse.inc.php index d7cada27..dc669c3f 100644 --- a/templates/sidebar_browse.inc.php +++ b/templates/sidebar_browse.inc.php @@ -1,12 +1,17 @@ <?php $ajax_info = Config::get('ajax_url'); ?> <h4><?php echo _('Browse By'); ?></h4> -<form id="browse_type" name="browse_type" action="<?php echo Config::get('web_path'); ?>/browse.php" method="post"> +<?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 Title'); ?></option> - <option value="album"><?php echo _('Albums'); ?></option> - <option value="artist"><?php echo _('Artist'); ?></option> - <option value="genre"><?php echo _('Genre'); ?></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 /> |