summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-22 06:58:37 +0100
committerAndrew Dolgov <[email protected]>2005-08-22 06:58:37 +0100
commit76798ff3f24b7c7b69bd12109228f769ceb650a6 (patch)
treebcb7763bf9367cf3f3e0cd260607827636e9faa8 /backend.php
parent0e091d38cf6419edf5e623a584dc28a404fc2613 (diff)
early title work
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index d6e45098b..2dac4205f 100644
--- a/backend.php
+++ b/backend.php
@@ -28,6 +28,8 @@
$lnum = 0;
+ $total_unread = 0;
+
while ($line = pg_fetch_assoc($result)) {
$feed = $line["title"];
@@ -40,6 +42,8 @@
if ($unread > 0) $class .= "Unread";
+ $total_unread += $unread;
+
print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
$feed = "<a href=\"javascript:viewfeed($feed_id, 0);\">$feed</a>";
@@ -58,6 +62,8 @@
print "</table>";
+ print "<div class=\"invisible\" id=\"FEEDTU\">$total_unread</div>";
+
}
if ($op == "view") {