diff options
author | Andrew Dolgov <[email protected]> | 2005-09-05 13:56:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-05 13:56:07 +0100 |
commit | 82c9223c6bccd503811ce3e5f74478417688e179 (patch) | |
tree | d61b0e43144129b8d2738e932841779cf9f35d36 /backend.php | |
parent | cb1083a1f6e13222b173c72e0627907aa978fd5f (diff) |
removed a lot of obsolete non-iframe code from backend.php
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 88 |
1 files changed, 2 insertions, 86 deletions
diff --git a/backend.php b/backend.php index c25410d9a..3452c741f 100644 --- a/backend.php +++ b/backend.php @@ -294,27 +294,6 @@ $feed_last_updated = "Updated: " . $line["last_updated"]; - if (!$addheader) { - - print "<tr><td class=\"search\" colspan=\"4\"> - Search: <input id=\"searchbox\" - onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\" - onchange=\"javascript:search($feed);\"> "; - - print " <a class=\"button\" href=\"javascript:resetSearch()\">Reset</a>"; - - print " View: "; - - print_select("viewbox", $view_mode, array("All Posts", "Starred"), - "onchange=\"javascript:viewfeed('$feed', '0', '');\""); - - print "</td></tr>"; - - print "<tr> - <td colspan=\"4\" class=\"title\">" . $line["title"] . "</td></tr>"; - - } - $search = $_GET["search"]; if ($search) { @@ -337,12 +316,8 @@ $total_entries = pg_fetch_result($result, 0, "total_entries"); - if (!$addheader) { - $limit_query_part = "LIMIT ".HEADLINES_PER_PAGE." OFFSET $skip"; - } else { - if ($limit != "All") { - $limit_query_part = "LIMIT " . $limit; - } + if ($limit != "All") { + $limit_query_part = "LIMIT " . $limit; } $result = pg_query("SELECT @@ -416,65 +391,6 @@ ++$lnum; print "<tr><td> </td></tr>"; } - - // start unholy navbar block - - if (!$addheader) { - - print "<tr><td colspan=\"4\" class=\"headlineToolbar\">"; - - $next_skip = $skip + HEADLINES_PER_PAGE; - $prev_skip = $skip - HEADLINES_PER_PAGE; - - print "Navigate: "; - - if ($prev_skip >= 0) { - print "<a class=\"button\" - href=\"javascript:viewfeed($feed, $prev_skip);\">Previous Page</a>"; - } else { - print "<a class=\"disabledButton\">Previous Page</a>"; - } - print " "; - - if ($next_skip < $total_entries) { - print "<a class=\"button\" - href=\"javascript:viewfeed($feed, $next_skip);\">Next Page</a>"; - } else { - print "<a class=\"disabledButton\">Next Page</a>"; - } - print " Feed: "; - - print "<a class=\"button\" - href=\"javascript:viewfeed($feed, 0, 'ForceUpdate');\">Update</a>"; - - print " Mark as read: "; - - if ($num_unread > 0) { - print "<a class=\"button\" id=\"btnCatchupPage\" - href=\"javascript:catchupPage($feed);\">This Page</a>"; - print " "; - } else { - print "<a class=\"disabledButton\">This Page</a>"; - print " "; - } - - print "<a class=\"button\" - href=\"javascript:viewfeed($feed, $skip, 'MarkAllRead');\">All Posts</a>"; - - } - -/* print " Unmark: "; - - print "<a class=\"button\" - href=\"javascript:unmarkPosts(false);\">This Page</a>"; - print " "; - - print "<a class=\"button\" - href=\"javascript:unmarkPosts(true);\">All Posts</a>"; */ - - print "</td></tr>"; - - // end unholy navbar block print "</table>"; |