Lines Matching refs:form

3  * Syntax plugin part for displaying a tag search form with results.
11 * Tagsearch syntax, displays a tag search form with results similar to the topic syntax
86 // print the search form
122 * Return the search form for the namespace and the tag selection
124 * @return string the HTML code of the search form
134 // build the list in the form value => label from the namespace search result
144 $form = new Doku_Form(array('action' => '', 'method' => 'post', 'class' => 'plugin__tag_search'));
146 // add a paragraph around the inputs in order to get some margin around the form elements
147 $form->addElement(form_makeOpenTag('p'));
150 $form->addElement(form_makeMenuField('plugin__tag_search_namespace', $ns_select, $this->getNS(), $lang['namespaces']));
158 $form->addElement(form_makeCheckboxField('plugin__tag_search_and', 1, $this->getLang('use_and'), '', '', $attr));
159 $form->addElement(form_makeCloseTag('p'));
166 // sort tags by name ($tags is in the form $tag => $count)
171 $form->addElement(form_makeOpenTag('p'));
172 $form->addElement($this->getLang('no_tags'));
173 $form->addElement(form_makeCloseTag('p'));
176 $form->addElement(form_makeOpenTag('div', array('class' => 'table')));
177 $form->addElement(form_makeOpenTag('table', array('class' => 'inline')));
179 $form->addElement(form_makeOpenTag('tr'));
180 $form->addElement(form_makeOpenTag('th'));
181 $form->addElement($this->getLang('include'));
182 $form->addElement(form_makeCloseTag('th'));
183 $form->addElement(form_makeOpenTag('th'));
184 $form->addElement($this->getLang('exclude'));
185 $form->addElement(form_makeCloseTag('th'));
186 $form->addElement(form_makeOpenTag('th'));
187 $form->addElement($this->getLang('tags'));
188 $form->addElement(form_makeCloseTag('th'));
189 $form->addElement(form_makeCloseTag('tr'));
193 $form->addElement(form_makeOpenTag('tr'));
194 $form->addElement(form_makeOpenTag('td'));
199 $form->addElement(form_makeCheckboxField('plugin__tag_search_tags[]', $tag, '+', '', 'plus', $attr));
200 $form->addElement(form_makeCloseTag('td'));
201 $form->addElement(form_makeOpenTag('td'));
206 $form->addElement(form_makeCheckboxField('plugin__tag_search_tags[]', '-'.$tag, '-', '', 'minus', $attr));
207 $form->addElement(form_makeCloseTag('td'));
208 $form->addElement(form_makeOpenTag('td'));
209 $form->addElement(hsc($tag).' ['.$count.']');
210 $form->addElement(form_makeCloseTag('td'));
211 $form->addElement(form_makeCloseTag('tr'));
214 $form->addElement(form_makeCloseTag('table'));
215 $form->addElement(form_makeCloseTag('div'));
217 // submit button (doesn't use the button form element because it always submits an action which is not
219 $form->addElement(form_makeOpenTag('p'));
220 $form->addElement(form_makeTag('input', array('type' => 'submit', 'value' => $lang['btn_search'])));
221 $form->addElement(form_makeCloseTag('p'));
224 return $form->getForm();