summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-22 02:17:12 +0100
committerAndrew Dolgov <[email protected]>2005-08-22 02:17:12 +0100
commit007bda3585c5ae865b370eae6ee5f4e2d3cc9cf2 (patch)
tree3782bab434430f4e1cd51d50087432e2d9750a58 /backend.php
parentc442fb6e28620d702a8dfdab6f42630f618b6b39 (diff)
initial prefpane work
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php30
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);
?>