<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>

<!--#include file="FHeadTitle.asp"-->
<!--#include file="FFunction.asp"-->
<style type="text/css" media="screen">
@import url("css/layout.css@t=20050712.css");
@import url("css/v1.2.php@t=2006512.css");
@import url("home/css/sys/frontpage.css@t=20060512.css");
</style>
<%Response.Write "<TITLE>"&my_name&"----高级搜索</TITLE>"%>


</head>
<body class="<%= PageStyle %>">

<!--#include file="FHeadAll.asp"-->
<div class="HackBox"></div>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="350" align="center" valign="top">
      <br>
      <%Select case shopnet("abc")
case "p_s"%>
      <table width="550" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="10" align="left" valign="top" bgcolor="#FF7300"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
      <td width="100" align="center" valign="middle" bgcolor="#FF7300"><a href="?abc=p_s" style="font-weight: bold; color: #FFFFFF;">普通搜索</a></td>
      <td width="10" align="right" valign="top" bgcolor="#FF7300"><img src="image/corner_2.gif" width="4" height="4"></td>
      <td width="2"></td>
      <td width="10" align="left" valign="top" bgcolor="#10A3D2"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
      <td width="100" align="center" valign="middle" bgcolor="#10A3D2"><a href="?" style="font-weight: bold; color: #FFFFFF;">高级搜索</a></td>
      <td width="10" align="right" valign="top" bgcolor="#10A3D2"><img src="image/corner_2.gif" width="4" height="4"></td>
      <td width="2"></td>
      <td width="10" align="left" valign="top" bgcolor="#10A3D2"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
      <td width="100" align="center" valign="middle" bgcolor="#10A3D2"><a href="?abc=u_s" style="font-weight: bold; color: #FFFFFF;">搜索店铺</a></td>
      <td width="10" align="right" valign="top" bgcolor="#10A3D2"><img src="image/corner_2.gif" width="4" height="4"></td>
      <td height="22"></td>
    </tr>
    <tr>
      <td height="5" colspan="12" bgcolor="#FF7300"></td>
    </tr>
      </table>      <table width="550" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <TD height="50" align=center vAlign=bottom>&nbsp;</TD>
    </tr>
    <tr>
  <!--<form action="search.asp" method="get" name="myform" id="myform">-->
  <form action="productlist.asp" name="search_s" method="get">
        <TD align=center vAlign=bottom>
  <script language = "JavaScript">
function search_lx() {
if (document.search_s.lbid.value == 0 ){if(document.search_s.key.value == '') {
window.alert('不选择分类在全部分类中搜索时，请输入搜索关键字!!');
return false;}}
return true;}
</script>
<%Response.Write "<select name=lbid size=1 class=wenbenkuang><option value=0 selected>在所有产品类别中</option>"
set rs = conn.execute("select lbid,lbname from lb order by px desc,lbid")
do while not rs.eof
Response.Write "<option value="&rs("lbid")&">在"&rs("lbname")&"中</option>"
rs.movenext
loop
rs.close
set rs = nothing
Response.Write "</select>"%>
          <INPUT name="key" class=wenbenkuang size=20 maxlength="15">
        <input name=image type=image src="image/go_search.gif" alt=搜索 align=absMiddle border=0 onFocus="this.blur()" ONCLICK="javascript:return search_lx()"></TD></form>  </tr>
      </table>      <%case "u_s"%>
      <table width="550" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="10" align="left" valign="top" bgcolor="#10A3D2"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
      <td width="100" align="center" valign="middle" bgcolor="#10A3D2"><a href="?abc=p_s" style="font-weight: bold; color: #FFFFFF;"><span style="">普通搜</span>索</a></td>
      <td width="10" align="right" valign="top" bgcolor="#10A3D2"><img src="image/corner_2.gif" width="4" height="4"></td>
      <td width="2"></td>
      <td width="10" align="left" valign="top" bgcolor="#10A3D2"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
      <td width="100" align="center" valign="middle" bgcolor="#10A3D2"><a href="?" style="font-weight: bold; color: #FFFFFF;">高级搜索</a></td>
      <td width="10" align="right" valign="top" bgcolor="#10A3D2"><img src="image/corner_2.gif" width="4" height="4"></td>
      <td width="2"></td>
      <td width="10" align="left" valign="top" bgcolor="#FF7300"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
      <td width="100" align="center" valign="middle" bgcolor="#FF7300"><a href="?abc=u_s" style="font-weight: bold; color: #FFFFFF;">搜索店铺</a></td>
      <td width="10" align="right" valign="top" bgcolor="#FF7300"><img src="image/corner_2.gif" width="4" height="4"></td>
      <td height="22"></td>
    </tr>
    <tr>
      <td height="5" colspan="12" bgcolor="#FF7300"></td>
    </tr>
      </table>      <table width="550" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <TD height="50" align=center vAlign=bottom>&nbsp;</TD>
    </tr>
    <tr>
       <!--<form action="search.asp" method="get" name="myform" id="myform">-->
	  <form action="shoplist.asp" name="search_s" method="get">
        <TD align=center vAlign=bottom>
  <script language = "JavaScript">
function search_lx() {
if (document.search_s.key.value == '') {
window.alert('请输入搜索关键字!!');
return false;}
return true;}
        </script>
		  		  <input name="s" type="hidden" id="s" value="yes">
		  <input name="PageType" type="hidden" id="PageType" value="A">
          <select name="lx" class=wenbenkuang>
            <option value="1" selected>&nbsp;按店铺名称&nbsp;</option>
            <option value="2">&nbsp;按掌柜名称</option>
			
            <option value="3">&nbsp;按店铺介绍</option>
			<option value="5">&nbsp;按店铺地址</option>
           </select>
          <INPUT name="key" class=wenbenkuang size="15" maxlength="15">
          <input name=image2 type=image src="image/go_search.gif" alt=搜索 align=absMiddle border=0 onFocus="this.blur()" ONCLICK="javascript:return search_lx()"></TD>
      </form>
    </tr>
      </table>      <%case else%> 
      <table width="550" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="10" align="left" valign="top" bgcolor="#10A3D2"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
          <td width="100" align="center" valign="middle" bgcolor="#10A3D2"><a href="?abc=p_s" style="font-weight: bold; color: #FFFFFF;"><span style="">普通搜</span>索</a></td>
          <td width="10" align="right" valign="top" bgcolor="#10A3D2"><img src="image/corner_2.gif" width="4" height="4"></td>
          <td width="2"></td>
          <td width="10" align="left" valign="top" bgcolor="#FF7300"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
          <td width="100" align="center" valign="middle" bgcolor="#FF7300"><a href="?" style="font-weight: bold; color: #FFFFFF;">高级搜索</a></td>
          <td width="10" align="right" valign="top" bgcolor="#FF7300"><img src="image/corner_2.gif" width="4" height="4"></td>
          <td width="2"></td>
          <td width="10" align="left" valign="top" bgcolor="#10A3D2"><img src="image/corner_1.gif" width="4" height="4" align="top"></td>
          <td width="100" align="center" valign="middle" bgcolor="#10A3D2"><a href="?abc=u_s" style="font-weight: bold; color: #FFFFFF;">搜索店铺</a></td>
          <td width="10" align="right" valign="top" bgcolor="#10A3D2"><img src="image/corner_2.gif" width="4" height="4"></td>
          <td height="22"></td>
        </tr>
        <tr>
          <td height="5" colspan="12" bgcolor="#FF7300"></td>
        </tr>
      </table>      <br>
      <table width="560" border="0" align="center" cellpadding="5" cellspacing="0" style="BORDER-COLLAPSE: collapse">
        <!--<form action="search.asp" method="get" name="myform" id="myform">-->
		<form action="productlist.asp" method="get" name="myform" id="myform">
          <tr valign="middle">
            <td width="75" height="30" align="center">产品分类：</td>
            <td height="30">
<%set rs = conn.execute("select xlbid,xlbname,lbid from xlb order by px desc,xlbid")%>
<script language = "JavaScript">

var onecount;
onecount=0;
subcat = new Array();
<%count = 0
do while not rs.eof
Response.Write "subcat["&count&"] = new Array('"&rs("xlbname")&"','"&rs("lbid")&"','"&rs("xlbid")&"');"&chr(10)&""
count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>onecount=<%=count%>;  
<%set rs = conn.execute("select slbid,slbname,xlbid,lbid from slb order by slbid")%>var onecount2;
onecount2=0;
subcat2 = new Array();
<%count2 = 0
do while not rs.eof
Response.Write "subcat2["&count2&"] = new Array('"&rs("slbname")&"','"&rs("xlbid")&"','"&rs("slbid")&"');"&chr(10)&""
count2 = count2 + 1
rs.movenext
loop
rs.close
set rs=nothing%>onecount2=<%=count2%>;
function changelocation(locationid){
document.myform.xlbid.length = 0; 
document.myform.slbid.length = 0; 
var locationid=locationid;
var i;
document.myform.xlbid.options[0] = new Option('','');
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]);
}}} ; 
function changelocation2(villageid){
document.myform.slbid.length = 0; 
var villageid=villageid;
var j;
document.myform.slbid.options[0] = new Option('','');
for (j=0;j < onecount2; j++){
if (subcat2[j][1] == villageid){ 
document.myform.slbid.options[document.myform.slbid.length] = new Option(subcat2[j][0], subcat2[j][2]);}}} 
function checksignup() {
if (document.myform.lbid.value == '' ){if(document.myform.key.value == '') {
window.alert('不选择分类在全部分类中搜索时，请输入搜索关键字!!');
return false;}}
return true;}
</script>
<select name="lbid" class="wenbenkuang" style="width:180px" onChange="javascript:changelocation(document.myform.lbid.options[document.myform.lbid.selectedIndex].value)"><option></option>
<%set rs = conn.Execute ("select lbid,lbname from lb order by px desc,lbid" ) 
do while not rs.eof
Response.Write"<option value="&rs(0)&">"&rs(1)&"</option>" 
rs.movenext 
loop 
rs.close 
set rs = nothing%></select>
<select name="xlbid" class="wenbenkuang" style="width:120px" onChange="javascript:changelocation2(document.myform.xlbid.options[document.myform.xlbid.selectedIndex].value)"></select>
<select name="slbid" class="wenbenkuang" style="width:120px"></select></td>
          </tr>
          <tr valign="middle">
            <td width="75" height="30" align="center">价格范围：</td>
            <td height="30"><select name="jg" class="wenbenkuang">
              <option value="0" selected></option>
              <option value="1">1元</option>
              <option value="2">2元 - 10元</option>
              <option value="3">11元 - 50元</option>
              <option value="4">51元 - 100元</option>
              <option value="5">101元 - 200元</option>
              <option value="6">201元 - 500元</option>
              <option value="7">501元 - 1000元</option>
              <option value="8">1001元 - 1500元</option>
              <option value="9">1501元 - 2000元</option>
              <option value="10">2001元 - 5000元</option>
              <option value="11">5001元 - 10000元</option>
              <option value="12">10001元 - 50000元</option>
              <option value="13">5万元 - 10万元</option>
              <option value="14">10万元以上</option>
               </select></td>
          </tr>
          <tr valign="middle">
            <td width="75" height="30" align="center">搜索条件：</td>
            <td height="30">              <input name="lx" type="radio" value="0" onFocus="this.blur()" checked>
按产品
<input type="radio" name="lx" value="1" onFocus="this.blur()"> 
按店铺
<input name="lx" type="radio" value="2" onFocus="this.blur()"> 
按掌柜
<input name="lx" type="radio" value="3" onFocus="this.blur()"> 
按地区</td>
          </tr>
          <tr valign="middle">
            <td width="75" height="30" align="center">搜索范围：</td>
            <td height="30">              <input name="fs" type="radio" value="255" onFocus="this.blur()" checked>
全部产品
              <input type="radio" name="fs" value="0" onFocus="this.blur()"> 
一口价
              <input name="fs" type="radio" value="1" onFocus="this.blur()">
              拍卖
              <input name="fs" type="radio" value="2" onFocus="this.blur()">
              议价</td>
          </tr>
          <tr valign="middle">
            <td width="75" height="30" align="center">排序条件：</td>
            <td height="30"><select name=px class=wenbenkuang>
              <option value=0 selected>上架 从近到远</option>
              <option value=1>上架 从远到近</option>
              <option value=2>价格 从低到高</option>
              <option value=3>价格 从高到低</option>
              <option value=4>时间 从少到多</option>
              <option value=5>时间 从多到少</option>
              <option value=6>人气 从小到大</option>
              <option value=7>人气 从大到小</option>
            </select></td>
          </tr>
          <tr valign="middle">
            <td width="75" height="30" align="center">分页显示：</td>
            <td height="30">
              <select name=fenye class=wenbenkuang>
                <option value=20>每页20件产品</option>
                <option value=40 selected>每页40件产品</option>
                <option value=60>每页60件产品</option>
              </select></td>
          </tr>
          <tr valign="middle">
            <td height="30" align="center">显示方式：</td>
            <td height="30"><input name="xs" type="radio" value="0" onFocus="this.blur()" <%if Request.Cookies(Rikee)("xs")=0 or Request.Cookies(Rikee)("xs")="" or not isnumeric(Request.Cookies(Rikee)("xs")) then Response.Write "checked"%>> 
              列表
                <input type="radio" name="xs" value="1" onFocus="this.blur()" <%if Request.Cookies(Rikee)("xs")=1 then Response.Write "checked"%>>
图片
<input name="xs" type="radio" value="2" onFocus="this.blur()" <%if Request.Cookies(Rikee)("xs")=2 then Response.Write "checked"%>>
文本</td>
          </tr>
          <tr valign="middle">
            <td width="75" 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 width="75" height="30" align="center">&nbsp;</td>
            <td height="30">
              <input name="imageField" type="image" onFocus="this.blur()"  src="image/search_gj.gif" align="left" width="110" height="30" border="0" ONCLICK="javascript:return checksignup()">
            </td>
          </tr>
        </form>
      </table>      
      <%End Select%>
      <br></td>
  </tr>
</table>
<!--#include file="bottom.asp" -->
