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

📄 managebbs01.asp

📁 视频点播系统
💻 ASP
字号:

<!--#include file="articleconn.asp"-->
<!--#include file="home1.asp"-->
<!--#include file="security.asp"-->

<html><!--#include file="../checkpost.asp"-->

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理页</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" type="text/css" href="css/css.css">
<script language="javascript">
function popwin2(id,path)
{		window.open("openarticle.asp?id="+id+"&ppath="+path,"","height=500,width=600,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes");
}
</script>
</head>

<%
   dim rs
   MaxPerPage=25
   dim totalPut   
   dim CurrentPage
   dim TotalPages
   dim i,j
   dim typename
   typename=""
   if not isempty(request("page")) then
      currentPage=cint(request("page"))
   else
      currentPage=1
   end if
   dim sql
   dim rstype
   dim typesql
   dim typeid,typename1
   if not isEmpty(Replace(request("typeid"), "'", "''")) then
	typeid=Replace(request("typeid"), "'", "''")
   else
	typeid=0
   end if
  
%><style type=text/css>
body  { background:#799AE1; margin:0px; font:9pt 宋体; }
table  { border:0px; }
td  { font:normal 12px 宋体; }
img  { vertical-align:bottom; border:0px; }
a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover  { color:#428EFF;text-decoration:underline; }
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title  { }
.menu_title span  { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<body  topmargin="1" leftmargin="2">

<div align="center">
  <center>
  <%  if request("name23")="" then
 sql="select articleid,title,dateandtime,review from learning where reviewcount<>0 order by dateandtime desc" 
 else 
  sql="select articleid,title,dateandtime,review from learning where title like  '%"&request("name23")&"%' order by dateandtime desc" 
  end if
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 
  if rs.eof and rs.bof then 
       response.write "<p align='center'> 还 没 有 任 何 文 章</p>" 
   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,"managebbs01.asp" 
            showContent 
            showpage totalput,MaxPerPage,"managebbs01.asp" 
       else 
          if (currentPage-1)*MaxPerPage<totalPut then 
            rs.move  (currentPage-1)*MaxPerPage 
            dim bookmark 
            bookmark=rs.bookmark 
           showpage totalput,MaxPerPage,"managebbs01.asp" 
            showContent 
             showpage totalput,MaxPerPage,"managebbs01.asp" 
        else 
	        currentPage=1 
           showpage totalput,MaxPerPage,"managebbs01.asp" 
           showContent 
           showpage totalput,MaxPerPage,"managebbs01.asp" 
	      end if 
	   end if 
   end if  
 
   sub showContent 
       dim i 
	   i=0 
 
  %>
  <div align="center">
    <center>
    <table border="0" cellspacing="1" width="600" bordercolorlight="#000000" cellpadding="0" bordercolordark="#FFFFFF" style="border-collapse: collapse" bordercolor="#111111">
	<form method="POST" action="managebbs01.asp">
  <p align="center"><b>按电影名查询</b><input type="text" name="name23" size="20">
  <input type="submit" value="查询"><br>
</form></p>
<p align="center"><a href="managebbs.asp">显示所有电影</a></p><br>
      <tr bgcolor="#CCCCCC">
        <td width="46" align="center" height="20">ID号</td>
        <td width="400" align="center">电影名称</td>
        <td width="69" align="center">修改</td>
        <td width="68" align="center">删除</td>
      </tr>
      <%do while not rs.eof%>
      <tr>
        <td height="23" width="46" bgcolor="#FFFFFF">
        <p align="center"><%=rs("articleid")%> </td>
        <td width="400" bgcolor="#FFFFFF">·<a href="../re.asp?id=<%=rs("articleid")%>" target="_blank"><%=rs("title")%> 
        相关评论</a></td>
        <td width="69" bgcolor="#FFFFFF">
        <p align="center">
        <a target="_blank" href="editbbs.asp?id=<%=rs("articleid")%>">修改</a></td>
        <td width="68" bgcolor="#FFFFFF">
        <p align="center">
        <a href="deletebbs.asp?articleid=<%=rs("articleid")%>">
        <font color="#000000">删除</font></a></td>
      </tr>
      <% i=i+1 
	      if i>=25 then exit do 
	      rs.movenext 
	   loop 
		  %>
    </table>
    <table width="600" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td></td>
      </tr>
    </table>
    </center>
  </div>
  <% 
   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 
  response.write "<form method=Post action="&filename&"?typeid="&typeid&">" 
    if CurrentPage<2 then 
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;" 
  else 
    response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a>&nbsp;" 
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a>&nbsp;" 
  end if 
  if n-currentpage<1 then 
    response.write "<font color='#000080'>下一页 尾页</font>" 
  else 
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">" 
    response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>" 
  end if 
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> " 
    response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>篇 <b>"&maxperpage&"</b>篇/页</font> " 
   response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">" 
   response.write "<input class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form>" 
        
end function 
  %>
  <p></p>
  </center>
</div>
<%rs.close          
   set rs=nothing   
   conn.close 
   set conn=nothing %>

</body>

</html>

⌨️ 快捷键说明

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