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

WuiMapManagement::getForm (  ) 

If enabled, the form is added to the page

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

Definition at line 48 of file WuiMapManagement.php.

References GlobalPage::addBodyLines(), getCreateFields(), getDeleteFields(), getExportFields(), getImportFields(), getJsLang(), getRenameFields(), getSubmit(), GlobalPage::parseJs(), and GlobalPage::resizeWindow().

                         {
            if (DEBUG&&DEBUGLEVEL&1) debug('Start method WuiMapManagement::getForm()');
            // Inititalize language for JS
            $this->addBodyLines($this->parseJs($this->getJsLang()));
            
            $this->CREATEFORM = new GlobalForm(Array('name'=>'map_create',
                  'id'=>'map_create',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_map_create',
                  'onSubmit'=>'return check_create_map();',
                  'cols'=>'2'));
            $this->addBodyLines($this->CREATEFORM->initForm());
            $this->addBodyLines($this->CREATEFORM->getCatLine(strtoupper($this->LANG->getLabel('createMap'))));
            $this->propCount++;
            $this->addBodyLines($this->getCreateFields());
            $this->addBodyLines($this->getSubmit($this->CREATEFORM,$this->LANG->getLabel('create')));
            
            $this->RENAMEFORM = new GlobalForm(Array('name'=>'map_rename',
                  'id'=>'map_rename',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_map_rename',
                  'onSubmit'=>'return check_map_rename();',
                  'cols'=>'2'));
            $this->addBodyLines($this->RENAMEFORM->initForm());
            $this->addBodyLines($this->RENAMEFORM->getCatLine(strtoupper($this->LANG->getLabel('renameMap'))));
            $this->propCount++;
            $this->addBodyLines($this->getRenameFields());
            $this->addBodyLines($this->getSubmit($this->RENAMEFORM,$this->LANG->getLabel('rename')));
            
            $this->DELETEFORM = new GlobalForm(Array('name'=>'map_delete',
                  'id'=>'map_delete',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_map_delete',
                  'onSubmit'=>'return check_map_delete();',
                  'cols'=>'2'));
            $this->addBodyLines($this->DELETEFORM->initForm());
            $this->addBodyLines($this->DELETEFORM->getCatLine(strtoupper($this->LANG->getLabel('deleteMap'))));
            $this->propCount++;
            $this->addBodyLines($this->getDeleteFields());
            $this->addBodyLines($this->getSubmit($this->DELETEFORM,$this->LANG->getLabel('delete')));
            
            $this->EXPORTFORM = new GlobalForm(Array('name'=>'map_export',
                  'id'=>'map_export',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_map_export',
                  'onSubmit'=>'return check_map_export();',
                  'cols'=>'2'));
            $this->addBodyLines($this->EXPORTFORM->initForm());
            $this->addBodyLines($this->EXPORTFORM->getCatLine(strtoupper($this->LANG->getLabel('exportMap'))));
            $this->propCount++;
            $this->addBodyLines($this->getExportFields());
            $this->addBodyLines($this->getSubmit($this->EXPORTFORM,$this->LANG->getLabel('export')));
            
            
            $this->IMPORTFORM = new GlobalForm(Array('name'=>'map_import',
                  'id'=>'map_import',
                  'method'=>'POST',
                  'action'=>'./form_handler.php?myaction=mgt_map_import',
                  'onSubmit'=>'return check_map_import();',
                  'enctype'=>'multipart/form-data',
                  'cols'=>'2'));
            $this->addBodyLines($this->IMPORTFORM->initForm());
            $this->addBodyLines($this->IMPORTFORM->getCatLine(strtoupper($this->LANG->getLabel('importMap'))));
            $this->propCount++;
            $this->addBodyLines($this->getImportFields($this->IMPORTFORM));
            $this->addBodyLines($this->getSubmit($this->IMPORTFORM,$this->LANG->getLabel('import')));
            
            // Resize the window
            $this->addBodyLines($this->parseJs($this->resizeWindow(540,$this->propCount*30+100)));
            if (DEBUG&&DEBUGLEVEL&1) debug('End method WuiMapManagement::getForm()');
      }


Generated by  Doxygen 1.6.0   Back to index