diff options
| author | Simon | 2011-04-01 16:34:13 +0200 |
|---|---|---|
| committer | Simon | 2011-04-01 16:34:13 +0200 |
| commit | cd230aefd78797219cb3814cda29fc8178520a22 (patch) | |
| tree | 9e460a6493323e35a98fd9921be680c70a3c541d /application/modules/user/forms/PoolClient.php | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-cd230aefd78797219cb3814cda29fc8178520a22.tar.gz pbs2-cd230aefd78797219cb3814cda29fc8178520a22.tar.xz pbs2-cd230aefd78797219cb3814cda29fc8178520a22.zip | |
Pagination in ettlichen Controllern + aufgeräumt
Diffstat (limited to 'application/modules/user/forms/PoolClient.php')
| -rw-r--r-- | application/modules/user/forms/PoolClient.php | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/application/modules/user/forms/PoolClient.php b/application/modules/user/forms/PoolClient.php index c4c6e7f..d259723 100644 --- a/application/modules/user/forms/PoolClient.php +++ b/application/modules/user/forms/PoolClient.php @@ -3,7 +3,20 @@ class user_Form_PoolClient extends Zend_Form { private $clients; - + private $page; + private $buttontext = 'Save'; + + function setButtontext($v){ + $this->buttontext = $v; + } + public function setClients($clients){ + $this->clients = $clients; + return $this; + } + public function setPage($page){ + $this->page = $page; + } + public function init() { $this->setName("addClientToPool"); @@ -21,14 +34,10 @@ class user_Form_PoolClient extends Zend_Form 'ignore' => true, 'label' => 'Save', )); + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/user/filter/index/page/'.$this->page.'"' + )); } - public function setClients($clients){ - $this->clients = $clients; - return $this; - } - private $buttontext = 'Save'; - function setButtontext($v){ - $this->buttontext = $v; - } + } |
