产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

请教大家关于搜索模型的问题 [复制链接]

1#
产品分类中有两大类产品,由于两类设置不同字段的原因,在表单模型里复制了一份 标识为产品中心 的表单,改表名并添加了新的字段。在原来表单中,有对应的搜索模型 ID为125,复制后的表单里也有搜索模型 ID为141。在产品页面有一个搜索框,对应代码是:

<script type="text/javascript">
function  c_keyword()
{
  if($("title").value=="")
  {
    alert("Please input the keywords.");
    $("title").focus();
    return false;
  }
}
</script>
<form method="get" action="/e/search/" target="zdy_search" name="S_article">
    <input id="title" maxlength="50" size="15" name="title" type="text" />      
    <input type="hidden" name="modelid" value="125" />  
    <input type="hidden" name="siteid" value="1" />    
    <input class="button" type="submit" onclick="return c_keyword()" value=" Search " />
</form>

使用时发现,只能搜索到对应原表单的对应产品,而不能搜索到新复制表单对应的另一个类别的产品,求助各位,如果能同时搜索到两类产品,要如何修改?





分享 转发
TOP
2#
TOP
发新话题 回复该主题