From e57e73ef29e050fd33223b009397c5d6c13d38e9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 8 Apr 2011 15:37:50 +0400 Subject: rework feed update errors and inactive feeds dialogs --- modules/popup-dialog.php | 74 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 49 insertions(+), 25 deletions(-) (limited to 'modules') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 3192ac57a..dbbd1fb32 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -580,15 +580,13 @@ type=\"checkbox\">"; print ""; - print "". - htmlspecialchars($line["title"])." (". - "".__("feed").")"; + print "". + htmlspecialchars($line["title"]).""; print ""; - print make_local_datetime($link, $line['last_article']); + print make_local_datetime($link, $line['last_article'], false); print ""; print ""; @@ -611,39 +609,65 @@ } - if ($id == "feedUpdateErrors") { + if ($id == "feedsWithErrors") { - print "".__('Feeds with update errors').""; - print "".__('Feeds with update errors').""; +# print ""; + print "
"; + + print ""; + + $lnum = 1; while ($line = db_fetch_assoc($result)) { - print "
  • ". - htmlspecialchars($line["title"])." (". - "".__("feed")."): ". - $line["last_error"]."
  • "; + + $class = ($lnum % 2) ? "even" : "odd"; + $feed_id = $line["id"]; + $this_row_id = "id=\"FUPDD-$feed_id\""; + + print ""; + + $edit_title = htmlspecialchars($line["title"]); + + print ""; + print ""; + print ""; + + ++$lnum; } - print ""; + print "
    "; + + print "". + htmlspecialchars($line["title"]).": "; + + print ""; + print htmlspecialchars($line["last_error"]); + print ""; + + print "
    "; + print "
    "; - print "
    "; + print "
    "; + print "
    "; + print " "; + print "
    "; - print ""; - print "]]>"; - - //return; + print "
    "; } if ($id == "editArticleTags") { -- cgit v1.2.3-54-g00ecf