<!--#include file="conn.asp" -->
<!--#include file="function/function.asp" -->
<!--#include file="function/Labeling.asp" -->
<!--#include file="function/sysfunction.asp" -->
<!--#include file="function/Page.asp" -->
<%
'===================================================================================================================
'软件名称：云网影视管理系统
'Copyright (C) 2002-2007 ywnt.net  All rights reserved.
'产品咨询QQ：489234,2813712
'程序版权：云网互动科技有限公司
'程序开发：云网互动科技有限公司
'官方网站：http://www.ywnt.net 
'郑重声明:
'    1、免费版本请在程序首页保留版权信息，并做上本站LOGO友情连接,商业版本无此要求;
'    2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
'    3、云网互动科技有限公司保留此软件的法律追究权利
'===================================================================================================================
set rs=Server.CreateObject(YWNT_TMS_RS)
  sql="select top 1 ID,TypeID,MovieName,MovieActor,MovieRegion,MoviePic,MovieCoin,MovieClick,MovieLook,MovieDown,MovieSerialization,MovieContent,MovieDate,MovieCompetence,MovieGroup,SeverID,InflowType from YWNT_TMS_Movie where id="&NoSqlHack(Request.QueryString("ID"))&"" 
  rs.open sql,conn,1,1
  If Not rs.Eof Then
	movc=rs.GetRows()
  End If
  rs.Close
  Set rs=Nothing
Set Rs=Server.CreateObject(YWNT_TMS_RS)
sql="select ID,MovieTemplate from YWNT_TMS_MovieClass where ID="&movc(1,0)&""
Rs.open sql,Conn,1,1
Templateid=RS("MovieTemplate")
Typeid=RS("ID")
RS.close
set RS=nothing
Set Rs=Server.CreateObject(YWNT_TMS_RS)
sql="select CssID,Template,TemplateType from YWNT_TMS_Template where ID="&Templateid&""
Rs.open sql,Conn,1,1
if not eof then
CssID=RS("CssID")
Template=RS("Template")
TemplateType=RS("TemplateType")
else
response.write"<script>alert('请先添加内容模版！');</script>"
response.End()
end if
RS.close
set RS=nothing
Set Rs=Server.CreateObject(YWNT_TMS_RS)
sql="select CssContent from YWNT_TMS_Css where ID="&CssID
Rs.open sql,Conn,1,1
CssContent=RS("CssContent")
RS.close   
set RS=nothing
Css="<style type=""text/css"">"
Css=Css&"<!--" &vbcrlf
Css=Css&CssContent &vbcrlf
Css=Css&"-->" &vbcrlf
Css=Css&"</style>" &vbcrlf
script="<script type=""text/javascript"">" &vbcrlf
script=script&"function OpenWindow(Url)" &vbcrlf
script=script&"{" &vbcrlf
script=script&"window.open(Url,'WindowPlay','fullscreen=0,toolbar=0,location=0,menubar=0,directories=0,status=0,menubar=0,scrollbars=0,resizable="&GetSysPlay("MovieWindow")&",width="&GetSysPlay("MovieWidth")&",height="&GetSysPlay("MovieHeight")&",top=200');" &vbcrlf
script=script&"}" &vbcrlf
script=script&"</script>" &vbcrlf
Template=Tophtml(GetConfig("WebMeta"),GetConfig("WebCentent"),GetConfig("WebName")&"--"&movc(2,0),Css&script,Template)
Template=MovieLeb(movc,Template)
Response.Write ReplaceLableFlag(Template)
call connclose()%>