]> git.wh0rd.org - tt-rss.git/commitdiff
add Unread or Starred view mode
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 16 Oct 2005 14:37:15 +0000 (15:37 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 16 Oct 2005 14:37:15 +0000 (15:37 +0100)
backend.php
tt-rss.php

index c1fc6020c687440151e8d393eaa1ab294186d757..419d1b98e6ec289a6407aceb82cf7b74acadf3ce 100644 (file)
                        $view_query_part = " unread = true AND ";
                }
 
+               if ($view_mode == "Unread or Starred") {
+                       $view_query_part = " (unread = true OR marked = true) AND ";
+               }
+
 /*             $result = db_query($link, "SELECT count(id) AS total_entries 
                        FROM ttrss_entries WHERE 
                        $search_query_part
index cc48439f43845194ae6acae8bc756017689bdd27..0bf146c1e0ca57d1907b8971de05303da23f74aa 100644 (file)
@@ -90,6 +90,7 @@
                        <option>All Articles</option>
                        <option>Starred</option>
                        <option selected>Unread</option>
+                       <option>Unread or Starred</option>
                </select>
 
                &nbsp;Limit: