summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-08-06 09:27:57 +0100
committerAndrew Dolgov <[email protected]>2008-08-06 09:27:57 +0100
commit5bac8c29be0b5321d185459024aa99f5323abf8f (patch)
tree85134f97e5e1c171d440013ea99329fc440ef516 /modules
parent18bcd7154c2239328a396a24bc6b109040ead814 (diff)
rework search dialog
Diffstat (limited to 'modules')
-rw-r--r--modules/popup-dialog.php40
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\"