<!--#include file="mdb.asp"-->
<!--#Include File="Check_hx.asp"-->
<%
dim RS,sql,strSQL,rs1
dim url,id,ddd,dddd,ftype,urlno
id=Request.QueryString("id")
filmid=request("filmid")
ftitle=request("title")
if Trim(id) <> "" and IsNumeric(id) then
Set RS = Server.CreateObject("ADODB.RecordSet")
sql = "select * from vidurl where id = " & id
RS.Open sql, Conn, 3, 3
url=rs("url")
ddd=rs("filmid")
urlid=rs("id")
urlno=rs("no")
RS.Close
Set RS = nothing
end if
Set rs1 = Server.CreateObject("ADODB.Recordset")
strSQL ="SELECT * FROM vid where vid_id=" & ddd
rs1.open strSQL,Conn,3,3
rs1("hits")=rs1("hits")+1
dddd=rs1("title")
ftype=rs1("runsystem")
rs1.update
sql="UPDATE [user] SET points = points - "&rs1("points")&" where userid="&request.Cookies("HX_USER")("uid")
conn.execute (sql)
rs1.Close
Set rs1 = nothing
Conn.Close
Set Conn = nothing
%>
<%if len(ftype)=2 then%>
<HTML><HEAD><TITLE>网兜影院播放器</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</head>
<script language="javascript">
function initPlayer()
{
document.player.SetWantMouseEvents(true)
}
function noRB()
{
setTimeout("alert('右键禁止')",400)
}
</script>
<script language="vbscript">
sub player_OnRButtonDown(ByVal nFlags, ByVal nX, ByVal nY)
 if player.getfullscreen() then
  player.SetOriginalSize()
  noRB()
 else
  msgbox("右键禁止")
 end if
End Sub
</script>
<script language="JAVASCRIPT">
<!-- Begin
var ap_name = navigator.appName;
var ap_vinfo = navigator.appVersion;
var ap_ver = parseFloat(ap_vinfo.substring(0,ap_vinfo.indexOf('(')));

var time_start = new Date();
var clock_start = time_start.getTime();
var dl_ok=false;

function init ()
{
if(ap_name=="Netscape" && ap_ver>=3.0)
dl_ok=true;
return true;
}

function get_time_spent ()
{
var time_now = new Date();
return((time_now.getTime() - clock_start)/1000);
}

function show_secs () 
{
var i_total_secs = Math.round(get_time_spent());
var i_secs_spent = i_total_secs % 60;
var i_mins_spent = Math.round((i_total_secs-30)/60);
var s_secs_spent = "" + ((i_secs_spent>9) ? i_secs_spent : "0" + i_secs_spent);
var s_mins_spent = "" + ((i_mins_spent>9) ? i_mins_spent : "0" + i_mins_spent);
document.fm0.time_spent.value = s_mins_spent + ":" + s_secs_spent;
window.setTimeout('show_secs()',1000);
}
init();
window.setTimeout('show_secs()',1);
//  End -->
</script>  
<body marginwidth="0" leftmargin="0" topmargin="0" bgcolor="#000000" onLoad="initPlayer()">   
<div align="center">
<table border="0" cellspacing="0" style="border-collapse: collapse" width="480" id="AutoNumber1" bgcolor="#F0F0F0" cellpadding="0" align="center" height="10"><tr>
<td width="283" height="1" bgcolor="#E0E0E0"><%=dddd%>(第<%=urlno%>集)</td>
<form name="fm0" onSubmit="0"><td width="42" height="1" bgcolor="#E0E0E0">
<input type="text" name="time_spent" size="5" onFocus="this.blur()" style="border-style: groove; border-width: 1; background-color: #EEEEEE"></td></form>
<td width="52" height="1" bgcolor="#E0E0E0">
<input type="button" onClick="if (document.player.GetPlayState()==3) document.player.SetFullScreen()" name value="全屏播放" style="border-style: ridge; border-width: 1">
</td></tr></table><p align="center">
<object width="500" height="330" name="RP1" id="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
        <param name="AUTOSTART" value="-1">
        <param name="SHUFFLE" value="0">
        <param name="PREFETCH" value="0">
        <param name="NOLABELS" value="0">
        <param name="CONTROLS" value="Imagewindow">
        <param name="CONSOLE" value="clip1">
        <param name="LOOP" value="0">
        <param name="NUMLOOP" value="0">
        <param name="CENTER" value="1">
        <param name="MAINTAINASPECT" value="1">
        <param name="BACKGROUNDCOLOR" value="#000000">
        </object><br>
        <object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=30 id="RP2"  name="RP2" width=100%>
                <param name="_ExtentX" value="4657">
                <param name="_ExtentY" value="794">
                <param name="AUTOSTART" value="-1">
                <param name="SRC" value="vidurlrm.asp?urlid=<%=urlid%>">
                <param name="SHUFFLE" value="0">
                <param name="PREFETCH" value="0">
                <param name="NOLABELS" value="-1">
                <param name="CONTROLS" value="ControlPanel">
                <param name="CONSOLE" value="clip1">
                <param name="LOOP" value="0">
                <param name="NUMLOOP" value="0">
                <param name="CENTER" value="0">
                <param name="MAINTAINASPECT" value="0">
                <param name="BACKGROUNDCOLOR" value="#000000">
                </object>
              <object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=30 id="RP3"  name="RP3" width=100%>
              <param name="_ExtentX" value="4657">
              <param name="_ExtentY" value="794">
              <param name="AUTOSTART" value="-1">
              <param name="SHUFFLE" value="0">
              <param name="PREFETCH" value="0">
              <param name="NOLABELS" value="-1">
              <param name="CONTROLS" value="StatusBar">
              <param name="CONSOLE" value="clip1">
              <param name="LOOP" value="0">
              <param name="NUMLOOP" value="0">
              <param name="CENTER" value="0">
              <param name="MAINTAINASPECT" value="0">
              <param name="BACKGROUNDCOLOR" value="#000000">
              </object>
<script language="javascript"> 
player.SetEnableContextMenu(false);
player.SetWantErrors(true);
      </script>
<%else%>
<SCRIPT language="javascript">
<!--
//A
    function rf()
      {return false; }
    document.oncontextmenu = rf
    function keydown()
      {if(event.ctrlKey ==true || event.keyCode ==93 ){return false;} }
      document.onkeydown =keydown

//-->
</SCRIPT>
<%
dim Ml
Ml=request("ID")
if Ml = "" then
Response.Write("请最少选择一个影片!")
Response.End
End if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网兜P2P播放影院</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">
<table width="480" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr> 
    <td colSpan=2 align="center" width="100%" height="407"><EMBED NAME=RealObj SRC="test.rpm" height=86% width=100% CONSOLE=one	CONTROLS=ImageWindow MAINTAINASPECT=true><br>
<object id=WMPObj classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height=100% width=100% viewastext=""
	CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
	STANDBY="Loading Microsoft Windows Media Player components..." 
	TYPE="application/x-oleobject" style="display:none">
<param name="URL" value="">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<param name="uiMode" value="None">
</object>
<Object id="BoBo" width=100% height=22  style="margin-bottom:-38;" classid='clsid:EC0978ED-24E3-403C-AB7A-060E388553E6' codebase='http://www.17bobo.com/Software/BoBo_ActiveX_V3.ocx'>
<PARAM NAME="MaxLinkCount"      VALUE=100>
<PARAM NAME="MaxCacheTimeS"     VALUE=120>
<PARAM NAME="MinCacheTimeS"     VALUE=60>
<PARAM NAME="MaxCacheSizeMB"    VALUE=150>
<PARAM NAME="MaxDownloadKbps"   VALUE=0>
<PARAM NAME="MaxUploadKbps"     VALUE=0>
<PARAM NAME="RealMediaType"     VALUE=".mp4,.mp3">
<PARAM NAME="AllowDrag"      	  VALUE=1>
<PARAM NAME="BoBoDrag"      	  VALUE=1>
<PARAM NAME="ShowSend"      	  VALUE=1>
<PARAM NAME="BCServerURL"       VALUE="http://www.17bobo.com">
<PARAM NAME="TextAd"       	    VALUE="">
<PARAM NAME="ActName" 		      VALUE="<%=url%>">
</Object></td></tr>
<tr valign="middle" bgcolor="#333333">
    <td valign="top" ><input style="BORDER-RIGHT: #a2a2a2 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #ffffff 1px solid; WIDTH: 35px; COLOR: #333333; BORDER-BOTTOM: #a2a2a2 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #3db836" onClick="document.RealObj.DoPlay()" type="button" value="播放" name="Submit" /><input style="BORDER-RIGHT: #a2a2a2 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #ffffff 1px solid; WIDTH: 35px; COLOR: #333333; BORDER-BOTTOM: #a2a2a2 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #ffb64a" onClick="document.RealObj.DoPause()" type="button" value="暂停" name="Submit22" /><input style="BORDER-RIGHT: #a2a2a2 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #ffffff 1px solid; WIDTH: 70px; COLOR: #333333; BORDER-BOTTOM: #a2a2a2 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #dddddd" onClick="document.RealObj.SetFullScreen()" type="button" value="全屏播放" name="Submit2" /></td><td align="right"><font color="#FFFF00">如果无法播放，请手动安装&nbsp;<a href="http://17vd.com/dv/BoBo_ActiveX_V3.exe"><span class="style2"><font color="red"><b>P2P控件</b></font></a>&nbsp;<font color="#FFFF00">插件</font>&nbsp;&nbsp;</td>
</tr>
   </table>
<%end if
%>
</body>
</html>