Community Add-Ons
Search in Header
for osCommerce Online Merchant v2.2
After trying a search in header and it not working for me i came up with this one its just a slight modification to the stock search.php file but works well in header.php
just find a place in the header.php file to add code below and thats it
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="headerNavigation" valign="middle" align="left">
<?php
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
'align' => 'center',
'text' => BOX_SEARCH_TEXT . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat', '1', true) . tep_draw_input_field('keywords','','size="10" maxlength="30" class="searchForm" style="width: ' . (BOX_WIDTH-10) . 'px"') .' '. tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . tep_hide_session_id() .' '. tep_image_submit('go.jpg', IMAGE_BUTTON_SEARCH));
new infoBox($info_box_contents);
?>
</td>
</tr>
</table>
enjoy you can view live at http://www.blackroots.net
it's a live shop so please dont purchase anything unless you want to buy
No files included
Legend:
Download
Report
Best placed after </table> and before <?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
