diff options
author | xue <> | 2006-02-06 03:47:15 +0000 |
---|---|---|
committer | xue <> | 2006-02-06 03:47:15 +0000 |
commit | a4f9d4234a6810c2ec8a4e53f2d903172daa0759 (patch) | |
tree | 65caa9fd04d4120860a744f6b0ff54919878f895 /framework | |
parent | 84a6c667801d46c4cb6f831c9e40043b308f96d8 (diff) |
Fixed a bug about calculating the starting pager button in TDataGrid.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/WebControls/TDataGrid.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php index 57d00ac8..753ec351 100644 --- a/framework/Web/UI/WebControls/TDataGrid.php +++ b/framework/Web/UI/WebControls/TDataGrid.php @@ -1060,7 +1060,8 @@ class TDataGrid extends TBaseDataList implements INamingContainer $endPageIndex=$buttonCount;
if($pageIndex>$endPageIndex)
{
- $startPageIndex=((int)($pageIndex/$maxButtonCount))*$maxButtonCount+1;
+ //$startPageIndex=((int)($pageIndex/$maxButtonCount))*$maxButtonCount+1;
+ $startPageIndex=$pageIndex;
if(($endPageIndex=$startPageIndex+$maxButtonCount-1)>$pageCount)
$endPageIndex=$pageCount;
if($endPageIndex-$startPageIndex+1<$maxButtonCount)
|