summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-01-09 10:47:02 +0100
committerAndrew Dolgov <[email protected]>2006-01-09 10:47:02 +0100
commit49b7cbd3518828e35f37ce2ce87cc7038de1d567 (patch)
treedf96674a545f61eaac8e10f84fb002bd29672ac1 /backend.php
parent8e84993bf96a7a53b56fa5c2b791a023f2877fb0 (diff)
various search-related improvements
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/backend.php b/backend.php
index 2dba06efd..f32b8c214 100644
--- a/backend.php
+++ b/backend.php
@@ -1198,9 +1198,9 @@
$feed_title = "";
if ($search && $search_mode == "All feeds") {
- $feed_title = "Search results";
+ $feed_title = "Global search results ($search)";
} else if (sprintf("%d", $feed) == 0) {
- $feed_title = $feed;
+ $feed_title = "Feed search results ($search, $feed)";
} else if ($feed > 0) {
$result = db_query($link, "SELECT title,site_url,last_error FROM ttrss_feeds
WHERE id = '$feed'");
@@ -3047,13 +3047,21 @@
if ($id == "search") {
+ $active_feed_id = db_escape_string($_GET["param"]);
+
print "<input id=\"searchbox\" class=\"extSearch\"
onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\"
onchange=\"javascript:search()\">
<select id=\"searchmodebox\">
- <option selected>All feeds</option>
- <option>This feed</option>
- </select>
+ <option selected>All feeds</option>";
+
+ if ($active_feed_id) {
+ print "<option>This feed</option>";
+ } else {
+ print "<option disabled>This feed</option>";
+ }
+
+ print "</select>
<input type=\"submit\"
class=\"button\" onclick=\"javascript:search()\" value=\"Search\">
<input class=\"button\"