mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 01:35:56 +00:00
feed details enabled for several selected feeds
This commit is contained in:
16
backend.php
16
backend.php
@@ -3302,7 +3302,13 @@
|
||||
|
||||
if ($op == "feed-details") {
|
||||
|
||||
$feed_id = $_GET["id"];
|
||||
// $feed_id = $_GET["id"];
|
||||
|
||||
$feed_ids = split(",", db_escape_string($_GET["id"]));
|
||||
|
||||
print "<div class=\"infoBoxContents\">";
|
||||
|
||||
foreach ($feed_ids as $feed_id) {
|
||||
|
||||
$result = db_query($link,
|
||||
"SELECT
|
||||
@@ -3335,8 +3341,6 @@
|
||||
|
||||
$subscribed = db_fetch_result($result, 0, "subscribed");
|
||||
|
||||
print "<div class=\"infoBoxContents\">";
|
||||
|
||||
$icon_file = ICONS_DIR . "/$feed_id.ico";
|
||||
|
||||
if (file_exists($icon_file) && filesize($icon_file) > 0) {
|
||||
@@ -3367,7 +3371,7 @@
|
||||
|
||||
print "</table>";
|
||||
|
||||
$result = db_query($link, "SELECT title,
|
||||
/* $result = db_query($link, "SELECT title,
|
||||
SUBSTRING(updated,1,16) AS updated,unread
|
||||
FROM ttrss_entries,ttrss_user_entries
|
||||
WHERE ref_id = id AND feed_id = '$feed_id'
|
||||
@@ -3392,13 +3396,15 @@
|
||||
|
||||
print "</ul>";
|
||||
|
||||
} */
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
print "<div align='center'>
|
||||
<input type='submit' class='button'
|
||||
onclick=\"closeInfoBox()\" value=\"Close this window\"></div>";
|
||||
}
|
||||
}
|
||||
|
||||
db_close($link);
|
||||
?>
|
||||
|
||||
13
prefs.js
13
prefs.js
@@ -1000,16 +1000,17 @@ function selectedFeedDetails() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (rows.length > 1) {
|
||||
notify("Please select one feed.");
|
||||
return;
|
||||
}
|
||||
// if (rows.length > 1) {
|
||||
// notify("Please select one feed.");
|
||||
// return;
|
||||
// }
|
||||
|
||||
var id = rows[0];
|
||||
// var id = rows[0];
|
||||
|
||||
notify("");
|
||||
|
||||
xmlhttp.open("GET", "backend.php?op=feed-details&id=" + id, true);
|
||||
xmlhttp.open("GET", "backend.php?op=feed-details&id=" +
|
||||
param_escape(rows.toString()), true);
|
||||
xmlhttp.onreadystatechange=infobox_callback;
|
||||
xmlhttp.send(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user