From 8464c619e413b4aabacb802e1afe49a7c960506a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Feb 2021 21:41:38 +0300 Subject: inactive feeds: use client dialog --- classes/pref/feeds.php | 52 +++++--------------------------------------------- 1 file changed, 5 insertions(+), 47 deletions(-) (limited to 'classes/pref/feeds.php') diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index d8495a59c..03e8b1b81 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1485,56 +1485,14 @@ class Pref_Feeds extends Handler_Protected { ORDER BY last_article"); $sth->execute([$_SESSION['uid']]); - print "
"; - print "
". - "" . __('Select').""; - print "
"; - print "
".__('All')."
"; - print "
".__('None')."
"; - print "
"; - print "
"; #toolbar - - print "
"; - print ""; - - $lnum = 1; - - while ($line = $sth->fetch()) { - - $feed_id = $line["id"]; - - print ""; - - print ""; - print ""; - print ""; + $rv = []; - ++$lnum; + while ($row = $sth->fetch(PDO::FETCH_ASSOC)) { + $row['last_article'] = TimeHelper::make_local_datetime($row['last_article'], false); + array_push($rv, $row); } - print "
"; - - print "". - htmlspecialchars($line["title"]).""; - - print ""; - print TimeHelper::make_local_datetime($line['last_article'], false); - print "
"; - print "
"; - - print ""; - + print json_encode($rv); } function feedsWithErrors() { -- cgit v1.2.3