📄 search.asp
字号:
<!--#include file="Comm/conn.asp" -->
<%
Dim pageurl
pageurl="search.asp"
Page=request("page")
SubLar=request("LarCode")
Keywords=Trim(request("keywords"))
sqlprod="select * from ProdMain where online=true "
if SubLar<>"" then sqlprod = sqlprod + "and LarCode='"&SubLar&"'"
'在型号和名称里面查找
if Keywords<>"" then sqlprod = sqlprod + "and ProdName like '%"&keywords&"%' or Model like '%"&keywords&"%'"
%>
<html><head>
<title>搜索结果-<%=keywords%>-<%=sitename%>-<%=siteurl%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="index,follow">
<meta name="Abstract" content="CycooShop">
<meta name="DC.Publisher" content="Cycoo Net Studio">
<link rel="stylesheet" href="shop.css" type="text/css">
</head>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background=images/fig_background.gif>
<div align="center">
<!--#include file="menu/topbar.asp"-->
<TABLE width=760 border=0 align=center cellpadding=0 cellspacing=0 bgcolor="#FFFFFF">
<TR>
<td height="315" bgcolor="FFFBF7" align="center" valign="top" width="185">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=8></td>
</tr>
</table>
<!--#include file="loginbox.asp"-->
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=8></td>
</tr>
</table>
<!--#include file="prodtree.asp"-->
</TD>
<td height="100" bgcolor="#CCCCCC" width="1"></td>
<td height="100" valign="top" align="center" bgcolor="#FfFfFf">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=8></td>
</tr>
</table><%'分大类显示产品
Set rsprod=Server.CreateObject("ADODB.RecordSet")
rsprod.open sqlprod,conn,1,1
n=0
if rsprod.bof and rsprod.eof then
response.write "<table><tr><td height=100 align=center>很抱歉!没有找到 <b>"&keywords&"</b> 商品<br><br><font color=red>更换您输入的关键字再试试!</font></td></tr></TABLE>"
else
'以下是调用公用的产品显示页面,
%>
<!--#include file="prodlist.asp"-->
<%end if%>
</TD>
</TR>
</TABLE>
<!--#include file="menu/bottom.asp"-->
</div>
</body>
</html>
<%
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -