add Unread or Starred view mode

This commit is contained in:
Andrew Dolgov 2005-10-16 15:37:15 +01:00
parent b3a9daddcc
commit b5aa95e736
2 changed files with 5 additions and 0 deletions

View File

@ -489,6 +489,10 @@
$view_query_part = " unread = true AND "; $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 /* $result = db_query($link, "SELECT count(id) AS total_entries
FROM ttrss_entries WHERE FROM ttrss_entries WHERE
$search_query_part $search_query_part

View File

@ -90,6 +90,7 @@
<option>All Articles</option> <option>All Articles</option>
<option>Starred</option> <option>Starred</option>
<option selected>Unread</option> <option selected>Unread</option>
<option>Unread or Starred</option>
</select> </select>
&nbsp;Limit: &nbsp;Limit: