📄 showvid.asp
字号:
<!--#Include File="Check_hx.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="mdb.asp"-->
<!--#include file="inc/inc.asp"-->
<!--#include file="inc/format.asp"-->
<%
dim founderr
founderr=false
if request.querystring("vid_id")="" then
founderr=true
Response.Write "<script language=javascript>alert('请指定操作的对象!');javascript:history.back();</script>"
else
if not isInteger(request.querystring("vid_id")) then
founderr=true
Response.Write "<script language=javascript>alert('参数非法!');javascript:history.back();</script>"
end if
end if
if request.querystring("vid_id")="" then response.redirect "show_error.asp?eid=栏目ID或记录ID不能为空!"
sql="select * from vid where vid_id="&request.querystring("vid_id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
start="影视中心 - "&rs("title")&""
if rs("Grade")="0" then
hxGrade="游客身份"
elseif rs("Grade")="1" then
hxGrade="会员身份"
elseif rs("Grade")="2" then
hxGrade="VIP身份"
end if
call head()
call menu()
set rscount=conn.execute("select * from vid")
sql="UPDATE vid SET hits = hits + 1 WHERE vid_id="&request.querystring("vid_id")
conn.execute (sql)
rscount.close
set rscount=nothing
Response.Write "<table width=760 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF class=""table-hx66s""><TBODY>" & vbCrLf
Response.Write "<TR><TD height=""25""> 您的位置: <a href='index.asp'>"&webname&"</a> >> <a href='vid.asp'>影视中心</a>"
sql="select vidcat_id,vidcat_name,sid from vidcat where vidcat_id="&rs("vidcat_id")
set rs1=conn.execute(sql)
sql="select vidcat_id,vidcat_name from vidcat where vidcat_id="&rs1("sid")
set rs2=conn.execute(sql)
Response.Write " >> <a href=""vid.asp?vidcat_id="&rs2("vidcat_id")&""">"&rs2("vidcat_name")&"</a>"
Response.Write " >> <a href=""vid.asp?vidcat_id="&rs1("vidcat_id")&""">"&rs1("vidcat_name")&"</a> >> 正文"
rs1.close
rs2.close
Response.Write "</TD></TR></TBODY></TABLE>" & vbCrLf
Response.Write "<table width=760 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF class=""table-hx66s"">" & vbCrLf
Response.Write "<TBODY><TR vAlign=top bgcolor=""#FCFCFC""><TD>" & vbCrLf
Response.Write "<DIV class=mframe>" & vbCrLf
Response.Write "<table width=""758"" border=""0"" align=""center"" cellspacing=""0"" cellpadding=""0"" class=""table-shangxia""><tr><td height=""23"" class=""a1""> 观看影片</td></tr></table>" & vbCrLf
Response.Write "<table width=""100%"" border=""1"" align=""center"" cellspacing=""0"" cellpadding=""3"" bgcolor=""#FFFFFF"" bordercolor=""#f0f0f0"" style=""border-collapse: collapse"">"
%>
<%if guestvid="yes" or request.Cookies("HX_USER")("User_Name")<>"" then%>
<tr>
<td width=100% colspan=3 align="center" HEIGHT=30><b><font color=ff6600><b><%=rs("title")%></b></font><b></td>
</tr>
<tr>
<td height="25" align="center" width="15%">加入时间</td>
<td width="55%"> <%=rs("dateandtime")%> </td>
<td rowspan="8" align="center" width="200">
<%if rs("images")<>"http://hx66.net" then%><a href="<%=rs("images")%>" title="<%=rs("images")%>" target=_blank><img src='<%=rs("images")%>' border='0' width=160 valign="center"></a><%else%><img src='img/nopic.gif' border='0' valign="center"><%end if%></td>
</tr>
<tr>
<td height="25" align="center">领衔主演</td>
<td> <%=rs("dog")%> </td>
</tr>
<tr>
<td height="25" align="center">文件格式</td>
<td> <%=rs("runsystem")%> </td>
</tr>
<tr>
<td height="25" align="center">浏览次数</td>
<td> <%=rs("hits")%> </td>
</tr>
<tr>
<td height="25" align="center">推荐程度</td>
<td> <%=rs("filmlevel")%> </td>
</tr>
<tr>
<td height="25" align="center">观看权限</td>
<td> <font color=red><%=hxGrade%></font> </td>
</tr>
<tr>
<td height="25" align="center">花费花香币</td>
<td> <font color=red><%=rs("points")%></font> </td>
</tr>
<tr>
<td height="30" align="center" width="15%">发布会员</td>
<td> <%=rs("tjuser")%></td>
</tr>
<tr>
<td width=100% colspan=3 style="display:block;padding:0px 10px;LINE-HEIGHT: 180%"> <b>剧情简介:</b><br> <%=rs("content")%></td>
</tr>
<tr>
<td height="25" align="center">在线观看</td>
<td colspan=3 bgcolor="#FFFFFF">
<%
set User_UserPoint=conn.execute("select points,usergrade from [user] where userid="&request.Cookies("HX_USER")("uid"))
userPoint=User_UserPoint(0)
userGrade=User_UserPoint(1)
User_UserPoint.close
set User_UserPoint=nothing
if request.Cookies("HX_USER")("Grade")="" then
Grade=0
else
Grade=userGrade+1
end if
if Grade>=RS("Grade") and userPoint>=rs("points") then%>
<script language="javascript">
function popwin(id,path)
{ window.open("player.asp?id="+id+"&see="+path,"","height=400,width=560,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<%
if rs("runsystem")<>rm then
dim filmurl,url,line
url ="SELECT * FROM vidurl WHERE filmid = "&rs("vid_id")&" ORDER BY id "
Set filmurl = Server.CreateObject("ADODB.Recordset")
filmurl.open url,Conn,3,1
if filmurl.eof then
response.write "没有影片提供观看"
elseif filmurl.recordcount=1 then
response.write " <a href='javascript:popwin("&filmurl("id")&",1)'><b>全集</b></a>"
elseif filmurl.recordcount=2 then
response.write " <a href='javascript:popwin("&filmurl("id")&",1)'><b>上集</b></a>"
filmurl.movenext
response.write " <a href='javascript:popwin("&filmurl("id")&",2)'><b>下集</b></a>"
elseif filmurl.recordcount=3 then
response.write " <a href='javascript:popwin("&filmurl("id")&",1)'><b>上集</b></a>"
filmurl.movenext
response.write " <a href='javascript:popwin("&filmurl("id")&",2)'><b>中集</b></a>"
filmurl.movenext
response.write " <a href='javascript:popwin("&filmurl("id")&",3)'><b>下集</b></a>"
else
do while not filmurl.eof
for line=1 to 10
if len(filmurl("no"))=1 then
response.write " <a href='javascript:popwin("&filmurl("id")&",0)'>[0"&filmurl("no") & "]</a>"
else
response.write " <a href='javascript:popwin("&filmurl("id")&",0)'>["&filmurl("no") & "]</a>"
end if
filmurl.movenext
if filmurl.eof then exit do
next
response.write "<br>"
loop
filmurl.close
set filmurl=nothing
end if
end if
elseif Grade<RS("Grade") then
Response.Write "<font color=red>对不起,你的权限不够,不能观看此影片!</font>" & vbCrLf
elseif userPoint<rs("points") then
Response.Write "<font color=red>你的点数不足(你当前点数为:" &userPoint& "),无法观看此影片。请与我们联系进行充值。</font>" & vbCrLf
end if%>
</td>
</tr></table>
<%Response.Write "<table width=""98%"" align=""center""><tr><td align=""left"">" & vbCrLf
set RelationArt = conn.execute("select top 1 vid_id,title from vid where vid_id<"&request.querystring("vid_id")&" order by dateandtime desc")
IF RelationArt.eof and relationArt.bof Then
Response.Write "<font color=red>·上个影片:</font>已经没有了<BR> "
else
Response.Write "<font color=red>·上个影片:</font><a href=""showvid.asp?vid_id=" & RelationArt(0) & """>" & relationArt(1) & "</a><BR>"
end if
Set RelationArt=Nothing
set RelationArt = conn.execute("select top 1 vid_id,title from vid where vid_id>"&request.querystring("vid_id")&" order by vid_id")
IF RelationArt.eof and relationArt.bof Then
Response.Write "<font color=red>·下个影片:</font>已经没有了"
else
Response.Write "<font color=red>·下个影片:</font><a href=""showvid.asp?vid_id=" & RelationArt(0) & """>" & relationArt(1) & "</a></td>"
end if
Set RelationArt=Nothing
Response.Write "</tr>" & vbCrLf
Response.Write "</table>" & vbCrLf
%>
<table width="758" border="0" align="center" cellspacing="0" cellpadding="0" class="table-shangxia"><tr><td height="23" class="a1"> 相关说明</td></tr></table>
<table align="center" cellspacing="0" cellpadding="0" style="word-break:break-all;table-layout:fixed;text-align:left">
<TR>
<TD style="display:block;padding:0px 10px;LINE-HEIGHT: 180%">
☉本站部分影片来自网络,版权归原影视公司所有!如有版权问题敬请留言指明。<br>
</TD>
</TR>
</table>
<%else
call guesterror()
response.end
end if%>
<%if point_vid="1" then%>
<table width="758" border="0" align="center" cellspacing="0" cellpadding="0" class="table-shangxia"><tr><td height="23" class="a1"> 相关评论<font color=#CC0000><%=rs("reviewcount")%></font>篇,当前显示最新的<font color=#CC0000>5</font>篇</td></tr></table>
<table width="98%" align="center" cellspacing="0" cellpadding="0" style="word-break:break-all;table-layout:fixed;text-align:left">
<%if rs("review")<>"" then
temp=split(Trim(rs("review")),"|")
for i = 1 to 5%>
<tr><td style="LINE-HEIGHT: 180%"><%=temp(i)%></td></tr>
<%
next
else
Response.Write "<tr><td style=""LINE-HEIGHT: 180%"">当前没有评论</td></tr>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<tr><td align="right"><a href="view.asp?action=vid&vid_id=<%=request.querystring("vid_id")%>">[查看更多评论] [发表我的评论] </a> </td></tr>
</table>
<%elseif point_vid="0" then%>
<table width="100%" cellpadding="5" cellspacing="0" border="0">
<tr><td align="center">【影视评论已关闭】</td></tr></table>
<%End If%>
</table>
<%
call footer()%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -