📄 search_select1.asp
字号:
<!-- #include file="conn.asp" -->
<!--#include file="webconfig.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%></title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<!--#include file="include/top.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="1" height="100" bgcolor="#cccccc"></td>
<td width="1" bgcolor="cccccc"></td>
<td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" align="center">
<%
response.write "<font color=ff0000 size=3><b>"
if search_flag="1" then
response.write "Sorry!你要查找的商品没有找到,请换个关键字继续查找......"
else
response.write "请在下面输入关键字进行查找......"
end if
response.write "</b></font>"
%>
</td>
</tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4" height="23"><img src="images/label_bg21.gif" width="7" height="24"></td>
<td width="100" height="23" align="center" bgcolor="#D9ECF7"><font color="#FFFFFF" size="3"><strong><a href="search_select.asp" class="Search_label_2">简单搜索</a></strong></font></td>
<td width="4"><img src="images/label_bg22.gif" width="7" height="24"></td>
<td width="2"></td>
<td width="3"><img src="images/label_bg11.gif" width="7" height="24"></td>
<td width="100" align="center" bgcolor="006699"><font size="3"><strong><a href="search_select1.asp" class="Search_label_1">高级搜索</a></strong></font></td>
<td width="3"><img src="images/label_bg12.gif" width="7" height="24"></td>
<td width="2"></td>
<td width="3"><img src="images/label_bg21.gif" width="7" height="24"></td>
<td width="120" align="center" bgcolor="#D9ECF7"><font size="3"><strong><a href="search_select2.asp" class="Search_label_2">按商品号搜索</a></strong></font></td>
<td width="3"><img src="images/label_bg22.gif" width="7" height="24"></td>
<td height="23"> </td>
</tr>
</table>
<table width="80%" border="0" cellspacing="1" cellpadding="0" bgcolor="006699">
<tr>
<td bgcolor="#FFFFFF" valign="top" align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td height="100" align="center"> <table width="75%" border="0" cellspacing="0" cellpadding="3">
<form action="search_s.asp" method="post" name="searchname2" onSubmit="return chechsearch2()">
<tr>
<td> </td>
</tr>
<tr>
<td><img src="images/img_03.gif" width="12" height="12" align="absmiddle">
<font size="2"><strong>请填入关键词搜索商品</strong></font>(必填)<font color="#ff0099" class="fontshadow">
<script language=javascript1.2>
<!--
function chechsearch2()
{
if(searchname2.searchkey2.value==""){searchname2.searchkey2.focus();
alert("请输入你要查找的关键字!");
return false;
}
}
//-->
</script>
</font></td>
</tr>
<tr>
<td>
<input maxlength=16 size=40 name=searchkey2 class="input_cccccc">
<input type="submit" name="Submit11" value=" 开始搜索 " class=sinput>
</td>
</tr>
<tr>
<td><img src="images/img_03.gif" width="12" height="12" align="absmiddle"><strong><font size="2">
请选择搜索范围</font></strong></td>
</tr>
<tr>
<td> 按名称或描述:
<select name=searchtype2>
<option value="1">◆商品名称◆</option>
<option value="2">商品介绍</option>
</select> </td>
</tr>
<tr>
<td> 按商品的类别:
<select name=productsort2>
<%
sql="select * from Net008_productsort"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,2
for i=1 to rs.recordcount
if cstr(rs("sortid"))="" then
response.write "<option value="&trim(rs("sortid"))&">"
response.write "├"&trim(rs("SortName"))
else
response.write "<option value="&trim(rs("sortid"))&">"
response.write trim(rs("SortName"))
end if
response.write "</option>"
rs.movenext
next
rs.close
set rs=nothing
%>
</select> </td>
</tr>
<tr>
<td> 按商品的品牌:
<select name=productbrand2>
<%
sql="select * from Net008_productbrand"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,2
for i=1 to rs.recordcount
response.write "<option value="&trim(rs("BrandId"))&">"
response.write trim(rs("CnName"))
response.write "</option>"
rs.movenext
next
rs.close
set rs=nothing
%>
</select> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font color="#FF0000">提示:</font>如果你要查找“<font color="#990000">诺基亚7610行货</font>”,只要输入“<font color="#990000">7610</font>”或“<font color="#990000">诺基亚</font>”即可找到</td>
</tr>
<tr>
<td bgcolor="cccccc" height="1"></td>
</tr>
</form>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td> </td>
</tr>
</table></td>
<td width="1" bgcolor="cccccc"></td>
</tr>
</table>
<!-- #include file="include/bottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -