summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Bootiso.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/forms/Bootiso.php')
-rw-r--r--application/modules/user/forms/Bootiso.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/application/modules/user/forms/Bootiso.php b/application/modules/user/forms/Bootiso.php
index ba19437..a56f360 100644
--- a/application/modules/user/forms/Bootiso.php
+++ b/application/modules/user/forms/Bootiso.php
@@ -16,6 +16,7 @@ class user_Form_Bootiso extends Zend_Form {
private $groupdepth;
private $action;
private $page;
+ private $preboottype;
public function setAction($action) {
$this->action = $action;
@@ -63,17 +64,16 @@ class user_Form_Bootiso extends Zend_Form {
'label' => 'Description:',
));
- $prebootfield = $this->createElement('select', 'prebootID');
- $prebootfield->setLabel('Preboot:');
- $prebootfield->setAttrib('readOnly', $meta);
-
- if(count($this->prebootlist) > 0) {
- foreach($this->prebootlist as $preboot => $p) {
- $prebootfield->addMultiOption($p->getID(), $p->getTitle());
- }
+ $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());
}
- $prebootfield->setRegisterInArrayValidator(false);
- $this->addElement($prebootfield);
+
+ $this->addElement($preboottypefield);
$serial = time();
for($i = 2; $i < 14; $i += 3)