<script language=javascript src=include/pic2.js></script>
<!--#include file="include/nowshop.asp" -->
<%
call aspsql()
Page=request("page")
Keywords=trim(request("keywords"))
if keywords="" and request.cookies("buyok")("search")="" then response.redirect "search_more.asp"
if Keywords<>"" then
Set rs=Server.CreateObject("ADODB.RecordSet") 
sql="select * from bkey where keywords='"&keywords&"'"
rs.open sql,conn,1,3
if not (rs.eof and rs.bof) then
rs("num")=rs("num")+1
rs("keydate")=now()
else
rs.addnew
rs("keywords")=keywords
rs("keydate")=now()
end if
rs.update
rs.close
set rs=nothing

title="搜索 <font color=red>"&Keywords&"</font> 商品"
sqlprod="select * from bproduc where online=true and (ProdName like '%"&keywords&"%' or ProdDisc like  '%"&keywords&"%') order by AddDate desc"
else					'高级搜索
title="搜索结果"
sqlprod=request.cookies("buyok")("search")
end if

%>
<html><head>
<title>搜索结果-<%=sitename%>-<%=siteurl%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="<%=sitedescription%>">
<meta name="keywords" content="<%=sitekeywords%>">
<LINK href="list/newhead.css" type=text/css rel=stylesheet>
<style type=text/css>
.pic1{MARGIN-TOP: -135px;MARGIN-left:0px}
.pic2{padding-top:6px}
</style>
</head>
<center>
<!--#include file="top.asp"-->
<!--#include file="tree.asp"-->
<!--#include file="down.asp"-->
</center>
</body>
</html>
<%
conn.close
set conn=nothing
%>
