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

📄 listflash.asp

📁 超级简单Flash动画在线 超级简单Flash动画在线
💻 ASP
字号:
<!--#include file=conn.asp-->
<%
if session("admin")<>"ah" then
response.write "对不起!你的权限不够.<a href='javascript:onclick=history.go(-1)'>返回</a>"
response.end
end if
%>
<%Const MaxPerPage=15%>
<%
dim totalPut   
   	dim CurrentPage, TotalPages
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
set rs=server.createobject("adodb.recordset")
sql="select * from flashmtv order by id desc"
rs.open sql,conn,1,1
%>

<head>
<title></title>
</head>

<body link="#000000" alink="#000000">

<div align="center">
  <center>
   <table border="0" cellpadding="0" cellspacing="0" width="619">
    <tr>
      <td width="619" colspan="5"></td>
    </tr>
  </center>
  <tr>
    <td width="65">
      <p align="left"><font size="2">ID 号</font></td>
    <center>
    <td width="155">
      <p align="center"><font size="2">动 画 名 称</font></td>
    <td width="167">
      <p align="center"><font size="2">动 画 作 者</font></td>
    <td width="136">
      <p align="center"><font size="2">动 画 大 小</font></td>
    <td width="95">
      <p align="center"><font size="2">删 除</font></td>
    </tr>
    <tr>
      <td width="619" colspan="5" height="3">
        <hr style="border-style: dotted; border-color: #808080" color="#000000">
      </td>
    </tr>
<%
if rs.eof and rs.bof then 
       		response.write "<p align='center'>没有找到相关的文章</p>" 
   	else 
      		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 
            		showContent 
            		showpage totalput,MaxPerPage,"listflash.asp" 
       		else 
          		if (currentPage-1)*MaxPerPage<totalPut then 
            			rs.move  (currentPage-1)*MaxPerPage 
            			showContent 
             			showpage totalput,MaxPerPage,"listflash.asp" 
        		else 
	        		currentPage=1 
           			showContent 
           			showpage totalput,MaxPerPage,"listflash.asp" 
	      		end if 
	   	end if 
   	rs.close 
   	end if 
	         sub showContent 
       	dim i 
	   	i=0 
	do while not rs.eof
%>
    <tr>
      <td width="67"><font size="2"><%=rs("id")%></font></td>
      <td width="155" align=center><font size="2">
<a href="editflash.asp?id=<%=rs("id")%>">
<%=rs("flashname")%>
</font></td>
      <td width="167" align=center><%=rs("flashmake")%></td>
      <td width="136" align=center><%=rs("flashsize")%></td>
      <td width="95">
        <p align="center"><font size="2"><a  href=del.asp?id=<%=rs("id")%>><b>Del</b></a></font></td>
    </tr>
    <tr>
      <td width="619" colspan="5" height="3">
        <hr style="border-style: dotted; border-color: #808080" color="#000000">
      </td>
    </tr>
<%
	i=i+1
	if i>=MaxPerPage then exit do
	rs.movenext 
	loop 
end sub
%>
<tr>
<td>

</td>
</tr>
  </table>
  </center>
</div>
  <table border="0" cellpadding="0" cellspacing="0" width="450">
    <tr>
      <td width="448"><font size="2"><%
function showpage(totalnumber,maxperpage,filename)
  dim n
  if totalnumber mod maxperpage=0 then
     n= totalnumber \ maxperpage
  else
     n= totalnumber \ maxperpage+1
  end if
  response.write "<p align='center'>"
  if CurrentPage<2 then
    response.write "<font color='#000080' size=2>首页 | 上一页 | </font>"
  else
    response.write "<a href="&filename&"?page=1><font size=2>首页</a> | </font>"
    response.write "<a href="&filename&"?page="&CurrentPage-1&"><font size=2>上一页</a> | </font>"
  end if
  if n-currentpage<1 then
    response.write "<font color='#000080' size=2>下一页 | 尾页</font>"
  else
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&">"
    response.write "<font size=2>下一页</a> | <a href="&filename&"?page="&n&">尾页</font></a>"
  end if
   response.write "<font color='#000080' size=2>&nbsp;页次:</font><strong><font color=red size=2>"&CurrentPage&"</font><font color='#000080' size=2>/"&n&"</strong>页</font> "
    response.write "<font color='#000080' size=2>&nbsp;共<b>"&totalnumber&"</b>条留言 <b> "&maxperpage&"</b>留言/页</font></P>"
%>
<%     
end function
%>
</font>
</td>
    </tr>
  </table>
<%
rs.close
conn.close
set rs=nothing
set conn=nothing
%>

⌨️ 快捷键说明

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