diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-09-16 07:00:55 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-09-16 07:00:55 +0000 |
commit | b6fb59209de7e9f974ef86f29765ab97dd1ca63a (patch) | |
tree | 1e49dc06b413302dbee3bfe68a98c949d28f440e /templates/show_search.inc | |
parent | 16833b068e84ea37c18626f5163c17fe98090f14 (diff) | |
download | ampache-b6fb59209de7e9f974ef86f29765ab97dd1ca63a.tar.gz ampache-b6fb59209de7e9f974ef86f29765ab97dd1ca63a.tar.bz2 ampache-b6fb59209de7e9f974ef86f29765ab97dd1ca63a.zip |
fixed the played search problem, and added a limit, and operator designation
Diffstat (limited to 'templates/show_search.inc')
-rw-r--r-- | templates/show_search.inc | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/templates/show_search.inc b/templates/show_search.inc index 31de22be..d10c6601 100644 --- a/templates/show_search.inc +++ b/templates/show_search.inc @@ -19,7 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - +/* Setup the needed variables that check the correct boxes */ +foreach ($_REQUEST['search_object'] as $key) { + $name = "check_" . $key; + $field_name = $key . "_string"; + ${$name} = "checked=\"checked\" onload=\"flipField('$field_name');\" "; +} /** * search template @@ -37,7 +42,7 @@ <tr class="<?php echo flip_class(); ?>"> <td><?php echo _("Title"); ?></td> <td> - <input type="checkbox" name="search_object[]" value="title" onclick="flipField('title_string');" /> + <input type="checkbox" name="search_object[]" value="title" onclick="flipField('title_string');" <?php echo $check_title; ?> /> <input type="textbox" id="title_string" name="title_string" value="<?php echo scrub_out($_REQUEST['title_string']); ?>" disabled="disabled" /> </td> <td><?php echo _("Artist"); ?></td> @@ -110,6 +115,15 @@ <option value="genre"><?php echo _("Genres"); ?></option> </select> </td> + <td><?php echo _("Operator"); ?>:</td> + <td> + <select name="operator"> + <option value="or"><?php echo _("OR"); ?></option> + <option value="and"><?php echo _("AND"); ?></option> + </select> + </td> +</tr> +<tr class="<?php echo flip_class(); ?>"> <td><?php echo _("Method"); ?>:</td> <td> <select name="method"> @@ -117,6 +131,16 @@ <option value="exact"><?php echo _("Exact"); ?></option> </select> </td> + <td><?php echo _("Maxium Results"); ?>:</td> + <td> + <select name="limit"> + <option value="0"><?php echo _("Unlimited"); ?></option> + <option value="25">25</option> + <option value="50">50</option> + <option value="100">100</option> + <option value="500">500</option> + </select> + </td> </tr> <tr class="<?php echo flip_class(); ?>"> <td> </td> |