<!--#include file="System/Conn.asp"--><%

'If Not ChkClient() Then Conn.Close:Set Conn=Nothing:Response.Write "<script>location.href='/login.asp?url='+top.location.href;</script>":Response.End

id=Request.QueryString("id")
If id="" Or Not IsNumeric(id) Then Conn.Close:Set Conn=Nothing:Response.Write "没有找到对应的视频":Response.End
Set Rs=Server.CreateObject("ADODB.RecordSet")
Rs.Open "Select cpmc,sptype,sp,spw,sph From cp Where id="&id,Conn,1,1
If Rs.Bof Or Rs.Eof Then
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Response.Write "没有找到对应的视频"
Response.End
End If
cpmc=Rs("cpmc")
sp=Rs("sp")
spw=Rs("spw")
sph=Rs("sph")
sptype=Rs("sptype")
If sp="" Then Rs.Close:Set Rs=Nothing:Conn.Close:Set Conn=Nothing:Response.Write "没有找到对应的视频":Response.End
Rs.Close
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=cpmc%>视频_<%=webname%></title>
<link rel="stylesheet" type="text/css" href="s/c.css" />
<script type="text/javascript" src="j/swfobject.js"></script>
</head>
<body><%
If sptype=0 Then
%>
<div id="CuPlayer" style="width:<%=spw%>px;height:<%=sph%>px;overflow:hidden"><strong>如果长时间不能播放，可能是因为您的浏览器版本太久，请升级您的flash player。</strong></div>
<script type="text/javascript">
var so = new SWFObject("j/player.swf","CuPlayer","<%=spw%>","<%=sph%>","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
so.addVariable("CuPlayerFile","<%=sp%>");
so.addVariable("CuPlayerShowImage","true");
so.addVariable("CuPlayerWidth","<%=spw%>");
so.addVariable("CuPlayerHeight","<%=sph%>");
so.addVariable("CuPlayerAutoPlay","true");
so.addVariable("CuPlayerAutoRepeat","true");
so.addVariable("CuPlayerShowControl","true");
so.addVariable("CuPlayerAutoHideControl","false");
so.addVariable("CuPlayerAutoHideTime","6");
so.addVariable("CuPlayerVolume","80");
so.write(CuPlayer);	
</script><%Else%>
<div style="width:<%=spw%>px;height:<%=sph%>px;overflow:hidden">
<embed src="<%=sp%>" quality="high" width="<%=spw%>" height="<%=sph%>" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
</div>
<%End If%>
</body>
</html><%Set Rs=Nothing:Conn.Close:Set Rs=Nothing%>
