Lines Matching defs:form
62 // create the form
63 $form = new Form(['id' => 'dw__recent', 'method' => 'GET', 'action' => wl($ID), 'class' => 'changes']);
64 $form->addTagOpen('div')->addClass('no');
65 $form->setHiddenField('sectok', null);
66 $form->setHiddenField('do', 'recent');
67 $form->setHiddenField('id', $ID);
71 $this->addRecentItemSelector($form);
75 $form->addTagOpen('ul');
83 $form->addTagOpen('li')->addClass($class);
84 $form->addTagOpen('div')->addClass('li');
95 $form->addHTML($html);
96 $form->addTagClose('div');
97 $form->addTagClose('li');
99 $form->addTagClose('ul');
101 $form->addTagClose('div'); // close div class=no
104 $form->addHTML($this->htmlNavigation($first, $hasNext));
106 echo $form->toHTML('Recent');
209 * Add dropdown selector of item types to the form instance
211 * @param Form $form
214 protected function addRecentItemSelector(Form $form)
218 $form->addTagOpen('div')->addClass('changeType');
224 $form->addDropdown('show_changes', $options, $lang['changes_type'])
226 $form->addButton('do[recent]', $lang['btn_apply'])->attr('type', 'submit');
227 $form->addTagClose('div');