From 18eb40c98807e8c51e6a695e00a7ba03c004ac5f Mon Sep 17 00:00:00 2001 From: sarven Date: Sat, 24 Jan 2009 00:58:12 +0000 Subject: Search form markup and style --- lib/searchaction.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lib/searchaction.php') diff --git a/lib/searchaction.php b/lib/searchaction.php index 70e63146a..fdfb8dc5a 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -114,17 +114,21 @@ class SearchAction extends Action $q = $this->trimmed('q'); $page = $this->trimmed('page', 1); $this->elementStart('form', array('method' => 'get', - 'id' => 'login', + 'id' => 'form_search', + 'class' => 'form_settings', 'action' => common_local_url($this->trimmed('action')))); - $this->elementStart('p'); + $this->elementStart('fieldset'); + $this->element('legend', null, _('Search site')); + $this->elementStart('ul', 'form_data'); + $this->elementStart('li'); if (!isset($config['site']['fancy']) || !$config['site']['fancy']) { $this->hidden('action', $this->trimmed('action')); } - $this->input('q', '', $q); - $this->text(' '); + $this->input('q', 'Keyword(s)', $q); $this->submit('search', 'Search'); - - $this->elementEnd('p'); + $this->elementEnd('li'); + $this->elementEnd('ul'); + $this->elementEnd('fieldset'); $this->elementEnd('form'); if ($q) { $this->showResults($q, $page); -- cgit v1.2.3