update feeds with errors dialog

This commit is contained in:
Andrew Dolgov 2011-03-28 12:34:39 +04:00
parent aa3b9272c6
commit a4cd9d58ff
1 changed files with 8 additions and 3 deletions

View File

@ -544,14 +544,19 @@
print __("These feeds have not been updated because of errors:"); print __("These feeds have not been updated because of errors:");
$result = db_query($link, "SELECT id,title,feed_url,last_error $result = db_query($link, "SELECT id,title,feed_url,last_error,site_url
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]); FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
print "<ul class='feedErrorsList'>"; print "<ul class='feedErrorsList'>";
while ($line = db_fetch_assoc($result)) { while ($line = db_fetch_assoc($result)) {
print "<li><b>" . $line["title"] . "</b> (" . $line["feed_url"] . "): " . print "<li><a target=\"_blank\" class=\"visibleLink\" href=\"".
"<em>" . $line["last_error"] . "</em>"; htmlspecialchars($line["site_url"])."\">".
htmlspecialchars($line["title"])."</a> (".
"<a target=\"_blank\" class=\"visibleLink\"
href=\"".htmlspecialchars($line["feed_url"]).
"\">".__("feed")."</a>): ".
$line["last_error"]."</li>";
} }
print "</ul>"; print "</ul>";