summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2006-03-15 04:22:10 +0000
committerxue <>2006-03-15 04:22:10 +0000
commit2fc55480271a1bb35b6cd2d73829bfbd4f843b1c (patch)
tree504179b59847772465ebe3ef9263d8f03369a969 /framework/Web/UI
parentc59b19644279bec4f388c9ebbee6936a00c20f99 (diff)
Includes TStack as core class.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php
index c6e46c72..d9924cd2 100644
--- a/framework/Web/UI/WebControls/TDataGrid.php
+++ b/framework/Web/UI/WebControls/TDataGrid.php
@@ -142,7 +142,7 @@ class TDataGrid extends TBaseDataList implements INamingContainer
const CMD_SORT='Sort';
const CMD_PAGE='Page';
const CMD_PAGE_NEXT='Next';
- const CMD_PAGE_PREV='Prev';
+ const CMD_PAGE_PREV='Previous';
/**
* @var TDataGridColumnCollection manually created column collection
@@ -1138,8 +1138,8 @@ class TDataGrid extends TBaseDataList implements INamingContainer
{
$button=$this->createPagerButton($buttonType,true);
$button->setText($style->getPrevPageText());
- $button->setCommandName('page');
- $button->setCommandParameter('prev');
+ $button->setCommandName(self::CMD_PAGE);
+ $button->setCommandParameter(self::CMD_PAGE_PREV);
$button->setCausesValidation(false);
$controls->add($button);
}
@@ -1154,8 +1154,8 @@ class TDataGrid extends TBaseDataList implements INamingContainer
{
$button=$this->createPagerButton($buttonType,true);
$button->setText($style->getNextPageText());
- $button->setCommandName('page');
- $button->setCommandParameter('next');
+ $button->setCommandName(self::CMD_PAGE);
+ $button->setCommandParameter(self::CMD_PAGE_NEXT);
$button->setCausesValidation(false);
$controls->add($button);
}
@@ -1193,7 +1193,7 @@ class TDataGrid extends TBaseDataList implements INamingContainer
{
$button=$this->createPagerButton($buttonType,true);
$button->setText($style->getPrevPageText());
- $button->setCommandName('page');
+ $button->setCommandName(self::CMD_PAGE);
$button->setCommandParameter($startPageIndex-1);
$button->setCausesValidation(false);
$controls->add($button);
@@ -1212,7 +1212,7 @@ class TDataGrid extends TBaseDataList implements INamingContainer
{
$button=$this->createPagerButton($buttonType,true);
$button->setText("$i");
- $button->setCommandName('page');
+ $button->setCommandName(self::CMD_PAGE);
$button->setCommandParameter($i);
$button->setCausesValidation(false);
$controls->add($button);
@@ -1226,7 +1226,7 @@ class TDataGrid extends TBaseDataList implements INamingContainer
$controls->add('&nbsp;');
$button=$this->createPagerButton($buttonType,true);
$button->setText($style->getNextPageText());
- $button->setCommandName('page');
+ $button->setCommandName(self::CMD_PAGE);
$button->setCommandParameter($endPageIndex+1);
$button->setCausesValidation(false);
$controls->add($button);