summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/PoolClient.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/forms/PoolClient.php')
-rw-r--r--application/modules/user/forms/PoolClient.php27
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;
- }
+
}