%@ CODEPAGE="65001" %>
<%session.codepage="65001"%>
<%response.Charset="uft-8"%>
<%DBPath="../admin/data/"%>
<%
dim sid,rs,sql,title,IsPromotions,keyword
sid=request.QueryString("sid")
IsPromotions=request.QueryString("IsPromotions")
keyword=request.QueryString("keyword")
sql="select * from productlist where 1=1"
title="产品中心"
if sid<>"" then
sid=cint(sid)
title=ProductSortNameCache("",sid)
sql=sql&" and SortID="&sid
end if
if IsPromotions<>"" then
IsPromotions=cint(IsPromotions)
title="特价商品"
sql=sql&" and IsPromotions="&IsPromotions
end if
if keyword<>"" then
sql=sql&"and ProductName like '%"&keyword&"%'"
title="产品搜索"
end if
sql=sql&" order by ProductAddTime desc,ProductID desc"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
rs.PageSize=12
%>
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>