diff options
author | Andrew Dolgov <[email protected]> | 2005-08-25 16:15:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-25 16:15:27 +0100 |
commit | c0e5a40e7307d06eb9926d2645899e9699be54bc (patch) | |
tree | f3bd04c01916755a7a7b39c02a7442b182098aa1 /backend.php | |
parent | 36bf74967c6a6a310a03f2fe30299c8f6bc34124 (diff) |
MSIE5 compatibility workarounds
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/backend.php b/backend.php index cfdc4be9c..cc9b6b492 100644 --- a/backend.php +++ b/backend.php @@ -479,11 +479,14 @@ } } - $result = pg_query("SELECT * FROM ttrss_feeds ORDER by title"); + $result = pg_query("SELECT + id,title,feed_url,substring(last_updated,1,16) as last_updated + FROM + ttrss_feeds ORDER by title"); print "<p><table width=\"100%\" class=\"prefFeedList\" id=\"prefFeedList\">"; print "<tr class=\"title\"> - <td>Select</td><td>Title</td><td>Link</td><td>Last Updated</td></tr>"; + <td> </td><td>Select</td><td>Title</td><td>Link</td><td>Last Updated</td></tr>"; $lnum = 0; @@ -495,8 +498,19 @@ print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">"; + $icon_file = ICONS_DIR . "/$feed_id.ico"; + + if (file_exists($icon_file) && filesize($icon_file) > 0) { + $feed_icon = "<img width=\"16\" height=\"16\" + src=\"" . ICONS_URL . "/$feed_id.ico\">"; + } else { + $feed_icon = " "; + } + print "<td align='center'>$feed_icon</td>"; + print "<td><input onclick='toggleSelectRow(this);' type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>"; + print "<td><a href=\"javascript:editFeed($feed_id);\">" . $line["title"] . "</td>"; print "<td><a href=\"javascript:editFeed($feed_id);\">" . |