]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
early title work
[tt-rss.git] / backend.php
index d6e45098b8a028721388cb95194f8decee89b91f..2dac4205fcbdf8b1751499d31efb05c9f674c2ac 100644 (file)
@@ -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") {