Logo Search packages:      
Sourcecode: nagvis version File versions  Download package

WuiBackendManagement::getForm (  ) 

If enabled, the form is added to the page

Author:
Lars Michelsen <lars@vertical-visions.de>

Definition at line 45 of file WuiBackendManagement.php.

References GlobalPage::addBodyLines(), getAddFields(), getDefaultFields(), getDelFields(), getEditFields(), getJsLang(), GlobalPage::parseJs(), and GlobalPage::resizeWindow().

                         {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method WuiBackendManagement::getForm()');
            // Inititalize language for JS
            $this->addBodyLines($this->parseJs($this->getJsLang()));
            
            $this->DEFBACKENDFORM = new GlobalForm(Array('name'=>'backend_default',
                  'id'=>'backend_default',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_backend_default',
                  'onSubmit'=>'return update_param(\'backend_default\');',
                  'cols'=>'2'));
            $this->addBodyLines($this->DEFBACKENDFORM->initForm());
            $this->addBodyLines($this->DEFBACKENDFORM->getCatLine(strtoupper($this->LANG->getLabel('setDefaultBackend'))));
            $this->propCount++;
            $this->addBodyLines($this->getDefaultFields());
            $this->addBodyLines($this->DEFBACKENDFORM->getSubmitLine($this->LANG->getLabel('save')));
            $this->addBodyLines($this->DEFBACKENDFORM->closeForm());
            
            $this->ADDBACKENDFORM = new GlobalForm(Array('name'=>'backend_add',
                  'id'=>'backend_add',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_backend_add',
                  'onSubmit'=>'return check_backend_add();',
                  'cols'=>'2'));
            $this->addBodyLines($this->ADDBACKENDFORM->initForm());
            $this->addBodyLines($this->ADDBACKENDFORM->getCatLine(strtoupper($this->LANG->getLabel('addBackend'))));
            $this->propCount++;
            $this->addBodyLines($this->getAddFields());
            $this->addBodyLines($this->ADDBACKENDFORM->getSubmitLine($this->LANG->getLabel('save')));
            $this->addBodyLines($this->ADDBACKENDFORM->closeForm());
            
            $this->EDITBACKENDFORM = new GlobalForm(Array('name'=>'backend_edit',
                  'id'=>'backend_edit',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_backend_edit',
                  'onSubmit'=>'return check_backend_edit();',
                  'cols'=>'2'));
            $this->addBodyLines($this->EDITBACKENDFORM->initForm());
            $this->addBodyLines($this->EDITBACKENDFORM->getCatLine(strtoupper($this->LANG->getLabel('editBackend'))));
            $this->propCount++;
            $this->addBodyLines($this->getEditFields());
            $this->addBodyLines($this->EDITBACKENDFORM->getSubmitLine($this->LANG->getLabel('save')));
            $this->addBodyLines($this->EDITBACKENDFORM->closeForm());
            
            $this->DELBACKENDFORM = new GlobalForm(Array('name'=>'backend_del',
                  'id'=>'backend_del',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_backend_del',
                  'onSubmit'=>'return check_backend_del();',
                  'cols'=>'2'));
            $this->addBodyLines($this->DELBACKENDFORM->initForm());
            $this->addBodyLines($this->DELBACKENDFORM->getCatLine(strtoupper($this->LANG->getLabel('delBackend'))));
            $this->propCount++;
            $this->addBodyLines($this->getDelFields());
            $this->addBodyLines($this->DELBACKENDFORM->getSubmitLine($this->LANG->getLabel('save')));
            $this->addBodyLines($this->DELBACKENDFORM->closeForm());
            
            // Resize the window
            $this->addBodyLines($this->parseJs($this->resizeWindow(540,$this->propCount*35+180)));
            if (DEBUG&&DEBUGLEVEL&1) debug('End method WuiBackendManagement::getForm()');
      }


Generated by  Doxygen 1.6.0   Back to index