diff options
| author | michael pereira | 2011-04-01 16:51:07 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-01 16:51:07 +0200 |
| commit | 0576a9832661cfbfb29e1d59b72f092740388fa7 (patch) | |
| tree | 2cbd79177900de8b8ede455156c2e13a20c94697 /application/modules/user/forms/PoolClient.php | |
| parent | Bootmenu & BootOs Controller (diff) | |
| parent | Pagination in ettlichen Controllern + aufgerÀumt (diff) | |
| download | pbs2-0576a9832661cfbfb29e1d59b72f092740388fa7.tar.gz pbs2-0576a9832661cfbfb29e1d59b72f092740388fa7.tar.xz pbs2-0576a9832661cfbfb29e1d59b72f092740388fa7.zip | |
merge
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; - } + } |
