模版首页 网站搜索框无法模糊搜索 搜型号也不行

2016-07-07 16:03 来源:www.chinab4c.com 作者:ecshop专家

{$lang.advanced_search}</h1>
<div class="mod1con">
<form action="search.php" method="get" name="advancedSearchForm" id="advancedSearchForm">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="8">
<tr>
<td width="22%" align="right" valign="top">{$lang.keywords}:</td>
<td width="78%">
<input name="keywords" id="keywords" type="text" size="40" maxlength="120" class="InputBorder" value="{$adv_val.keywords}" />
<label for="sc_ds"><input type="checkbox" name="sc_ds" value="1" id="sc_ds" {$scck} />{$lang.sc_ds}</label>
<br />{$lang.searchkeywords_notice}
</td>
</tr>
<tr>
<td align="right">{$lang.category}:</td>
<td><select name="category" id="select" class="InputBorder">
<option value="0">{$lang.all_category}</option>{$cat_list}</select>
</td>
</tr>
<tr>
<td align="right">{$lang.brand}:</td>
<td><select name="brand" id="brand" class="InputBorder">
<option value="0">{$lang.all_brand}</option>
{html_opti** opti**=$brand_list selected=$adv_val.brand}
</select>
</td>
</tr>
<tr>
<td align="right">{$lang.price}:</td>
<td><input name="min_price" type="text" id="min_price" class="InputBorder" value="{$adv_val.min_price}" size="10" maxlength="8" />
-
<input name="max_price" type="text" id="max_price" class="InputBorder" value="{$adv_val.max_price}" size="10" maxlength="8" />
</td>
</tr>
<!--{if $goods_type_list}-->
<tr>
<td align="right">{$lang.extension}:</td>
<td><select name="goods_type" onchange="this.form.submit()" class="InputBorder">
<option value="0">{$lang.all_option}</option>
{html_opti** opti**=$goods_type_list selected=$goods_type_selected}
</select>
</td>
</tr>
<!--{/if}-->
<!--{if $goods_type_selected > 0}-->
<!--{foreach from=$goods_attributes item=item}-->
<!--{if $item.type eq 1}-->
<tr>
<td align="right">{$item.attr}:</td>
<td colspan="3"><input name="attr[{$item.id}]" value="{$item.value}" class="InputBorder" type="text" size="20" maxlength="120" /></td>
</tr>
<!--{/if}-->
<!--{if $item.type eq 2}-->
<tr>
<td align="right">{$item.attr}:</td>
<td colspan="3"><input name="attr[{$item.id}][from]" class="InputBorder" value="{$item.value.from}" type="text" size="5" maxlength="5" />
-
<input name="attr[{$item.id}][to]" value="{$item.value.to}"class="InputBorder" type="text" maxlength="5" /></td>
</tr>
<!--{/if}-->
<!--{if $item.type eq 3}-->
<tr>
<td align="right">{$item.attr}:</td>
<td colspan="3"><select name="attr[{$item.id}]" class="InputBorder">
<option value="0">{$lang.all_option}</option>
{html_opti** opti**=$item.opti** selected=$item.value}
</select></td>
</tr>
<!--{/if}-->
<!--{/foreach}-->
<!--{/if}-->

<!-- {if $use_storage eq 1} -->
<tr>
<td align="right">&nbsp;</td>
<td><label for="outstock"><input type="checkbox" name="outstock" value="1" id="outstock" <!-- {if $outstock} -->checked="checked"<!--{/if}-->/> {$lang.hidden_outstock}</label></td>
</tr>
<!--{/if}-->

<tr>
<td colspan="4" align="center"><input type="hidden" name="action" value="form" />
<input type="submit" name="Submit" value="{$lang.button_search}" class="bnt_number4" /></td>
</tr>
</table>

回答:
哪位老师帮忙看下 谢谢

看不懂,比较复杂