summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/forms/Client.php')
-rw-r--r--application/modules/user/forms/Client.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/application/modules/user/forms/Client.php b/application/modules/user/forms/Client.php
index 9f3926c..aa8d478 100644
--- a/application/modules/user/forms/Client.php
+++ b/application/modules/user/forms/Client.php
@@ -42,17 +42,25 @@ class user_Form_Client extends Zend_Form
'required' => false,
'ignore' => true,
'label' => $this->buttontext,
- ));
+ ));
$this->addElement('button', 'Cancel', array(
- 'onclick' => 'self.location="/user/client"'
- ));
+ 'onclick' => 'self.location="/user/client/index/page/'.$this->page.'"'
+ ));
+
+ $this->addElement('hidden','page', array(
+ 'value' => $this->page
+ ));
}
private $buttontext = 'Save';
private $groups;
function setButtontext($v){
$this->buttontext = $v;
}
+ private $page;
+ function setPage($page){
+ $this->page = $page;
+ }
}