From: Andrew Dolgov Date: Fri, 7 Jul 2006 03:48:19 +0000 (+0100) Subject: mobile: allow catchup page or entire feed (closes #89) X-Git-Tag: 1.2.1~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c878bc0172b1fe9b17ffba95e4bc47c884e845e9;p=tt-rss.git mobile: allow catchup page or entire feed (closes #89) --- diff --git a/mobile/functions.php b/mobile/functions.php index 0339b56f..df48456b 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -346,6 +346,19 @@ catchup_feed($link, $feed, $cat_view); } + if ($subop == "MarkPageRead") { + $ids_to_mark = $_SESSION["last_page_ids.$feed"]; + + if ($ids_to_mark) { + + foreach ($ids_to_mark as $id) { + db_query($link, "UPDATE ttrss_user_entries SET + unread = false,last_read = NOW() + WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]); + } + } + } + $search = db_escape_string($_GET["search"]); $search_mode = db_escape_string($_GET["smode"]); @@ -579,8 +592,10 @@ print "$feed_title ("; print "Back, "; - print "Update, "; - print "Mark as read"; + print "Update"; +# print "Mark as read: "; +# print "Page, "; +# print "Feed"; print ")"; print ""; @@ -589,6 +604,8 @@ print ""; + print "
Mark as read: "; + + $_SESSION["last_page_ids.$feed"] = $page_art_ids; + + print "Page, "; + print "Feed
"; + } else { print "
No articles found.
"; } diff --git a/mobile/mobile.css b/mobile/mobile.css index a370a08e..5317890f 100644 --- a/mobile/mobile.css +++ b/mobile/mobile.css @@ -170,4 +170,7 @@ div.postTags { font-weight : normal; } - +div.footerAddon { + margin-top : 5px; + margin-bottom : 5px; +}