diff options
author | Andrew Dolgov <[email protected]> | 2008-08-06 09:27:57 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-08-06 09:27:57 +0100 |
commit | 5bac8c29be0b5321d185459024aa99f5323abf8f (patch) | |
tree | 85134f97e5e1c171d440013ea99329fc440ef516 /modules/popup-dialog.php | |
parent | 18bcd7154c2239328a396a24bc6b109040ead814 (diff) |
rework search dialog
Diffstat (limited to 'modules/popup-dialog.php')
-rw-r--r-- | modules/popup-dialog.php | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index bdfc62b9f..a9f1e2d71 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -149,16 +149,27 @@ $active_feed_id = sprintf("%d", $params[0]); $is_cat = $params[1] == "true"; - print "<table width='100%'><tr><td>".__('Search:')."</td><td>"; - - print "<input name=\"query\" class=\"iedit\" type=\"search\" + print "<div class=\"dlgSec\">".__('Search')."</div>"; + + print "<div class=\"dlgSecCont\">"; + + print "<input name=\"query\" size=\"30\" type=\"search\" onkeypress=\"return filterCR(event, search)\" onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\" onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\" - value=\"\"> - </td></tr>"; - - print "<tr><td>".__('Where:')."</td><td>"; + value=\"\">"; + + print " " . __('match on:')." "; + + $search_fields = array( + "title" => __("Title"), + "content" => __("Content"), + "both" => __("Title or content")); + + print_select_hash("match_on", 3, $search_fields); + + + print "<br/>".__('Limit search to:')." "; print "<select name=\"search_mode\"> <option value=\"all_feeds\">".__('All feeds')."</option>"; @@ -187,22 +198,13 @@ //print "<option disabled>".__('This category')."</option>"; } - print "</select></td></tr>"; - - print "<tr><td>".__('Match on:')."</td><td>"; - - $search_fields = array( - "title" => __("Title"), - "content" => __("Content"), - "both" => __("Title or content")); + print "</select>"; - print_select_hash("match_on", 3, $search_fields); - - print "</td></tr></table>"; + print "</div>"; print "</form>"; - print "<div align=\"right\"> + print "<div class=\"dlgButtons\"> <input type=\"submit\" class=\"button\" onclick=\"javascript:search()\" id=\"search_submit_btn\" disabled=\"true\" |