<!--#include file="conn.asp"-->
<%
'if s_head="head4.asp" or s_productkind="4" then
'	response.write "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">"
'else
	response.write "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">"
'end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=application("sitename")%></title>
<link href="i.css" type=text/css rel=stylesheet>
<style type="text/css"> 
<!--

.style1 {font-size: 14px}
.style11 {
	font-size: 14px;
	color: #990000;
	font-weight: bold;
}
.style12 {color: #990000}
-->
</style>
<SCRIPT language=JavaScript>
<!--

function Juge(theForm)
{
  if (isNaN(theForm.price11.value))
  {
    alert("市场价要为数字!");
    theForm.price11.focus();
    return (false);
  }
  if (isNaN(theForm.price12.value))
  {
    alert("市场价要为数字!");
    theForm.price12.focus();
    return (false);
  }
  if (isNaN(theForm.price21.value))
  {
    alert("会员价要为数字!");
    theForm.price21.focus();
    return (false);
  }
  if (isNaN(theForm.price22.value))
  {
    alert("会员价要为数字!");
    theForm.price22.focus();
    return (false);
  }
}
-->
</script>

</head>

<body>
<!-- #include file="head.asp" -->
<TABLE width="996" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
  <tr><td>


<table width="770" height="352" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="213" height="184" valign="top" >
 <!-- #include file="inc_left_all.asp" --> </td>

    <td width="557" valign="top">
	<table width="99%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height=2></td>
      </tr>
    </table>
      <TABLE width="550" 
                  border=0 align="center" cellPadding=0 cellSpacing=2 class=a1>
        <TBODY>
          <TR>
            <TD width="543" height=30 colSpan=3><TABLE width="548" 
border=0 cellPadding=0 cellSpacing=0 background="images/bg4.gif">
              <TBODY>
                <TR>
                          <TD width=136 
                            height=30 background=images/hotnewpro.gif>　　　<span class="style11">商品高级搜索</span></TD>
                          <TD width="370">&nbsp;</TD>
                          <TD width=42>&nbsp;</TD>
                </TR>
              </TBODY>
            </TABLE></TD>
          </TR>
		  </tbody>
		  </table>
            <br>
            <table width="86%" border="0" cellspacing="0" cellpadding="0">
<form name="theForm" method="post" action="advsearchadmin.asp" onSubmit="return Juge(this)">
              <tr> 
                  <td width="27%" height="35">
<div align="right">商品类别：</div></td>
                  <td width="73%">
                    <select name="kindnum" size="1" style="width:168px; font-size:12px; ">
<%
	  'dim maxkind,kindnum,kindname,grade,i,gradestr

	response.write "<option value=''>全部</option>"

		sql="select * from sh_kind order by kindnum"
		set rs=server.createobject("adodb.recordset")
		rs.open sql,conn,1,1
		if rs.bof or rs.eof then
		else
		do while not rs.eof
			kindnum=rs("kindnum")
			kindname=rs("kindname")
			grade=len(kindnum)/4
			i=1
			gradestr=""
			for i=1 to grade-1
				gradestr=gradestr &"--"
			next
			response.write "<option value='"&kindnum&"'>|-"&gradestr&kindname&"</option>"
		rs.movenext
		loop
		end if
		rs.close
		set rs=nothing
%>
	  
      </select></td>
              </tr>
              <tr> 
                  <td height="35">
<div align="right">商品品牌：</div></td>
                <td><input name="pipai" type="text" id="pipai">
                    (支持模糊搜索) </td>
              </tr>
              <tr> 
                  <td height="35">
<div align="right">商品编号：</div></td>
                <td><input name="model" type="text" id="model">
                    (支持模糊搜索) </td>
              </tr>
              <tr> 
                  <td height="35">
<div align="right">商品名称：</div></td>
                <td><input name="productname" type="text" id="productname">
                    (支持模糊搜索) </td>
              </tr>

			<%
			sql="select * from sh_shuxing order by id "
			set rs=conn.execute(sql)
			if rs.bof or rs.eof then
			else
				s=1
				do while not rs.eof
					sx=rs("sx")
					sx_val=rs("sx_val")	
					if  sx<>"" and sx_val<>"" then	
						response.write "<tr height='35'><td align='right'>"
						response.write sx&"：</td><td><select name='shuxing"&s&"' style='width:150px;'><option value=''></option>"
						arr=split(sx_val,",")
						for i=0 to Ubound(arr)
							response.write "<option value='"&arr(i)&"'>"&arr(i)&"</option>"
						next
						response.write "</select></td</tr>"&vbcrlf
					end if
				rs.movenext
				s=s+1
				loop
			end if
			rs.close
			set rs=nothing
			%>
	  
<!--
              <tr> 
                  <td height="35">
<div align="right">市场价：</div></td>
                  <td>从
                    <input name="price11" type="text" id="price11" size="6">
                    到 
                    <input name="price12" type="text" id="price12" size="6">
                    元</td>
              </tr>
              <tr> 
                  <td height="35">
<div align="right">会员价：</div></td>
                  <td>从 
                    <input name="price21" type="text" id="price21" size="6">
                    到 
                    <input name="price22" type="text" id="price22" size="6">
                    元</td>
              </tr>
-->
			  
			  
              <tr> 
                  <td height="16"> 
<div align="right"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td height="30"><div align="right"></div></td>
                <td>
                    <input type="submit" name="Submit" value="现在搜索">
                    　　 
                    <input type="reset" name="Submit2" value="重新填写">
                  </td>
              </tr>
              <tr> 
                <td height="30"><div align="right"></div></td>
                <td>&nbsp;</td>
              </tr></form>
            </table> </td>
  </tr>
</table>

    </td>
  </tr>

</table>
<!-- #include file="foot.asp" -->
<%
conn.close
set conn=nothing
%>
</body>
</html>

