From 07eb9178463a08ae4aaad49ae53ea92909dfbfa4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 May 2006 15:53:41 +0100 Subject: quick add feed dialog uses prototype --- backend.php | 49 ++++++++++++++++++++----------------------------- 1 file changed, 20 insertions(+), 29 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 745a1a132..31c1215f6 100644 --- a/backend.php +++ b/backend.php @@ -1626,14 +1626,14 @@ if (!WEB_DEMO_MODE) { - $feed_link = db_escape_string(trim($_GET["link"])); - $cat_id = db_escape_string($_GET["cid"]); + $feed_url = db_escape_string(trim($_GET["feed_url"])); + $cat_id = db_escape_string($_GET["cat_id"]); - if (subscribe_to_feed($link, $feed_link, $cat_id)) { + if (subscribe_to_feed($link, $feed_url, $cat_id)) { print "Added feed."; } else { print "
- Feed $feed_link already exists in the database. + Feed $feed_url already exists in the database.
"; } } @@ -2643,43 +2643,34 @@ print "
Subscribe to feed
"; print "
"; + print "
"; + + print ""; + print ""; + print ""; + print ""; + onfocus=\"javascript:disableHotkeys()\" name=\"feed_url\">"; if (get_pref($link, 'ENABLE_FEED_CATS')) { print ""; } - - print "
Feed URL: -
Category:"; - - $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories - WHERE owner_uid = ".$_SESSION["uid"]." - ORDER BY title"); - - print ""; + print_feed_cat_select($link, "cat_id"); print "
+ + print "
"; + print "
"; + + print "
"; + type=\"submit\" onclick=\"javascript:closeInfoBox()\" + value=\"Cancel\">
"; } -- cgit v1.2.3-54-g00ecf