diff options
Diffstat (limited to 'application/modules/user/forms/Preboot.php')
-rw-r--r-- | application/modules/user/forms/Preboot.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index bb90f65..cff3e26 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -14,6 +14,7 @@ class user_Form_Preboot extends Zend_Form { private $action; private $page; + private $preboottype; public function setAction($action) { $this->action = $action; @@ -58,6 +59,17 @@ class user_Form_Preboot extends Zend_Form { 'label' => 'Description:', )); + $preboottypefield = $this->createElement('select', 'preboottypeID'); + $preboottypefield->setLabel('Type:'); + $preboottypefield->setAttrib('readOnly', $meta); + $preboottypefield->setAttrib('onChange', "document.getElementById('".$this->action."').submit();"); + $preboottypefield->setValue($_POST['preboottypeID']); + foreach($this->preboottype as $k => $pt) { + $preboottypefield->addMultiOption($pt->getID(), $pt->getName()); + } + + $this->addElement($preboottypefield); + $serial = time(); for($i = 2; $i < 14; $i += 3) { |