summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-01-19 10:38:16 +0100
committerAndrew Dolgov <[email protected]>2007-01-19 10:38:16 +0100
commit203de776e0185414049441ef831063a5a198fd5b (patch)
tree4ac8f10afde2b54be0765ba369c03252ce58d47b /backend.php
parentc1a0b534154e75829c8ae0fa08b1c659acff9b5f (diff)
implement (disabled) support for page skipping in headline view
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 01cfe0a53..05a9957af 100644
--- a/backend.php
+++ b/backend.php
@@ -299,6 +299,9 @@
$limit = db_escape_string($_GET["limit"]);
$cat_view = db_escape_string($_GET["cat"]);
$next_unread_feed = db_escape_string($_GET["nuf"]);
+ $offset = db_escape_string($_GET["skip"]);
+
+ if (!$offset) $offset = 0;
if ($subop == "undefined") $subop = "";
@@ -382,7 +385,10 @@
$match_on = "both";
}
- $qfh_ret = queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on);
+ $real_offset = $offset * $limit;
+
+ $qfh_ret = queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view,
+ $search, $search_mode, $match_on, false, $real_offset);
$result = $qfh_ret[0];
$feed_title = $qfh_ret[1];
@@ -401,10 +407,12 @@
if (db_num_rows($result) > 0) {
print_headline_subtoolbar($link, $feed_site_url, $feed_title, false,
- $rtl_content, $feed, $cat_view, $search, $match_on, $search_mode);
+ $rtl_content, $feed, $cat_view, $search, $match_on, $search_mode, $offset);
print "<div id=\"headlinesInnerContainer\">";
+# print "\{$offset}";
+
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
print "<table class=\"headlinesList\" id=\"headlinesList\"
cellspacing=\"0\" width=\"100%\">";