📄 filmlist.asp
字号:
<!--#include file="HMconnection.asp"-->
<!--#include file="webconfig.asp"-->
<%dim filmgrade
filmgrade=trim(request("grade"))
%>
<head>
<title><%=webname%>--所有影片列表--列表</title>
<link rel="stylesheet" href="style/style.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#B2DBFD" oncontextmenu=self.event.returnValue=false onselectstart="return false">
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">
<tr>
<td width="100%">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="98%">
<TBODY>
<TR><TD height="24" bgcolor="#FFFFFF">
<div align="center">
<!--#include file="webtop.asp"-->
</div>
</TD></TR>
</TBODY>
</TABLE>
<div align=center>
<table cellspacing=0 cellpadding=0 width="98%" border=0 bgcolor="#FFFFFF">
<tbody>
<tr>
<TD WIDTH="1" vAlign=TOP bgColor=#0000FF></TD>
<td valign=top width="777" align="center">
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tbody>
<tr valign=top>
<td colspan=2 height=40>
<div align=center><br>
<table cellspacing=0 cellpadding=0 width="98%" border=0>
<tbody>
<tr valign=top>
<td colspan=2 height=40> <div align=center> <br style="line-height:3px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" background="images/filmlist.gif" align="right" valign="middle"><a href="allfilm.asp" target="_self">简介</a> <a href="filmlist.asp">列表</a>
<a href='filmlist.asp'>所有影片</a> <a href='filmlist.asp?grade=0'>免费影片</a>
<a href='filmlist.asp?grade=1'>会员影片</a> <a href='filmlist.asp?grade=2'>VIP影片</a>
</td>
</tr>
<tr>
<td>
<%dim nfSQL,imagefile,nfRS,aftSQL,aftRS,lbcount
aftSQL="select typeid,type from type"
Set aftRS= Server.CreateObject("ADODB.Recordset")
aftRS.open aftSQL,conn,1,1
do while not aftRS.eof
if filmgrade="" then
nfSQL="select title,id from film where typeid="&aftRS("typeid")&" order by dateandtime desc"
else
nfSQL="select title,id from film where grade="&filmgrade&" and typeid="&aftRS("typeid")&" order by dateandtime desc"
end if
Set nfRS= Server.CreateObject("ADODB.Recordset")
nfRS.open nfSQL,conn,1,1
lbcount=nfRS.recordcount
%>
<table cellspacing=0 cellpadding=0 width="100%" border=0 bgcolor="#EFEFEF">
<tr>
<td width="50%" style="line-height:30px;" align="left" valign="middle" bgcolor="#DDDDDD"> <a href="film.asp?typeid=<%=aftRS("typeid")%>"><font size="3"><b><%=aftRS("type")%></b></font></a></td>
<td align="right" bgcolor="#DDDDDD"><font color="#00CC66">本类影片共有<%=lbcount%>部</font></td>
</tr>
<tr>
<td align="left" colspan="2" valign="middle"> <%dim huiche
huiche=0
do while not nfRS.eof
huiche=huiche+1
if len(nfRS("title"))<10 then
response.Write "<a href='showfilm.asp?id="&nfRS("id")&"&typeid="&aftRS("typeid")&"' title='"&nfRS("title")&"'>"&nfRS("title")&"</a> | "
else
response.Write "<a href='showfilm.asp?id="&nfRS("id")&"&typeid="&aftRS("typeid")&"' title='"&nfRS("title")&"'>"&left(nfRS("title"),9)&"…</a> | "
end if
if (huiche mod 7)=0 then response.Write("<br> ")
nfRS.movenext
loop%>
</td>
</tr>
<tr>
<td colspan="2" background=images/bgline.gif height=2></td>
</tr>
</table>
<%
nfRS.close
set nfRS=nothing
aftRS.movenext
loop
aftRS.close
set aftRS=nothing
%></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td colspan=2 height=3></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
<tr>
<td colspan=2 height=2></td>
</tr>
</tbody>
</table></td>
<TD WIDTH="1" vAlign=TOP bgColor=#0000FF></TD>
</tr>
</tbody>
</table>
<!--#include file="webbottom.asp"--> </div></td></tr></table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -