<!--#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_newscat] 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&"/news_list..tpl")

TPL.Table = "anxinMall_news"

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

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

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

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