diff options
Diffstat (limited to 'application/modules/user/forms/BootmenuEntries.php')
| -rw-r--r-- | application/modules/user/forms/BootmenuEntries.php | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/application/modules/user/forms/BootmenuEntries.php b/application/modules/user/forms/BootmenuEntries.php index b897974..58a2820 100644 --- a/application/modules/user/forms/BootmenuEntries.php +++ b/application/modules/user/forms/BootmenuEntries.php @@ -7,13 +7,8 @@ class user_Form_BootmenuEntries extends Zend_Form private $configlist; private $maxorder; private $action; - private $page; - private $kcl; + private $page; - - public function setKcl($kcl){ - $this->kcl = $kcl; - } public function setAction($action){ $this->action = $action; @@ -47,10 +42,7 @@ class user_Form_BootmenuEntries extends Zend_Form @list($key) = array_keys($this->bootoslist); $firstbootos = $this->bootoslist[$key]; $_POST['bootosID'] = $firstbootos->getID(); - if(isset($this->kcl)) - $_POST['kclactive'] = true; - else - $_POST['kclactive'] = false; + } $this->setName($this->action); @@ -78,15 +70,15 @@ class user_Form_BootmenuEntries extends Zend_Form $bootosfield->setRegisterInArrayValidator(false); $this->addElement($bootosfield); - $kclactive = $this->createElement('checkbox','kclactive'); + $kclactive = $this->createElement('checkbox','kcl'); $kclactive->setAttrib('onChange', "document.getElementById('".$this->action."').submit();"); $kclactive->setLabel('Use default KCL:'); - $kclactive->setValue($_POST['kclactive']); + $kclactive->setValue($_POST['kcl']); $this->addElement($kclactive); - if($_POST['kclactive']){ - $this->addElement('textarea', 'kcl', array( + if($_POST['kcl']){ + $this->addElement('textarea', 'defaultkcl', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 50)), @@ -101,7 +93,7 @@ class user_Form_BootmenuEntries extends Zend_Form )); } - if($_POST['kclactive']) + if($_POST['kcl']) $kcllength = 175 - strlen($this->bootoslist[$_POST['bootosID']]->getDefaultkcl()); else $kcllength = 175; |
