📄 search.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--高级搜索</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<!--#include file="webtop.asp"-->
<table width="772" height="170" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1" background="image/bgbg.gif"></td>
<td width="178">
<!--#include file="searc.asp"-->
<!--#include file="Recopro.asp"--></td>
<td width="1" background="image/bgbg.gif"></td>
<td width="590" valign="top"><table width="590" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="33" background="image/bgbg1.gif">
<div align="center">商品高级搜索</div></td>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=590 align=center border=0>
<TBODY>
<TR>
<TD class=b vAlign=top align=left width=764>
<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="590" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="533" height="260" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<table width="60%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
<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 class=wenbenkuang name="searchkey" type="text" id="searchkey">
</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 wq_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 wq_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 name="action" id="action" onChange="showselect();">
<option value="1" selected>商品名称</option>
<option value="2">品牌</option>
<option value="3">内容简介</option>
<option value="4">商品编号</option>
</select> </td>
<td> <table border="0" cellspacing="0" cellpadding="0" id=T_select style="DISPLAY: none">
<tr>
<td> <select name="selectname">
</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 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>
</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 wq_sort order by anclassidorder",conn,1,1
%>
<select name="anclassid">
<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 class="go-wenbenkuang" type=submit name="submit" value=" 开始查询 ">
<input class="go-wenbenkuang" type=reset name="Clear" value=" 重新填写 ">
</div></td>
</tr>
</form>
</table></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></td>
<td width="1" background="image/bgbg.gif"></td>
</tr>
</table>
<!--#include file="webfoot.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -