[phpwebapp-commits] CVS: web_app/database class.PagedRS.php,1.13,1.14
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-23 09:40:26
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7295/database Modified Files: class.PagedRS.php Log Message: Index: class.PagedRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** class.PagedRS.php 22 Jul 2004 16:25:38 -0000 1.13 --- class.PagedRS.php 23 Jul 2004 09:40:17 -0000 1.14 *************** *** 120,132 **** if ($this->current_page>$nr_of_pages) $this->current_page=$nr_of_pages; ! if ($this->current_page==$nr_of_pages) ! $next_page = "1"; //next page of the last page is the first page ! else ! $next_page = $this->current_page + 1; ! if ($this->current_page==1) ! $prev_page = 1; //previous page of the first page is the first page itself ! else ! $prev_page = $this->current_page - 1; $first_rec = 1 + ($this->current_page - 1)*$this->recs_per_page; --- 120,128 ---- if ($this->current_page>$nr_of_pages) $this->current_page=$nr_of_pages; ! $next_page = $this->current_page + 1; ! if ($next_page > $nr_of_pages) $next_page = $nr_of_pages; ! $prev_page = $this->current_page - 1; ! if ($prev_page < 1) $prev_page = 1; $first_rec = 1 + ($this->current_page - 1)*$this->recs_per_page; |