From 49b7cbd3518828e35f37ce2ce87cc7038de1d567 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Jan 2006 10:47:02 +0100 Subject: [PATCH] various search-related improvements --- backend.php | 18 +++++++++++++----- feedlist.js | 1 + tt-rss.js | 4 ++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/backend.php b/backend.php index 2dba06ef..f32b8c21 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 " + "; + + if ($active_feed_id) { + print ""; + } else { + print ""; + } + + print "