From 4a596be6976e61962b8ac6053b3917906b384bb7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 30 Apr 2009 11:23:38 +0400 Subject: mobile: allow marking articles as unread (clses #240) --- mobile/functions.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'mobile/functions.php') diff --git a/mobile/functions.php b/mobile/functions.php index b5148bad8..7c57cfc57 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -710,9 +710,14 @@ $published_pic = ""; } + print "
"; - print "$marked_pic"; - print "$published_pic"; + print "$marked_pic"; + print "$published_pic"; + // Mark unread + print ""; print "
"; print sanitize_rss($link, $line["content"], true);; @@ -796,4 +801,10 @@ $result = db_query($link, "UPDATE ttrss_user_entries SET published = NOT published WHERE ref_id = '$tp_id' AND owner_uid = " . $_SESSION["uid"]); } + + function markUnread($link, $mu_id) { + $result = db_query($link, "UPDATE ttrss_user_entries SET unread = true + WHERE ref_id = '$mu_id' AND owner_uid = " . $_SESSION["uid"]); + } + ?> -- cgit v1.2.3