<!--#include file="inc_top.asp" -->
<table width="762" bgcolor="#ffffff" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="350" valign="top" align="center"> 
      <p>&nbsp;</p><img src="image/adsearch.gif" border="0">
      <script language="javascript">
	<!--//
	function checksignup() {
		if ( document.myform.lbid.value == '' ) {
			window.alert('请选择产品分类!!');
			return false;
		}
		if ((isNaN(document.myform.fw1.value))||(isNaN(document.myform.fw2.value))){
			window.alert('请输入正确的价格范围!!');
			return false;
		}
		if ( document.myform.xlbid.value == '' ) {
			window.alert('您是通过后退按扭回到本网页，请先涮新本网页，或重新选择产品类别！');
			return false;
	}
		return true;
	}
	//-->
	</script>
      <table width="400" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#FF9900" style="BORDER-COLLAPSE: collapse">
        <form action="search2-ok.asp" method="get" name="myform" id="myform">
          <tr valign="middle"> 
            <td width="92" height="30" align="center">产品分类：</td>
            <td width="306" height="30"> <%dim rs
dim count
set rs = conn.execute("select * from xlb order by xlbid asc")
%> <script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("xlbname"))%>","<%= trim(rs("lbid"))%>","<%= trim(rs("xlbid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.xlbid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.xlbid.options[document.myform.xlbid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</script> <%
					set rs = conn.execute("select * from lb")
					if rs.eof and rs.bof then
						response.write "请先添加类别。"
						response.end
					else
					%> <select name="lbid" size="1" class="wenbenkuang" onChange="changelocation(document.myform.lbid.options[document.myform.lbid.selectedIndex].value)">
                <option value="" selected>请选择大类别</option>
                <%do while not rs.eof%>
                <option value="<%=trim(rs("lbid"))%>"><%=trim(rs("lbname"))%></option>
                <%
        				rs.movenext
       					loop
						end if
       					rs.close
        				set rs = nothing
						%>
              </select> <select name="xlbid" class="wenbenkuang">
                <option selected value="">请先选择大类别</option>
              </select> <font color="#FF3300">*</font></td>
          </tr>
          <tr valign="middle"> 
            <td height="30" align="center">价格范围：</td>
            <td height="30"><input name="fw1" type="text" class="wenbenkuang" id="key22" size="5" maxlength="10">
              - 
              <input name="fw2" type="text" class="wenbenkuang" id="key22" size="5" maxlength="10">
              元</td>
          </tr>
          <tr valign="middle"> 
            <td height="30" align="center">关键字：</td>
            <td height="30"> <input name="key" type="text" class="wenbenkuang" id="key22" size="20" maxlength="25"></td>
          </tr>
          <tr valign="middle"> 
            <td height="30" align="center">排序条件：</td>
            <td height="30"> <INPUT type=radio CHECKED value=sj name=tj onFocus=this.blur()>
              加入日期 
              <INPUT type=radio value=rq name=tj onFocus=this.blur()>
              产品人气 
              <INPUT type=radio value=jg2 name=tj onFocus=this.blur()>
              产品价格</td>
          </tr>
          <tr valign="middle"> 
            <td height="30" align="center">排序方式：</td>
            <td height="30"> <INPUT type=radio CHECKED value=desc name=fs onFocus=this.blur()>
              降序 
              <INPUT type=radio value=asc name=fs onFocus=this.blur()>
              升序</td>
          </tr>
          <tr valign="middle"> 
            <td height="30" align="center">&nbsp;</td>
            <td height="30"> 
              <input name="imageField" type="image" onFocus="this.blur()" onClick="javascript:return checksignup()" src="image/search.gif" align="left" width="52" height="19" border="0">
              如有疑问，请阅读“<a href="search-help.asp" target=_blank>搜索说明</a>”</td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
<!--#include file="inc_end.asp" -->