+ $res = $this->set->get($this->fields(),
+ $this->joins(),
+ $this->where(),
+ $this->groupBy(),
+ $this->order(),
+ $this->entriesPerPage,
+ $this->offset);
+ $show_bounds = $this->bounds();
+ $end = end($res);
+ if ($show_bounds) {
+ if ($show_bounds == 1) {
+ $first = $res[0][$this->bound_field];
+ $last = $end[$this->bound_field];
+ } elseif ($show_bounds == -1) {
+ $first = $end[$this->bound_field];
+ $last = $res[0][$this->bound_field];
+ }
+ $page->assign('first', $first);
+ $page->assign('last', $last);
+ }
+
+ $page->assign('show_bounds', $show_bounds);
+ $page->assign('order', Env::v('order', $this->defaultkey));
+ $page->assign('orders', $this->sortkeys);