Thread: Search Upgrade
View Single Post
  #33  
Old 07-26-2003, 01:59 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

If you use the code that I posted on earlier on this thread for categories.php and use the following for advanced search - it works.

Code:
{* $Id: advanced_search.tpl,v 1.3 2002/10/08 12:01:17 alfiya Exp $ *} {include file="location.tpl" last_location=$lng.lbl_advanced_search} {capture name=adv_search} <table border=0> <form action="search.php" name="productsearchbyprice_form"> <tr> <td>{$lng.lbl_product_title}</td> <td> <input type="text" name="substring" size="30" value="{$smarty.get.substring}"> </td> </tr> <tr><td>{$lng.lbl_price}, {$config.General.currency_symbol}</td> <td><input type="text" name="price_search_1" size="6" value="{$smarty.get.price_search_1|escape}"> - <input type="text" name="price_search_2" size="6" value="{$smarty.get.price_search_2|escape}"></td></tr> <tr><td>{$lng.lbl_category}</td> <td> <select name="in_category"> <option value="">All</option> {section name=cat_num loop=$categories} <option value="{ $categories[cat_num].categoryid}">{ $categories[cat_num].category|escape }</option> {section name=cat_num1 loop=$allcategories} {if $allcategories[cat_num1].topcat eq $categories[cat_num].category_name} <option value="{ $allcategories[cat_num1].categoryid}">- { $allcategories[cat_num1].category_name|escape }</option> {/if} {/section} {/section} </select> </td> </tr> <tr><td></td></tr> <tr><th>{include file="buttons/search.tpl"}</th></tr> </form> </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_advanced_search content=$smarty.capture.adv_search extra="width=100%"}
__________________
ex x-cart guru
Reply With Quote