?? gold_movie.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<%'---------程序編寫說明-------%>
<%'本程序由junping96編寫
'程序名稱:新世紀影院VOD播放系統(商業版)
'FileName: Gold_movie.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">
</head>
<body topmargin="1" leftmargin="0">
<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"-->
<table width="770" border="0" cellpadding="0" cellspacing="0" width="770">
<tr>
<td width="144" bgcolor="#FF9900" align="center" valign="top">
<center>
<!--#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>
<%
sql="select id,movietitle,hits from movies where horp=2 order by hits desc"
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>
<%
sql="select top 12 id,movietitle,movietype from movies where horp=2 order by id desc"
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")
sql="select * from movies where horp=2 order by id desc"
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 + -