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/Pool.php | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'application/modules/user/forms/Pool.php') diff --git a/application/modules/user/forms/Pool.php b/application/modules/user/forms/Pool.php index 055d0a7..be2f6c6 100644 --- a/application/modules/user/forms/Pool.php +++ b/application/modules/user/forms/Pool.php @@ -2,6 +2,15 @@ class user_Form_Pool extends Zend_Form { + private $buttontext = 'Save'; + private $page; + + public function setButtontext($v){ + $this->buttontext = $v; + } + public function setPage($page){ + $this->page = $page; + } public function init() { @@ -24,9 +33,8 @@ class user_Form_Pool extends Zend_Form 'required' => false, 'label' => 'Description:', )); - // TODO: Add target of Filter - $this->addElement('text', 'location', array( + $this->addElement('text', 'location', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 30)), @@ -43,20 +51,8 @@ class user_Form_Pool extends Zend_Form $this->addElement('button', 'Cancel', array( 'onclick' => 'self.location="/user/pool/index/page/'.$this->page.'"' - )); - - $this->addElement('hidden','page', array( - 'value' => $this->page - )); + )); } - private $buttontext = 'Save'; - function setButtontext($v){ - $this->buttontext = $v; - } - private $page; - function setPage($page){ - $this->page = $page; - } } -- cgit v1.2.3-55-g7522