mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 17:41:29 +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") {
|
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,
|
$result = db_query($link,
|
||||||
"SELECT
|
"SELECT
|
||||||
@@ -3335,8 +3341,6 @@
|
|||||||
|
|
||||||
$subscribed = db_fetch_result($result, 0, "subscribed");
|
$subscribed = db_fetch_result($result, 0, "subscribed");
|
||||||
|
|
||||||
print "<div class=\"infoBoxContents\">";
|
|
||||||
|
|
||||||
$icon_file = ICONS_DIR . "/$feed_id.ico";
|
$icon_file = ICONS_DIR . "/$feed_id.ico";
|
||||||
|
|
||||||
if (file_exists($icon_file) && filesize($icon_file) > 0) {
|
if (file_exists($icon_file) && filesize($icon_file) > 0) {
|
||||||
@@ -3367,7 +3371,7 @@
|
|||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
$result = db_query($link, "SELECT title,
|
/* $result = db_query($link, "SELECT title,
|
||||||
SUBSTRING(updated,1,16) AS updated,unread
|
SUBSTRING(updated,1,16) AS updated,unread
|
||||||
FROM ttrss_entries,ttrss_user_entries
|
FROM ttrss_entries,ttrss_user_entries
|
||||||
WHERE ref_id = id AND feed_id = '$feed_id'
|
WHERE ref_id = id AND feed_id = '$feed_id'
|
||||||
@@ -3392,13 +3396,15 @@
|
|||||||
|
|
||||||
print "</ul>";
|
print "</ul>";
|
||||||
|
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
print "<div align='center'>
|
print "<div align='center'>
|
||||||
<input type='submit' class='button'
|
<input type='submit' class='button'
|
||||||
onclick=\"closeInfoBox()\" value=\"Close this window\"></div>";
|
onclick=\"closeInfoBox()\" value=\"Close this window\"></div>";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
db_close($link);
|
db_close($link);
|
||||||
?>
|
?>
|
||||||
|
|||||||
13
prefs.js
13
prefs.js
@@ -1000,16 +1000,17 @@ function selectedFeedDetails() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rows.length > 1) {
|
// if (rows.length > 1) {
|
||||||
notify("Please select one feed.");
|
// notify("Please select one feed.");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
var id = rows[0];
|
// var id = rows[0];
|
||||||
|
|
||||||
notify("");
|
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.onreadystatechange=infobox_callback;
|
||||||
xmlhttp.send(null);
|
xmlhttp.send(null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user