Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to re-arrange Quick search


param_nirvana

Recommended Posts

I want to rearrange Quich Search link.

 

I have removed the quick search box from left column and created a custom quick search box. You can see it on live website SwamiPC (www.swamipc.in) on the top left corner below logo.

 

I have used pure HTML code to create form and I want to make it work in exactly same way as the original search box works.

 

Here is my code for the box which I have been talking about

 <tr align="center" valign="middle">

	<td width="77%" align="right"><label>
	<input name="textfield" type="text" class="form" />
	</label></td>
	<td width="11%"></td>
	<td width="12%" valign="middle"> <?php echo tep_image_submit('go.gif', BOX_HEADING_SEARCH) ?></td>
  </tr>

 

Now How do I link the following code to the above code to make it work as search box.

 

 
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'align' => 'center',
						   'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 new infoBox($info_box_contents);
?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...