- Patch #28784 by Neil: improved HTML/CSS of search form.

4.7.x
Dries Buytaert 2005-09-07 20:57:39 +00:00
parent 16262e03d5
commit 451dbd17a6
2 changed files with 2 additions and 6 deletions

View File

@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
$prompt = t('Enter your keywords');
}
$output = ' <div class="search-form">';
$box = '<div class="container-inline">';
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);
$output .= '</div>';
return form($output, 'post', $action);
return form($output, 'post', $action, array('class' => 'search-form'));
}
/**

View File

@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
$prompt = t('Enter your keywords');
}
$output = ' <div class="search-form">';
$box = '<div class="container-inline">';
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);
$output .= '</div>';
return form($output, 'post', $action);
return form($output, 'post', $action, array('class' => 'search-form'));
}
/**