Lines Matching defs:searchForm
69 $searchForm = (new Form(['method' => 'get'], true))->addClass('search-results-form');
70 $searchForm->setHiddenField('do', 'search');
71 $searchForm->setHiddenField('id', $ID);
72 $searchForm->setHiddenField('sf', '1');
74 $searchForm->setHiddenField('min', $INPUT->str('min'));
77 $searchForm->setHiddenField('max', $INPUT->str('max'));
80 $searchForm->setHiddenField('srt', $INPUT->str('srt'));
82 $searchForm->addFieldsetOpen()->addClass('search-form');
83 $searchForm->addTextInput('q')->val($query)->useInput(false);
84 $searchForm->addButton('', $lang['btn_search'])->attr('type', 'submit');
86 $this->addSearchAssistanceElements($searchForm);
88 $searchForm->addFieldsetClose();
90 return $searchForm->toHTML('Search');
96 * @param Form $searchForm
98 protected function addSortTool(Form $searchForm)
118 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
120 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
124 $searchForm->addHTML($options[$activeOption]['label']);
125 $searchForm->addTagClose('div');
128 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
131 $listItem = $searchForm->addTagOpen('li');
135 $searchForm->addHTML($option['label']);
138 $searchForm->addHTML($link);
140 $searchForm->addTagClose('li');
142 $searchForm->addTagClose('ul');
144 $searchForm->addTagClose('div');
186 * @param Form $searchForm
188 protected function addSearchAssistanceElements(Form $searchForm)
190 $searchForm->addTagOpen('div')
195 $this->addFragmentBehaviorLinks($searchForm);
196 $this->addNamespaceSelector($searchForm);
197 $this->addDateSelector($searchForm);
198 $this->addSortTool($searchForm);
200 $searchForm->addTagClose('div');
206 * @param Form $searchForm
208 protected function addFragmentBehaviorLinks(Form $searchForm)
251 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
253 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
257 $searchForm->addHTML($options[$activeOption]['label']);
258 $searchForm->addTagClose('div');
261 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
264 $listItem = $searchForm->addTagOpen('li');
268 $searchForm->addHTML($option['label']);
273 $searchForm->addHTML($link);
275 $searchForm->addTagClose('li');
277 $searchForm->addTagClose('ul');
279 $searchForm->addTagClose('div');
287 * @param Form $searchForm
289 protected function addNamespaceSelector(Form $searchForm)
300 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
302 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
305 $searchForm->addHTML('@' . $baseNS);
307 $searchForm->addHTML($lang['search_any_ns']);
309 $searchForm->addTagClose('div');
312 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
314 $listItem = $searchForm->addTagOpen('li');
318 $searchForm->addHTML($link);
320 $searchForm->addHTML($lang['search_any_ns']);
322 $searchForm->addTagClose('li');
325 $listItem = $searchForm->addTagOpen('li');
330 $searchForm->addHTML($label);
333 $searchForm->addHTML($link);
335 $searchForm->addTagClose('li');
337 $searchForm->addTagClose('ul');
339 $searchForm->addTagClose('div');
376 * @param Form $searchForm
378 protected function addDateSelector(Form $searchForm)
412 $searchForm->addTagOpen('div')->addClass('toggle')->attr('aria-haspopup', 'true');
414 $currentWrapper = $searchForm->addTagOpen('div')->addClass('current');
418 $searchForm->addHTML($options[$activeOption]['label']);
419 $searchForm->addTagClose('div');
422 $searchForm->addTagOpen('ul')->attr('aria-expanded', 'false');
425 $listItem = $searchForm->addTagOpen('li');
429 $searchForm->addHTML($option['label']);
434 $searchForm->addHTML($link);
436 $searchForm->addTagClose('li');
438 $searchForm->addTagClose('ul');
440 $searchForm->addTagClose('div');