version 1.121, 2004/01/26 17:17:49 |
version 1.122, 2004/02/23 13:55:41 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.120 2004/01/21 16:26:55 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.121 2004/01/26 17:17:49 nepto Exp $ */ |
|
|
/* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
edited are defined in the calling program. |
edited are defined in the calling program. |
Line 1590 function phpMyEdit_filter_handler(theFor |
|
Line 1590 function phpMyEdit_filter_handler(theFor |
|
$disabledprev = !($this->fm > 0 && !$listall); |
$disabledprev = !($this->fm > 0 && !$listall); |
$disablednext = !($this->fm + $this->inc < $total_recs && ! $listall); |
$disablednext = !($this->fm + $this->inc < $total_recs && ! $listall); |
$disabledgoto = !($listall || ($disablednext && $disabledprev)) ? '' : ' disabled'; |
$disabledgoto = !($listall || ($disablednext && $disabledprev)) ? '' : ' disabled'; |
$current_page = intval($this->fm / $this->inc) + 1; |
$current_page = intval($this->fm / max(1, $this->inc)) + 1; |
$total_pages = max(1, ceil($total_recs / abs($this->inc))); |
$total_pages = max(1, ceil($total_recs / abs($this->inc))); |
if (!$listall) { |
if (!$listall) { |
echo $this->htmlSubmit('navop', 'First', $this->getCSSclass('first', $position), false, $disabledprev), ' '; |
echo $this->htmlSubmit('navop', 'First', $this->getCSSclass('first', $position), false, $disabledprev), ' '; |