View Single Post
  #4  
Old 11-04-2003, 06:35 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

to make a search menu to go with categories, help etc

create menu_search.tpl

Code:
{* $Id: menu_search.tpl,v 1.16 2003/02/25 08:58:45 olga Exp $ *} {capture name=menu} <TABLE align=center class=VertMenuItems border=0 cellPadding=5 cellSpacing=0 width="100%"> <form method="get" action="../customer/search.php" name=productsearchform> <tr> <td valign="middle"><input type="text" name="substring" size="19" value="{$smarty.get.substring|escape}"></td> </tr> <tr> <td valign="middle" width=250><a href="javascript:document.productsearchform.submit()"> {include file="buttons/search.tpl"}</a> </td> </tr> <tr> <td>{$lng.lbl_advanced_search}</td> </tr></form> </TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_search menu_content=$smarty.capture.menu }

then in home.tpl add

Code:
{ include file="menu_search.tpl" }

where you want the search box to appear
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote