Lines Matching defs:form
118 // query form
119 $form = new Form(['action' => $this->selfLink()]);
120 $form->addClass('sqliteplugin');
121 $form->addFieldsetOpen('SQL Command');
122 $form->addTextarea('sql')->addClass('edit');
123 $form->addButton('submit', $this->getLang('btn_execute'))->attr('type', 'submit');
124 $form->addTextInput('name', $this->getLang('query_name'));
125 $form->addButton('cmd[save_query]', $this->getLang('save_query'))->attr('type', 'submit');
126 $form->addFieldsetClose();
127 echo $form->toHTML();
233 * @param bool $form for use in form action?
236 protected function selfLink($form = true, $params = [])
249 return wl($ID, $params, false, $form ? '&' : '&');
275 // import form
276 $form = new Form(['action' => $this->selfLink(), 'enctype' => 'multipart/form-data', 'method' => 'post']);
277 $form->addElement(
282 $form->addButton('cmd[import]', $this->getLang('import'));
292 echo $form->toHTML();