diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 76445e9c8..3b9ff5421 100644 --- a/backend.php +++ b/backend.php @@ -199,5 +199,35 @@ } + if ($op == "pref-feeds") { + + $result = pg_query("SELECT * FROM ttrss_feeds ORDER by title"); + print "<p><table width=\"100%\" class=\"prefFeedList\">"; + print "<tr class=\"title\"> + <td>Select</td><td>Title</td><td>Link</td><td>Last Updated</td></tr>"; + + $lnum = 0; + + while ($line = pg_fetch_assoc($result)) { + + $class = ($lnum % 2) ? "even" : "odd"; + + print "<tr class=\"$class\">"; + + print "<td><input onclick='toggleSelectRow(this);' + type=\"checkbox\" id=\"FROW-".$line["id"]."\"></td>"; + print "<td>" . $line["title"] . "</td>"; + print "<td>" . $line["feed_url"] . "</td>"; + print "<td>" . $line["last_updated"] . "</td>"; + print "</tr>"; + + ++$lnum; + } + + print "</table>"; + + } + + pg_close($link); ?> |