From c2b2aee071f19adb8f15b94695dae78e1dda52f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Dec 2005 07:00:36 +0100 Subject: browser interface tweaks --- backend.php | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 11e5c1e07..16797ea4a 100644 --- a/backend.php +++ b/backend.php @@ -3949,7 +3949,38 @@ if ($subop == "details") { $id = db_escape_string($_GET["id"]); - print "-- nasty details about feed $id --"; + + $result = db_query($link, "SELECT title,content, + substring(date_entered,1,19) as date_entered, + substring(updated,1,19) as updated + FROM ttrss_entries,ttrss_user_entries + WHERE id = ref_id AND feed_id = '$id' + ORDER BY updated DESC LIMIT 5"); + + if (db_num_rows($result) > 0) { + + print "Feed information:"; + print "
FIXME
"; + + print "Last headlines:
"; + + print "
"; + print "
"; + } + return; } @@ -3998,7 +4029,7 @@ print "
  • $check_box". "$feed_icon "; - print "" . + print "" . $details["title"] ." " . "($subscribers)"; -- cgit v1.2.3-54-g00ecf