<!--#include file="inc/system.asp" -->
<!--#include file="inc/Yidacms_general.asp" -->
<!--#include file="inc/Yidacms_newsview.asp" -->
<!--#include file="inc/Yidacms_keyword.asp" -->
<!--#include file="inc/Yidacms_viewpage.asp" -->
<!--#include file="inc/Yidacms_template.asp" -->
<%

temp_id = cint(request("id"))
set rs=server.createobject("adodb.recordset")
sql="select shuaiweb_newssort from shuaiweb_news where id = " & temp_id
rs.open sql,dbok,1,1
temp_id2 = rs(0)
rs.close

set rs = server.createobject("adodb.recordset")
sql="select viewurl from shuaiweb_navigation where id = " & temp_id2
rs.open sql,dbok,1,1
if temp_id = 0 then
	yidacms_tempurl = "zh_newsview.html"
		else
	yidacms_tempurl = rs(0)
end if
rs.close

function tempclass(mb)
yidacms=sys(mb):yidacms=memu(mb):yidacms=Yidacms_Memu(mb)
yidacms=Flash(mb):yidacms=Web_Language(mb):yidacms=qqkefu(mb)
yidacms=Yidong(mb):yidacms=Connect(mb):yidacms=Liuyan(mb):yidacms=Dingdan(mb):yidacms=Yidacms_tag(mb)
yidacms=Yidacms_ad_floating(mb)
yidacms=Downto(mb):yidacms=About(mb):yidacms=Aboutclass(mb):yidacms=Aboutclassto(mb)
yidacms=News(mb):yidacms=Products(mb):yidacms=Photo(mb):yidacms=video(mb)
yidacms=Newsview(mb):yidacms=News_viewname(mb):yidacms=Relevant(mb)
set rs = server.createobject("adodb.recordset")
sql="select count(id) from shuaiweb_news where yida_language = 'ch'"
rs.open sql,dbok,1,1
	if rs(0)>1 then
		yidacms=yida_cms_news_page(mb)
			else
		yidacms=yida_cms_nopage(mb)
	end if
rs.close
tempclass=yidacms
end function

function newsview_temp()
newsview_temp=opentxt(server.mappath(webpath & "template/" & shuaiweb_tempurl & "/" & yidacms_tempurl & "")) & o
end function

if yidacms_asp_html = "asp" then
Response.Write replace(replace(newsview_temp(),"{yidacms:head}",content(0)),"{yidacms:foot}",content(1))
else
Response.Write replace(replace(newsview_temp(),"{yidacms:head}",head()),"{yidacms:foot}",foot())
end if
set clsCache=nothing
%>