diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-02 00:22:55 -0400 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-02 00:48:58 -0400 |
commit | a9da6a6fa22325ba0dfecd4d46ae23305473796f (patch) | |
tree | acef914ee602bfeb3eed98f5f06e79603a6eb74f /templates/show_search_bar.inc.php | |
parent | 91a6eb3a682667f49122fab5d807e8650c0d3959 (diff) | |
download | ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.gz ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.bz2 ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.zip |
Reworked search
Still has tentacles and should have been integrated into the existing
API/Browse implementation better, but it's functional.
Diffstat (limited to 'templates/show_search_bar.inc.php')
-rw-r--r-- | templates/show_search_bar.inc.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/templates/show_search_bar.inc.php b/templates/show_search_bar.inc.php index 486ad9fe..b5bb4f4f 100644 --- a/templates/show_search_bar.inc.php +++ b/templates/show_search_bar.inc.php @@ -33,13 +33,20 @@ ?> <div id="sb_Subsearch"> - <form name="search" method="post" action="<?php echo $web_path; ?>/search.php" enctype="multipart/form-data" style="Display:inline"> - <input type="text" name="search_string" id="searchString"/> - <input type="hidden" name="action" value="quick_search" /> - <input type="hidden" name="method" value="fuzzy" /> + <form name="search" method="post" action="<?php echo $web_path; ?>/search.php?type=song" enctype="multipart/form-data" style="Display:inline"> + <input type="text" name="rule_1_input" id="searchString"/> + <input type="hidden" name="action" value="search" /> + <input type="hidden" name="rule_1_operator" value="0" /> <input type="hidden" name="object_type" value="song" /> + <select name="rule_1"> + <option value="anywhere"><?php echo _('Anywhere')?></option> + <option value="title"><?php echo _('Title')?></option> + <option value="album"><?php echo _('Album')?></option> + <option value="artist"><?php echo _('Artist')?></option> + <option value="tag"><?php echo _('Tag')?></option> + </select> <input class="button" type="submit" value="<?php echo _('Search'); ?>" id="searchBtn" /> - <a href="<?php echo $web_path; ?>/search.php" class="button" id="advSearchBtn"><?php echo _('Advanced Search'); ?></a> + <a href="<?php echo $web_path; ?>/search.php?type=song" class="button" id="advSearchBtn"><?php echo _('Advanced Search'); ?></a> </form> </div> |