?? 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 + -