<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="fuction.asp"-->
<html>
<head>
<title><%=webname%>--高级搜索</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="webtop.asp"-->
<div align="center">
<TABLE id=table1 style="MARGIN: 0px auto; BORDER-BOTTOM: #ffffff 0px solid" 
height="100%" cellSpacing=0 borderColorDark=#FFFFFF cellPadding=0 width=976 
borderColorLight=#CECECE border=1>
  <TBODY>
  <TR><!--sart left-->
    <TD vAlign=top width=234 bgcolor="#F1F1F1">
      <p align="center"><!--#include file="left.asp"--></TD><!---end left--><!--start right-->
    <TD vAlign=top align=middle width=736>
			<table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table2">
        <tr> 
          <td height="100"><img src="images/block.gif" width="1" height="1"> <br>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" id="table3">
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
              <tr> 
                <td height="25" bgcolor="efefef"><strong>&nbsp;&nbsp;<img src="images/dot_03.gif" width="9" height="9" border="0"> 
                  </strong><b>商品高级搜索</b></td>
              </tr>
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
            </table>
            <br> 
            <table border="0" align="center" cellpadding="0" cellspacing="0" width="600" id="table4">
              <tr> 
                <td valign="top"> <br>
                  <IMG height=5 src="images/block.gif" width=1><font color="<%=tzh%>">&nbsp;</font>品牌推荐： 
                  <%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 20 * From shop_pingpai where tuijian=1 order by pingpaiorder",conn,1,1
if rs.eof and rs.bof then
response.write ""
else%>
                  <%
		  while not rs.eof
		  response.write "·<a href=research.asp?action=0&searchkey="&trim(rs("pingpainame"))&" target=_blank><font color="&tsh&">"&trim(rs("pingpainame"))&"</font></a>"
		  rs.movenext
		  wend
		  %>
                  <%end if
rs.close
set rs=nothing%>
                  <br> <br> 
				<table border="0" cellspacing="0" cellpadding="1" align="center" width="489" id="table5">
                    <tr> 
                      <td> 
						<table width="60%" border="0" align="center" cellpadding="2" cellspacing="5" bgcolor="#FFFFFF" id="table6">
                          <form name="form2" method="post" action="research.asp">
                            <tr> 
                              <td width="36%" style="padding-left:6px"> <div align="center">关 
                                  健 字：</div></td>
                              <td width="64%"  style="padding-left:6px"> <input name="searchkey" type="text" id="searchkey" class="wenbenkuang"> 
                              </td>
                            </tr>
                            <tr> 
                              <td style="padding-left:6px" width="36%"> <div align="center">查找方式：</div></td>
                              <td style="padding-left:6px" width="64%"> 
							  <script>
	var selects111=[];
<%dim i
	set rs=server.createobject("adodb.recordset")
	rs.open "select * From shop_pingpai order by pingpaiorder",conn,1,1
	'有大类
%>
	selects111['2']=new Array(
<%
	if rs.recordcount>0 then
	    for i=1 to rs.recordcount
		if i=rs.recordcount then 
%>
		new Option('<%=trim(rs("pingpainame"))%>','<%=trim(rs("pingpainame"))%>'));
<%		else
%>
		new Option('<%=trim(rs("pingpainame"))%>','<%=trim(rs("pingpainame"))%>'),
<%
		end if
		rs.movenext
		next
	else 
%>
		new Option('',''));
<%
	end if
rs.close
set rs=nothing
%>

function showselect()
{
if (document.form2.action.value=="2") {
	T_select.style.display = "";
	//加入内容
		with (document.form2){
			if(action.value) {
				selectname.options.length=0;
				for(var i=0;i<selects111[action.value].length;i++){
					selectname.add(selects111[action.value][i]);
				}
			}
		}
}else{
	T_select.style.display = "none";
} 
}
</script> <table border="0" cellspacing="0" cellpadding="0" id="table7">
                                  <tr> 
                                    <td> <select name="action" id="select" onChange="showselect();" class="wenbenkuang">
                                        <option value="1" selected>商品名称</option>
                                        <option value="2">品牌</option>
                                        <option value="3">内容简介</option>
                                      </select> </td>
                                    <td> 
									<table border="0" cellspacing="0" cellpadding="0" id=table8 style="DISPLAY: none">
                                        <tr> 
                                          <td> <select name="selectname" class="wenbenkuang">
                                            </select> </td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                </table></td>
                            </tr>
                            <tr> 
                              <td style="padding-left:6px" width="36%"> <div align="center">价格范围：</div></td>
                              <td style="padding-left:6px" width="64%"> <select name="jiage" id="select2" class="wenbenkuang">
                                  <option value="20">20元以下</option>
                                  <option value="30">30元以下</option>
                                  <option value="50" selected>50元以下</option>
                                  <option value="100">100元以下</option>
                                  <option value="500">500元以下</option>
                                  <option value="1000">1000元以下</option>
                                  <option value="10000">10000元以下</option>
                                  <option value="1000000000">不限制价格</option>
                                </select> </td>
                            </tr>
                            <tr> 
                              <td height="18" style="padding-left:6px" width="36%"> 
                                <div align="center">商品分类：</div></td>
                              <td style="padding-left:6px" width="64%"> 
                                <%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select * from shop_anclass order by anclassidorder",conn,1,1
		  %>
                                <select name="anclassid" class="wenbenkuang">
                                  <option value="0">查讯所有分类</option>
                                  <%do while not rs.eof%>
                                  <option value="<%=rs("anclassid")%>"><%=trim(rs("anclass"))%></option>
                                  <%rs.movenext
		  loop
		  rs.close
		  set rs=nothing%>
                                </select> </td>
                            </tr>
                            <tr> 
                              <td height="18" colspan="2" style="padding-left:6px"> 
                                <div align="center"> 
                                  <input name="Submit33" type="submit" class="go-wenbenkuang" value="提交搜索" onClick="return checkk();">&nbsp;
                                  <input name="Submit2" type="reset" class="go-wenbenkuang" value="重置">&nbsp;
                                  <input name="Submit32" type="button" class="go-wenbenkuang" value="返回" onClick="javascript:window.history.go(-1)">
                                </div></td>
                            </tr>
                          </form>
                        </table></td>
                    </tr>
                  </table>
                  <br> </td>
              </tr>
            </table></td>
        </tr>
      </table></TD><!--end right--></TR></TBODY></TABLE></div>
<!--#include file="copyright.asp"-->
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkk()
{
   if(checkspace(document.form2.searchkey.value)&&((document.form2.action.value=="3")||(document.form2.action.value=="1")))  {
	document.form2.searchkey.focus();
	alert("请输入查讯关键字！");
	return false;
  }
   document.form2.submit();
}

//-->
</script>