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

📄 mlist1.asp

📁 千年免费电影系统 V3.1版 修正了V3.0版后台无法登陆的问题
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<TD align=right>
<table border="0" cellspacing="0" width="100%" cellpadding="0" id="table6">
	<tr>
		<td height="9"><img src height=9 width=1></td>
	</tr>
	<tr>
		<td><!--webbot
bot="HTMLMarkup" startspan --><font color="#000000"><b><span class="样式3" lang="zh-cn">本站共收录有电影:</span>
                        <%        
function gettipnum1()
dim tmprs1
tmprs1=conn.execute("Select Count(articleid) from learning")
gettipnum1=tmprs1(0)
set tmprs1=nothing
if isnull(gettipnum1) then gettipnum1=0
end function
                                %><font color="#FF0000"><%=gettipnum1()%></font><span class="样式3">部</span>&nbsp; <span class="样式3">今天更新:</span><span lang="zh-cn">
                              <%
                             function todays()
dim tmprs
tmprs=conn.execute("Select count(articleid) from learning Where year(dateandtime)=year(date()) and month(dateandtime)=month(date()) and day(dateandtime)=day(date())")
todays=tmprs(0)
set tmprs=nothing
if isnull(todays) then todays=0
end function%><font color="#FF0000"><%=todays()%></font></b><span class="样式3">部</span></span>
                                  <!--webbot bot="HTMLMarkup" endspan i-checksum="62826" -->
</td>
	</tr>
</table>
</TD>
<TD align=right width="158"><IMG height=31 src="../../vod/img/7.gif" width=83></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY>
<TR>

    <TD vAlign=top align=middle width=8>
      <table width="591" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="2"><%
dim sql
dim rs
if typeid="所有影片" then
    sql="select * from learning order by articleid desc"
else
   sql="select * from learning where typeid='"&typeid&"' order by articleid desc"
end if   
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
 if rs.eof and rs.bof then
       response.write "<script>alert('该类还没有任何影片,要想看的话请联系管理员!')</Script><script Language=Javascript>location.href = '';</script>"
       response.end
   else
	  totalPut=rs.recordcount
      totalPut=rs.recordcount
      if currentpage<1 then
          currentpage=1
      end if
      if (currentpage-1)*MaxPerPage>totalput then
	   if (totalPut mod MaxPerPage)=0 then
	     currentpage= totalPut \ MaxPerPage
	   else
	      currentpage= totalPut \ MaxPerPage + 1
	   end if
      end if
       if currentPage=1 then
           showpage totalput,MaxPerPage,"mlist.asp"
            showContent
            showpage totalput,MaxPerPage,"mlist.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"mlist.asp"
            showContent
            showpage totalput,MaxPerPage,"mlist.asp"
        else
	        currentPage=1
          showpage totalput,MaxPerPage,"mlist.asp"
           showContent
           showpage1 totalput,MaxPerPage,"mlist.asp"
	      end if
	   end if
   end if
   sub showContent


'Split("Sun,Mon,Tue,Wed,Thu,Fri,Sat",",")
	BgImg1 = "06,04,08,09"
	BgImg2 = "12,11,14,15"

       dim i
	   i=0
                    %>
            <%i=0
          do while not rs.eof
	If i mod 4 = 0 Then MyBgImg = BgImg1 Else MyBgImg = BgImg2
		MyBgImg = Split(MyBgImg,",")
%></td>
        </tr>
        <tr>
          <td valign="top">
            
            <table border="0" cellspacing="3" width="100%" cellpadding="0" id="table8">
				<tr>
					<td>
					<table width="385" height="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#DBDBDB">
              <tr>
                <td bgcolor="#ffffff" width="110"><a target="_blank" title="影片名称:<%=rs("title")%>
主演:<%content=rs("name")
                          if len(content)>20 then content=left(content,20)&"…"
                          response.write content
                            %>
上传时间:<%=rs("dateandtime")%>
观看次数:<%=rs("hits")%>次
" href="movie.asp?id=<%=rs("articleid")%>"><img border="0" height="152" src="<%if rs("domurl")="" then%>img/w.gif<%else%><%=rs("domurl")%><%end if%>" width="110"></a></td>
                <td bgcolor="#ffffff" valign="top">
                  <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2">
                    <tr>
                      <td align="center" bgcolor="#E9E9E9"><span class="style2"></span></td>
                      <td align="center" bgcolor="#E9E9E9"><div align="left"><span class="style2"> <strong>
                        <span class="3dfont2"><a target="_blank" title="影片名称:<%=rs("title")%>
主演:<%content=rs("name")
                          if len(content)>8 then content=left(content,8)&"?-"
                          response.write content
                            %>
上传时间:<%=rs("dateandtime")%>
观看次数:<%=rs("hits")%>次
" href="movie.asp?id=<%=rs("articleid")%>">
                        <%content=rs("title")
                          if len(content)>13 then content=left(content,13)&""
                          response.write content
                            %>
                        </a></span>                      </strong></a></span></div></td>
                    </tr>
                    <tr>
                      <td colspan="2">类别: <%=rs("typeid")%></td>
                    </tr>
                    <tr>
                      <td colspan="2">主演: 
                        <%content=rs("name")
                          if len(content)>20 then content=left(content,10)&"…"
                          response.write content
                            %></td>
                    </tr>
                    <tr>
                      <td colspan="2">级别:
                        <% if rs("canlook")=1 then%>  
 普通电影  
                    <%elseif rs("canlook")=3 then%>
                    黄金电影   
                    <%elseif rs("canlook")=0 then%>
                    免费电影  
                    <%end if%></td>
                    </tr>
                    <tr>
                      <td colspan="2">观看:<%=rs("hits")%>次</td>
                    </tr>
                    <tr>
                      <td width="10%" align="center"> </td>
                      <td width="90%" align="center"><div align="left">
						<table border="0" cellspacing="5" cellpadding="0" id="table9">
							<tr>
								<td><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank">
								<img src="../../vod/img/sort_play.gif" border="0"></a></td>
								<td><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank">
								<img src="../../vod/img/sort_down.gif" width="60" height="18" border="0"></a></td>
								<td>
								<img src="../../vod/img/sort_sou.gif" border="0"></td>
							</tr>
						</table>
						</div></td>
                    </tr>
                </table></td>
            </table></td>
				</tr>
			</table>
            
            <%rs.movenext%></td>
          <td><% If not rs.eof Then %>
              <table border="0" width="100%">
					<tr>
						<td>
						<table width="385" height="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#DBDBDB">
                <tr>
                  <td bgcolor="#ffffff" width="110"><a target="_blank" title="影片名称:<%=rs("title")%>
主演:<%content=rs("name")
                          if len(content)>20 then content=left(content,20)&"…"
                          response.write content
                            %>
上传时间:<%=rs("dateandtime")%>
观看次数:<%=rs("hits")%>次

" href="movie.asp?id=<%=rs("articleid")%>"><img border="0" height="152" src="<%if rs("domurl")="" then%>img/w.gif<%else%><%=rs("domurl")%><%end if%>" width="110"></a></td>
                  <td bgcolor="#ffffff" valign="top">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2">
                      <tr>
                        <td align="center" bgcolor="#E9E9E9"><span class="style2"></span></td>
                        <td align="center" bgcolor="#E9E9E9"><div align="left"><span class="style2"> <strong> <span class="3dfont2"></span></strong></a><strong><span class="3dfont2"><a target="_blank" title="影片名称:<%=rs("title")%>
主演:<%content=rs("name")
                          if len(content)>8 then content=left(content,8)&"?-"
                          response.write content
                            %>
上传时间:<%=rs("dateandtime")%>
观看次数:<%=rs("hits")%>次
" href="movie.asp?id=<%=rs("articleid")%>">
                            <%content=rs("title")
                          if len(content)>13 then content=left(content,13)&""
                          response.write content
                            %>
                        </a></span> </strong></span></div></td>
                      </tr>
                      <tr>
                        <td colspan="2">类别: <%=rs("typeid")%></td>
                      </tr>
                      <tr>
                        <td colspan="2">主演:
                            <%content=rs("name")
                          if len(content)>20 then content=left(content,10)&"…"
                          response.write content
                            %></td>
                      </tr>
                      <tr>
                        <td colspan="2">级别:
                            <% if rs("canlook")=1 then%>
            普通电影
            <%elseif rs("canlook")=3 then%>
            黄金电影
            <%elseif rs("canlook")=0 then%>
            免费电影
            <%end if%></td>
                      </tr>
                      <tr>
                        <td colspan="2">观看:<%=rs("hits")%>次</td>
                      </tr>
                      <tr>
                        <td width="10%" align="center"> </td>
                        <td width="90%" align="center"><div align="left"><div align="left">
							<table border="0" cellspacing="5" cellpadding="0" id="table10">
							<tr>
								<td><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank">
								<img src="../../vod/img/sort_play.gif" border="0"></a></td>
								<td><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank">
								<img src="../../vod/img/sort_down.gif" width="60" height="18" border="0"></a></td>
								<td>
								<img src="../../vod/img/sort_sou.gif" border="0"></td>
							</tr>
						</table>
						</div></div></td>
                      </tr>
                  </table></td>
              </table></td>
					</tr>
				</table>
              <%rs.movenext%>
          </td>
        </tr>
        <tr>
          <% End If %>
        </tr>
        <tr>
          <td colspan="2">
            <% i=i+2
	      if i>=MaxPerPage then exit do
	   loop
		              %>
          </td>
        </tr>
      </table>
      <%
end sub 

function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
	n= totalnumber \ maxperpage
else
	n= totalnumber \ maxperpage+1
end if
%>
      <table border="0" cellspacing="0" height="25" width="659" background="../../images/top-bg3.gif">
        <form method=Post action="<%=filename%>?typeid=<%=typeid%>">
          <tr>
            <td height="25"> &nbsp;&nbsp;
            <font color="000000" class="fontshadow">〓 <%=typeid%> 〓 &nbsp;&nbsp;共有<font color="ff0000"><b><%=totalnumber%></b></font>部&nbsp;&nbsp;&nbsp;当前:第<font color="ff0000"><strong><%=CurrentPage%></strong></font>页/共<font color="ff0000"><strong><%=n%></strong></font>页
            <td><div align="right">
                <%if CurrentPage<2 then%>
                <font color="888888">首页&nbsp;上一页&nbsp;&nbsp;&nbsp;
                <%else%>
                <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=1&"><font color="000000">首页</font></a><font color="000000">&nbsp; <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=CurrentPage-1%>"><font color="000000">上一页</font></a><font color="000000">&nbsp;&nbsp;&nbsp;
                <%
end if
if n-currentpage<1 then
%>
                <font color="888888">下一页&nbsp;尾页&nbsp;&nbsp;&nbsp;
                <%else%>
                <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=(CurrentPage+1)%>"><font color="000000">下一页</font></a><font color="000000">&nbsp; <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=n%>"><font color="000000">尾页</font></a><font color="000000">&nbsp;
                <%end if%>
              </font></font></font></font></font></font></div>
            <font color="888888"><font color="000000"><font color="000000"><font color="888888"><font color="000000"><font color="000000">
            <td align="center"><select name="page" style="color:#000000;font-size: 9pt" onchange="javascript:submit()">
                <%for i = 1 to n%>
                <option value="<%=i%>" <%if cint(CurrentPage)=cint(i) then%> selected <%end if%>>第<%=i%>页</option>
                <%next%>
            </select></td>
          </font></font></font></font></font></font></font></tr>
        </form>
      </table>
      <% 
end function
%>
      <%
sub gotopage
end sub
%>
</TABLE>
</td>
	</tr>
</table>
</td>

</TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


<TABLE height=8 cellSpacing=0 cellPadding=0 width=993 background=../../vod/img/20.gif border=0>
<TBODY>
<TR>
<TD width=8 bgColor=#ffffff></TD>
<TD><img src height=8 width=1></TD>
<TD width=8 bgColor=#ffffff> </TD></TR></TBODY></TABLE>
<TABLE height=97 cellSpacing=0 cellPadding=0 width=993 border=0>
<TBODY>
<TR>
<TD align=right bgColor=#ffffff> </TD>
<TD bgColor=#ffffff> </TD></TR></TBODY></TABLE>
<TABLE height=8 cellSpacing=0 cellPadding=0 width=993 background=../../vod/img/20.gif border=0>
<TBODY>
<TR>
<TD width=8 bgColor=#ffffff></TD>
<TD height="9"><img src height=8 width=1></TD>
<TD width=8 bgColor=#ffffff> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=993 bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD align=middle height=34><!--#include file=bottom.asp--></TD>
</TR>
<TR>

</TR></TBODY></TABLE>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -