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

📄 managefilm.asp

📁 顶级影视站ASP源代码系统。很全面很强大。数据库用access
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="primary_admin.asp"-->
<!--#include file="HMconnection.asp"-->
<html>
<head>
<title>顶级影视 设计维护:QQ:1243619 Email:yakai@163.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../style/style.css">
</head>
<body>
<%dim selectm,selectkey,selectfilmid
selectkey=trim(request(trim("selectkey")))
selectm=trim(request("selectm"))
if selectkey="" then
 selectkey=request.QueryString("selectkey")
end if
'//删除商品
if selectm="" then
 selectm=request.QueryString("selectm")
end if

selectfilmid=request("selectfilmid")
if selectfilmid<>"" then%>
<!--#include file="middle_admin.asp"-->
<%dim opration
 opration=request.QueryString("action")
 select case opration
 case "del"
	 conn.execute "delete from filmReview where movieID in ("&selectfilmid&")"
	 conn.execute "delete from film where id in ("&selectfilmid&")"
	 conn.execute "delete from fimlURL where filmid in ("&selectfilmid&")"
 case "notnew"
     conn.execute "update film set ifNew=False where id in ("&selectfilmid&")"
 end select
 response.Redirect "managefilm.asp"
 response.End
end if
%>
  <table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#CCCCCC" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="9" background="../images/back_3.gif" rowspan="2"></td>
          <td class="12v"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#0099FF">
                          <tr> 
                            <td height="16"> 
                              <div align="center"><font color="#FFFFFF">影片查看与修改</font></div>
                            </td>
                          </tr>
                          <tr>
                            <form name="form1" method="post" action="">
                              <td height="113" bgcolor="#E8F1FF">
                                <table width="12" height="7" border="0" cellpadding="0" cellspacing="0">
                                  <tr> 
                                    <td height=7></td>
                                  </tr>
                                </table>
                                <%'开始分页
				Const MaxPerPage=20 
   				dim totalPut   
   				dim CurrentPage
   				dim TotalPages
   				dim j
   				dim sql
    				if Not isempty(request("page")) then
      				currentPage=Cint(request("page"))
   				else
      				currentPage=1
   				end if 
			set rs=server.CreateObject("adodb.recordset")
			select case selectm
			case ""
              rs.open "select id,title,dateandtime,mainactors,directors,ifNew from film order by dateandtime desc",conn,1,1
		    case "0"
			  response.write "<center>请返回选择您要查讯的方式!<br><br><a href=javascript:history.go(-1)>点击返回上一页</a></center>"
			  response.End
			case "filmnames"
			  rs.open "select id,title,dateandtime,mainactors,directors,ifNew from film where title like '%"&selectkey&"%' order by dateandtime desc",conn,1,1
			case "actors"
			  rs.open "select id,title,dateandtime,mainactors,directors,ifNew from film where mainactors like '%"&selectkey&"%' order by dateandtime desc",conn,1,1
			case "directors"
			  rs.open "select id,title,dateandtime,mainactors,directors,ifNew from film where directors like '%"&selectkey&"%' order by dateandtime desc",conn,1,1
		    end select
		   	if err.number<>0 then
				response.write "数据库中无数据!"
				end if
				
  				if rs.eof And rs.bof then
       				Response.Write "<p align='center' class='contents'> 数据库中无数据!!</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,"managefilm.asp"
       				else
          				if (currentPage-1)*MaxPerPage<totalPut then
            				rs.move  (currentPage-1)*MaxPerPage
            				dim bookmark
            				bookmark=rs.bookmark
            				showContent
             				showpage totalput,MaxPerPage,"managefilm.asp"
        				else
	        				currentPage=1
           					showContent
           					showpage totalput,MaxPerPage,"managefilm.asp"
	      				end if
	   				end if
   				   				end if

   				sub showContent
       			dim i
	   			i=0%>
                                <table width="97%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
                                  <tr bgcolor="#E8F1FF" align="center"> 
                                    <td width="26%">影片名称</td>
                                    <td width="18%">主要演员</td>
                                    <td width="16%">影片导演</td>
                                    <td width="21%">加入时间</td>
                                    <td width="7%">评 论</td>
                                    <td width="6%">新 增</td>
                                    <td width="6%">选 择</td>
                                  </tr>
                                  <%
		  do while not rs.eof%>
                                  <tr bgcolor="#E8F1FF" align="center"> 
                                    <td><a href=editfilm.asp?id=<%=rs("id")%>> 
                                        <% if len(trim(rs("title")))>16 then
			response.write left(trim(rs("title")),14)&"..."
			else
			response.write trim(rs("title"))
			end if%>
                                        </a></td>
                                    <td> 
                                        <%if len(trim(rs("mainactors")))>8 then
			response.write left(trim(rs("mainactors")),6)&"..."
			else 
			response.write trim(rs("mainactors"))
			end if%>
                                     </td>
                                    <td> 
                                        <%if len(trim(rs("directors")))>8 then
			response.write left(trim(rs("directors")),6)&"..."
			else 
			response.write trim(rs("directors"))
			end if%>
                                      </td>
                                    <td><%=rs("dateandtime")%></td>
                                    <td>
									<input type="image" src="images/chakan.gif" name="pinglun" onClick="javascript:window.open('managepinglun.asp?id=<%=rs("id")%>','_self');return false;">
									</td>
                                    <td><%=rs("ifNew")%></td>
                                    <td><input name="selectfilmid" type="checkbox" id="selectfilmid" value="<%=rs("id")%>"></td>
								  </tr>
                                  <%i=i+1
			if i>=MaxPerPage then Exit Do
			rs.movenext
		  loop
		  rs.close
		  set rs=nothing%>
                                  <tr bgcolor="#E8F1FF"> 
                                    <td height="30" colspan="7"> <div align="right"> 
                                        选中所有显示的影片&nbsp; 
                                        <input type="checkbox" name="checkAllBox" value="" onClick="CheckAll(this.form);">
                                        &nbsp;&nbsp; 
                                        <input type="submit" name="Submit" value="删 除" onClick="return test(1,'确认要删除选中的影片吗?');">&nbsp;&nbsp;
										<input type="submit" name="Submit2" value="旧的了" onClick="return test(2,'确认所选影片不是新增的吗?');">

⌨️ 快捷键说明

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