<!--#include file="../include/common.asp"-->
<%
dim classid : classid = request.querystring("id")'anxinMall.leachstr(,1)
dim searchkey : searchkey = request.form("searchkey")
dim catname
if classid <>"" then
	catname = anxinMall.db("select catname from [anxinMall_cat] where id="&classid,2)(0)
else
	catname = "所有案例"
end if

dim page : page = anxinMall.leachstr(request.querystring("page"),1)
if page="" then page = 1

dim TPL
set TPL = New anxinMall_Cls_Template

call TPL.Load(cfg_templatedir&"/case..tpl")

TPL.Table = "anxinMall_weixinCase"

if classid<>"" then
	TPL.Where = " classid="&int(classid)
end if

TPL.Order = " addtime desc"
TPL.Page = Page
TPL.PageBreak = "/file/case.asp?id="&classid&"&page={page}&catname="&catname

TPL.Content = anxinMall.ReplaceStr(TPL.Content, "{anxinMall:field.classNameword}", anxinMall.iif(catname<>"",catname,"搜索结果"))

Call TPL.Parser2("caseid")
response.write Tpl.content
%>