/** * Form to add a new schema * * @return string */ protected function html_newschema() { $form = new Form(); $form->addClass('struct_newschema'); $form->addFieldsetOpen($this->getLang('create')); $form->setHiddenField('do', 'admin'); $form->setHiddenField('page', 'struct_schemas'); $form->addTextInput('table', $this->getLang('schemaname')); $form->addRadioButton('lookup', $this->getLang('page schema'))->val('0')->attr('checked', 'checked'); $form->addRadioButton('lookup', $this->getLang('lookup schema'))->val('1'); $form->addButton('', $this->getLang('save')); $form->addHTML('<p>' . $this->getLang('createhint') . '</p>'); // FIXME is that true? we probably could $form->addFieldsetClose(); return $form->toHTML(); }