From d8781c912dc0476af3ac7b858aedf6f3089e604e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 5 Feb 2009 21:59:23 +0300 Subject: offline: store cat_id in feeds table, backend: output category info --- modules/backend-rpc.php | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'modules/backend-rpc.php') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index eac84afa5..edc167695 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -530,22 +530,39 @@ if ($stage == 0) { print ""; - $reply = array(); - - $result = db_query($link, "SELECT id, title FROM + $result = db_query($link, "SELECT id, title, cat_id FROM ttrss_feeds WHERE owner_uid = ".$_SESSION["uid"]); while ($line = db_fetch_assoc($result)) { $has_icon = (int) feed_has_icon($line["id"]); - print ""; } print ""; + print ""; + + $result = db_query($link, "SELECT id, title FROM + ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]); + + print ""; + + while ($line = db_fetch_assoc($result)) { + print ""; + } + + print ""; + + } if ($stage > 0) { -- cgit v1.2.3