mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-30 22:11:29 +00:00
initial prefpane work
This commit is contained in:
30
backend.php
30
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);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user