📄 classtype.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<%'---------程序编写说明-------%>
<%'本程序由junping96编写
'程序名称:新世纪影院VOD播放系统(商业版)
'FileName: Classtype.asp
'EditDate:2003-12-07
'Editer:junping96
'Email:junping96@163.com
'QQ: 249112913 249114058
'请尊重本人劳动,禁止修改版权,有任何问题请和我联系。
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="”keywords”" content="”新世纪影院VOD影视播放程序出售”">
<meta name="”description”" content="”新世纪影院VOD影视(商业版)出售”">
<title>新世纪影院</title>
<link rel="stylesheet" type="text/css" href="css/css.css">
<script language=JavaScript>
<!--
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
</head>
<body topmargin="1" leftmargin="0" ondragstart="window.event.returnValue=false"
oncontextmenu="window.event.returnValue=false"
onselectstart="event.returnValue=false" >
<SCRIPT language=javascript>
kstatus();
function kstatus(){
self.status="如果你喜欢并认可本站试用版程序,想拥有更多的功能,请和我联系junping96@163.com,使用我的商业版!,谢谢你的支持!";
setTimeout("kstatus()",0);
}
</SCRIPT>
<center>
<!--#include file="top.asp"-->
<%
dim pagesize,curpage,numpages
pagesize=6 '每页显示的数据条数.
if request.querystring("page")<>"" then
curpage=cint(request.querystring("page"))
else
curpage=1
end if
%>
<!--#include file="showadv.asp"-->
<%
classtype=trim(request.querystring("class"))
%><table width="770" border="0" cellpadding="0" cellspacing="0" width="770">
<tr>
<td width="144" bgcolor="#FF9900" align="center" valign="top">
<!--#include file="userlogin.asp"-->
<!--#include file="serveric.asp"-->
<table border="0" cellpadding="0" cellspacing="1" width="142" >
<tr>
<td width="142" height="21" colspan="2" align="center">¤<font size="4"> </font>
影视观看排行 次数</td>
</tr>
<%
if classtype="" then
sql="select id,movietitle,hits from movies order by hits desc"
else
sql="select id,movietitle,hits from movies where movietype='"&classtype&"'order by hits desc"
end if
rs.open sql,conn,1,1
if rs.eof or bof then
response.write""
else
i=0
do while not rs.eof or bof
i=i+1
%>
<tr>
<td width="116" height="22" bgcolor="#FFFFFF" valign="middle" align="left">◆<a href=list.asp?id=<%=rs("id")%>><%
movietitle=rs("movietitle")
if len(movietitle)>8 then
movietitle=left(movietitle,7)
end if
response.write movietitle
%></a></td>
<td width="26" height="22" bgcolor="#FFFFFF" valign="middle" align="center"><%=rs("hits")%> </td>
</tr>
<%
rs.movenext
if i>10 then exit do
loop
end if
rs.close
%>
</table>
<!--#include file="xshjsys.asp"-->
<table border="0" cellpadding="0" cellspacing="1" width="141" >
<tr>
<td width="141" height="21" align="center">¤<font size="4"> </font>
更新列表</td>
</tr>
<%
if classtype="" then
sql="select top 12 id,movietitle,movietype from movies order by id desc"
else
sql="select top 12 id,movietitle,movietype from movies where movietype='"&classtype&"'order by id desc"
end if
rs.open sql,conn,1,1
if rs.eof or bof then
response.write""
else
do while not rs.eof or bof
%>
<tr>
<td width="141" height="22" bgcolor="#FFFFFF" valign="middle" align="left"><a href=list.asp?id=<%=rs("id")%>><%
movietitle=rs("movietitle")
if len(movietitle)>7 then
movietitle=left(movietitle,7)
end if
response.write movietitle
%></a>
<a href=classtype.asp?class=<%=rs("movietype")%>><%
movietype=rs("movietype")
if len(movietype)>10 then
movietitle=left(movietype,8)&"..."
end if
response.write movietype
%></td>
</tr>
<%
rs.movenext
loop
end if
rs.close
%>
</table>
<!--#include file="xshjsoftdown.asp"-->
</center>
</td>
<td width="2" bgcolor="#F0f0f0" valign="top" align="left"></td>
<td valign="top" align="left" bgcolor="#F0f0f0">
<%
set rs=server.createobject("adodb.recordset")
if classtype="" then
sql="select * from movies order by id desc"
else
sql="select * from movies where movietype='"&classtype&"' order by id desc"
end if
rs.open sql,conn,1,1
if rs.eof or bof then
response.write""
else
rs.pagesize=pagesize
numpages=rs.pagecount
if curpage>numpages then
curpage=numpages
end if
rs.absolutepage=curpage
a=1
do while not rs.eof or bof
%>
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td width="100%" bgcolor="#FF9900" height="22">¤ 影片列表</td>
</tr>
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="100%" height="175">
<tr>
<td width="19%" height="165" rowspan="7" bgcolor="#FFFFFF" align="center" valign="middle">
<a href=list.asp?id=<%=rs("id")%>>
<%
pic=rs("pic")
if isnull(pic)=true then
%><img src="moviepic/nopic.gif" border=0 title=<%=rs("movietitle")%>>
<%
else
%>
<img src=<%=pic%> border=0 title=<%=rs("movietitle")%>></a>
<%
end if
%>
</td>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">影片类型:</td>
<td width="19%" height="22" bgcolor="#FFFFFF"><a href=classtype.asp?class=<%=rs("movietype")%>><%=rs("movietype")%></a></td>
<td width="52%" height="22" bgcolor="#FFFFFF"> 影片简介: 影片评论: <a href=moviepl.asp?id=<%=rs("id")%>>查看、发表</a></td>
</tr>
<tr>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">影片长度:</td>
<td width="19%" height="22" bgcolor="#FFFFFF"><%=rs("moviehowlong")%>分</td>
<td width="52%" height="154" rowspan="7" valign="top" align="left" bgcolor="#FFFFFF" style="line-height:150%">
<%
moviemsh=rs("moviemsh")
if len(moviemsh)>200 then
moviemsh=left(moviemsh,200)&"..."
end if
moviemsh=ubbcode(moviemsh)
response.write" "&moviemsh
%>
</td>
</tr>
<tr>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">影片格式:</td>
<td width="19%" height="22" bgcolor="#FFFFFF">
<%
movieclass=rs("movieclass")
response.write"<img src=image/"&movieclass&".gif border=0>"
%>
</td>
</tr>
<tr>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">影片产地:</td>
<td width="19%" height="22" bgcolor="#FFFFFF"><%=rs("moviewhere")%></td>
</tr>
<tr>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">观看次数:</td>
<td width="19%" height="22" bgcolor="#FFFFFF"><%=rs("hits")%></td>
</tr>
<tr>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">推荐程度:</td>
<td width="19%" height="22" bgcolor="#FFFFFF"><%
response.write" <img src=image/"&rs("tj")&"star.gif valign=bottom>"
%></td>
</tr>
<tr>
<td width="11%" valign="middle" align="center" height="22" bgcolor="#FFFFFF">主要演员:</td>
<td width="19%" height="22" bgcolor="#FFFFFF"><%=rs("movieperson")%></td>
</tr>
<tr>
<td width="19%" height="22" valign="middle" align="center" bgcolor="#FFFFFF"><%
movietitle=rs("movietitle")
if len(movietitle)>10 then
movietitle=left(movietitle,10)
end if
%>
<a href=list.asp?id=<%=rs("id")%>><%=movietitle%></a>
</td>
<td width="12%" height="22" valign="middle" align="center" bgcolor="#FFFFFF">加入日期:</td>
<td width="20%" height="22" bgcolor="#FFFFFF"><%=rs("dateandtime")%></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
<%
rs.movenext
a=a+1
if a>pagesize then exit do
loop
end if
%>
<%
response.write"目前共有("&rs.recordcount&")部影片, "
if numpages="" then
numpages=0
curpage=0
end if
response.write"共分为("&numpages&")页,当前为第"&curpage&"页 "
for m=1 to numpages
response.write"<a href=classtype.asp?class="&classtype&"&page="&m&">["&m&"]</a> "
next
response.write"<a href=classtype.asp?class="&classtype&"&page=1>首页</a> "
if curpage>1 then
response.write"<a href=""classtype.asp?class="&classtype&"&page="&(curpage-1)&""">上一页</a> "
end if
if curpage<numpages then
response.write"<a href=""classtype.asp?class="&classtype&"&page="&(curpage+1)&""">下一页</a> "
end if
response.write"<a href=classtype.asp?class="&classtype&"&page="&numpages&">尾页</a> "
rs.close
set rs=nothing
%>
</td>
<td width="2" bgcolor="#FF9900" valign="top" align="left" ></td>
</tr>
</table>
<!--#include file="bottom.asp"-->
</center>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -