<!--#include file="config.asp"-->
<%
	if not(checkloginstaus) then
		eycms.echo "0登录失败"
		eycms.die
	end if
	if webmode<3 then
		eycms.echo "0系统未开启静态模式"
		eycms.die
	end if
	thisurl=""
	dim temproot:temproot=""
	dim classid:classid=eycms.getint(eycms.fget("classid",0),0)
	dim data:data=eycms.getclassdb(classid)
	if not isarray(data) then
		eycms.echo "0&#26639;&#30446;&#19981;&#23384;&#22312;&#25110;&#24050;&#34987;&#21024;&#38500;"
	else	
		dim sonid,parentid,rootid,followid,catedir,modeid,cateurl
		dim classname,catepic,rootpic,seotitle,seokey,seodesc
		dim htmlrule,parentname
		classname=data(1)
		catedir=data(2)&"/"
		followid=data(3)
		sonid=data(5)
		parentid=data(6)
			rootid=split(parentid,"]")(0)
			rootid=replace(rootid,"[","")
			rootid=CInt(rootid)
		cateurl=data(9)
		modeid=data(10)
		catepic=data(15)
		rootpic=eycms.get_catepic(rootid)
		If catepic="" Then catepic=rootpic
		seotitle=data(16)
		seokey=data(17)
		seodesc=data(18)
		pagenum=data(19)
		select case data(10)
			case "-1":temproot=eycms.iif(len(data(21))=0,(eycms.sysdb("theme_page")),(data(21)))
			case "-2":eycms.go data(9)
			case else:temproot=eycms.iif(len(data(20))=0,(data(23)),(data(20)))
		end select

		dim datenum,fdata
		datenum=eycms.db.dbcount("ey_content","classid in("&sonid&") and islock=1")

		if eycms.strlen(eycms.getsys("eycms.plug.seoset"))>0 and classid<>rootid then
			fdata=eycms.db.dbload(1,"seoTit,seoWord,seoDesc","ey_plug_seoset","lx=1 and zt=1 and classid="&rootid,"")
			if ubound(fdata)>=0 Then
				if eycms.strlen(seotitle)=0 then seotitle=replace(fdata(0,0),"{title}",classname)
				if eycms.strlen(seokey)=0 then seokey=eycms.setseotitle(fdata(1,0),classname)
				if eycms.strlen(seodesc)=0 then seodesc=replace(fdata(2,0),"{title}",classname)
			End if
		end if
		if eycms.strlen(seokey)=0 then seokey=classname
		if eycms.strlen(seodesc)=0 then seodesc=eycms.getsys("seodesc")
		if eycms.strlen(seodesc)=0 then seodesc=eycms.getsys("webname")&"专业提供"&classname

		dim foldername:foldername=data(2)&"/"
		dim filename:filename="index"
		htmlrule=webroot&htmldir&catedir&"index_[page].html"
		if followid=0 then
			parentname=classname
		else
			parentname=eycms.getcatename(followid)
		end if
		if page>1 then filename=filename&"_"&page
		htmlshow temproot,webroot&htmldir&foldername,filename,classid
	end if
	eycms.db.dbclose
%>
