From cd230aefd78797219cb3814cda29fc8178520a22 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 1 Apr 2011 16:34:13 +0200 Subject: Pagination in ettlichen Controllern + aufgerÀumt --- application/modules/user/forms/PoolClient.php | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'application/modules/user/forms/PoolClient.php') 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; - } + } -- cgit v1.2.3-55-g7522