⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filmlist.asp

📁 顶级影视站ASP源代码系统。很全面很强大。数据库用access
💻 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>&nbsp;&nbsp;&nbsp;<a href="filmlist.asp">列表</a>
									  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									  <a href='filmlist.asp'>所有影片</a>&nbsp;&nbsp;<a href='filmlist.asp?grade=0'>免费影片</a>&nbsp;&nbsp; 
                                      <a href='filmlist.asp?grade=1'>会员影片</a>&nbsp;&nbsp;<a href='filmlist.asp?grade=2'>VIP影片</a>
									  &nbsp;&nbsp;&nbsp; 
                                      </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">&nbsp;&nbsp;<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">&nbsp;<%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>&nbsp;|&nbsp;"
    else
      response.Write "<a href='showfilm.asp?id="&nfRS("id")&"&typeid="&aftRS("typeid")&"' title='"&nfRS("title")&"'>"&left(nfRS("title"),9)&"…</a>&nbsp;|&nbsp;"
	end if
   if (huiche mod 7)=0 then response.Write("<br>&nbsp;")
   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 + -