⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.asp

📁 网上购物系统:一个经过完善设计的经典网上购物系统
💻 ASP
字号:
<!--
┌─ shopxp.cn──────────────┐
│  免费版难免存在不足,建议你使用正式版  │
│  正式版用户提供免费升级24小时内排除故障│
│  请到www.shopxp.cn进行前台和后台的测试 │
│  热线:010-69209701-801 QQ:83107971   │
└────────────────────┘
-->
<!--#include file="conn/conn.asp"-->
<!--#include file="conn/webconfig.asp"-->
<html><head><title><%=webname%>--高级搜索</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF6600}
-->
</style>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<!--#include file="webtop.asp"-->
<table width="92%" height="170" border="0" cellpadding="0" cellspacing="0">
  <tr>
       <td width="100%" valign="top"><br><table width="880" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr>
           <td height="2" bgcolor="#FE7C20"></td>
         </tr>
         <tr>
           <td height="80" background="img/xiao/searchbox_bg.gif"><table width="97%"  border="0" align="center" cellpadding="0" cellspacing="0">
               <tr>
                 <td width="8%" height="84" rowspan="2"><div align="center"><img src="img/xiao/searchbox_img.gif" width="52" height="70"></div></td>
                 <td width="92%" height="37"><table width="97%"  border="0" cellspacing="0" cellpadding="0">
                     <tr>
                       <td><span class="style1">商城高级搜索 通过输入关键字查询你想找的商品</span></td>
                     </tr>
                     <tr>
                       <td><img src="img/xiao/searchbox_dot.gif" height="4"></td>
                     </tr>
                 </table></td>
               </tr>
               <tr>
                 <td height="100">           <SCRIPT LANGUAGE="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkk()
{
   if(checkspace(form2.searchkey.value))  {
	document.form2.searchkey.focus();
	alert("请输入查讯关键字!");
	return false;
  }

}



//-->
    </script><table width="595" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
                   <tr>
                     <td height="40" colspan="2" align="center">&nbsp;</td>
                   </tr>
                   <form name="form2" method="post" action="research.asp">
                     <tr>
                       <td width="40%" align="right">关 健 字:</td>
                       <td width="60%"  style="padding-left:10px">
                         <input class=wenbenkuang name="searchkey" type="text" id="searchkey">
                       </td>
                     </tr>
                     <tr>
                       <td align="right">商品分类:</td>
                       <td style="padding-left:10px">
                         <%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select * from btype order by btype_idorder",conn,1,1
		  %>
                         <select class="wenbenkuang"  name="btype_id">
                           <option value="0" selected>查讯所有分类</option>
                           <%do while not rs.eof%>
                           <option value="<%=rs("btype_id")%>"><%=trim(rs("btype_name"))%></option>
                           <%rs.movenext
		  loop
		  rs.close
		  set rs=nothing%>
                         </select>
                       </td>
                     </tr>
                     <tr>
                       <td align="right">价格范围:</td>
                       <td style="padding-left:10px">
                         <select class="wenbenkuang"  name="jiage" id="jiage">
                           <option value="20">20元以下</option>
                           <option value="30">30元以下</option>
                           <option value="50" >50元以下</option>
                           <option value="100">100元以下</option>
                           <option value="500">500元以下</option>
                           <option value="1000">1000元以下</option>
                           <option value="10000">10000元以下</option>
                           <option value="100000" selected>100000元以下</option>
                           <option value="1000000">1000000元以下</option>
                         </select>
                       </td>
                     </tr>
                     <tr>
                       <td align="right">查找方式:</td>
                       <td style="padding-left:10px">
                         <script>
	var selects111=[];
<%dim i
	set rs=server.createobject("adodb.recordset")
	rs.open "select * from 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

	set rs=server.createobject("adodb.recordset")
	rs.open "select * from shihe order by shiheorder",conn,1,1
	'有大类
%>
	selects111['3']=new Array(
<%
	if rs.recordcount>0 then
	    for i=1 to rs.recordcount
		if i=rs.recordcount then 
%>
		new Option('<%=trim(rs("shihename"))%>','<%=trim(rs("shihename"))%>'));
<%		else
%>
		new Option('<%=trim(rs("shihename"))%>','<%=trim(rs("shihename"))%>'),
<%
		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">
                           <tr>
                             <td>
                               <select class="wenbenkuang"  name="action" id="action" onChange="showselect();">
                                 <option value="1" selected>商品名称</option>
                                 <option value="2">商品品牌</option>
                                 <option value="3">内容简介</option>
                               </select>
                             </td>
                             <td>
                               <table border="0" cellspacing="0" cellpadding="0" id=T_select style="DISPLAY: none">
                                 <tr>
                                   <td>
                                     <select class="wenbenkuang" name="selectname">
                                     </select>
                                   </td>
                                 </tr>
                             </table></td>
                           </tr>
                       </table></td>
                     </tr>
                     <tr>
                       <td height="40" colspan="2" align="center">
                         <input class="go-wenbenkuang"  type=submit name="submit" value=" 开始查询 ">
                         <input class="go-wenbenkuang"  type=reset name="Clear" value=" 重新填写 ">
                       </td>
                     </tr>
                   </form>
                 </table></td>
               </tr>
           </table></td>
         </tr>
         <tr>
           <td height="4"><img src="img/xiao/searchbox_bottom.gif" width="880" height="4"></td>
         </tr>
       </table>
       <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0>
      <TBODY>
        <TR>
          <TD class=b vAlign=top align=left width=998>&nbsp;            </TD>
        </TR>
      </TBODY>
    </TABLE></td>
    <td width="1" background="img/xiao/bgbg.gif"></td>
  </tr>
</table>
 
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -