summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms
diff options
context:
space:
mode:
authormichael pereira2011-04-01 13:57:24 +0200
committermichael pereira2011-04-01 13:57:24 +0200
commit1fb3a11a72f1d27aba069a9b5d4cf88d1daf30d0 (patch)
tree36680922a92f94715ef26b80f4021de1b0ef18a9 /application/modules/user/forms
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
parentpagination in Bootos & Bootiso (diff)
downloadpbs2-1fb3a11a72f1d27aba069a9b5d4cf88d1daf30d0.tar.gz
pbs2-1fb3a11a72f1d27aba069a9b5d4cf88d1daf30d0.tar.xz
pbs2-1fb3a11a72f1d27aba069a9b5d4cf88d1daf30d0.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/forms')
-rw-r--r--application/modules/user/forms/Bootiso.php9
-rw-r--r--application/modules/user/forms/Bootos.php6
2 files changed, 13 insertions, 2 deletions
diff --git a/application/modules/user/forms/Bootiso.php b/application/modules/user/forms/Bootiso.php
index 7c472c0..d080ac2 100644
--- a/application/modules/user/forms/Bootiso.php
+++ b/application/modules/user/forms/Bootiso.php
@@ -7,6 +7,7 @@ class user_Form_Bootiso extends Zend_Form
private $groupdepth;
private $action;
private $rights;
+ private $page;
public function setRights($rights){
$this->rights = $rights;
@@ -20,6 +21,9 @@ class user_Form_Bootiso extends Zend_Form
public function setGroupdepth($groupdepth){
$this->groupdepth = $groupdepth;
}
+ public function setPage($page){
+ $this->page = $page;
+ }
public function init()
@@ -108,9 +112,12 @@ class user_Form_Bootiso extends Zend_Form
));
$this->addElement('button', 'Cancel', array(
- 'onclick' => 'self.location="/user/bootiso"'
+ 'onclick' => 'self.location="/user/bootiso/page/'.$this->page.'"'
));
+ $this->addElement('hidden','page', array(
+ 'value' => $this->page
+ ));
?>
<script>
diff --git a/application/modules/user/forms/Bootos.php b/application/modules/user/forms/Bootos.php
index 5fa890a..3e45f05 100644
--- a/application/modules/user/forms/Bootos.php
+++ b/application/modules/user/forms/Bootos.php
@@ -7,6 +7,7 @@ class user_Form_Bootos extends Zend_Form
private $action;
private $rights;
private $groupdepth;
+ private $page;
public function setRights($rights){
$this->rights = $rights;
@@ -22,6 +23,9 @@ class user_Form_Bootos extends Zend_Form
public function setGroupdepth($groupdepth){
$this->groupdepth = $groupdepth;
}
+ public function setPage($page){
+ $this->page = $page;
+ }
public function init()
{
@@ -139,7 +143,7 @@ class user_Form_Bootos extends Zend_Form
));
$this->addElement('button', 'Cancel', array(
- 'onclick' => 'self.location="/user/bootos"'
+ 'onclick' => 'self.location="/user/bootos/page/'.$this->page.'"'
));
?>