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

📄 admin_mov_manage.asp

📁 重庆宽频P2P电影小偷程序,可以做一个大型的电影站了
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true	
'Const AdminPurview=1
'Response.Buffer = False
Const PurviewLevel = 1
Const PurviewLevel_Channel = 0
Const PurviewLevel_Others = ""
Server.ScriptTimeOut = 99999999


'Dim ComeUrl,Site_Sn



%>
<!--#include file="../Conn.asp"-->
<!--#include file="../inc/Function.asp"-->
<!--#include file="Admin_ChkPurview.asp"-->
<!--#include file="Admin_mov_Conn.asp"-->
<!--#include file="Admin_mov_Function.asp"-->


<%



Dim SqlItem,RsItem
Dim tAction,tFoundErr,tErrMsg
Dim ItemID,ItemName,tChannelID,ClassID,SpecialID
Dim ListStr,ListPaingType,ListPaingStr2,ListPaingID1,ListPaingID2,ListPaingStr3,Flag,WebName,LastTimeStr,iChannelID
Dim ListUrl
Dim CurrentPage,AllPage,iItem,MaxPerPage
MaxPerPage=Clng(Trim(Request("MaxPerPage")))
if MaxPerPage="" then
	MaxPerPage=20
End if
tAction=Request("Action")
iChannelID=Request("iChannelID")
if iChannelID="" then iChannelID=0
If tAction="Del" Then
   Call Del()
Elseif tAction="Copy" then
	Call Copy()
End If
If tFoundErr=True Then
ErrMsg=tErrMsg
   Call WriteErrMsg()
Else
   Call Main()
End If
'关闭数据库链接
Call CloseConn()
Call CloseConnItem()
%>

<%Sub Main%>
<html>
<head>
<title>电影采集系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="Admin_Style.css">
<SCRIPT language=javascript>
function unselectall(thisform)
{
    if(thisform.chkAll.checked)
	{
		thisform.chkAll.checked = thisform.chkAll.checked&0;
    } 	
}

function CheckAll(thisform)
{
	for (var i=0;i<thisform.elements.length;i++)
    {
	var e = thisform.elements[i];
	if (e.Name != "chkAll"&&e.disabled!=true)
		e.checked = thisform.chkAll.checked;
    }
}
function ConfirmDel(thisform)
{
	if(thisform.Action.value=="Del")
	{
		if(confirm("确定要删除选中的项目吗?"))
		    return true;
		else
			return false;
	}
}
function showsetting(thisform)
{
	for (var j=0;j<6;j++)
	{
		var tab = eval("document.all.settable"+j);
		if(thisform.ADType.selectedIndex==j)
			tab.style.display = "";
		else
			tab.style.display = "none";
	}
	if(thisform.ADType.selectedIndex==6)
	{
		nocodead.style.display = "none";
		iscodead.style.display = "";
	}
	else
	{
		nocodead.style.display = "";
		iscodead.style.display = "none";
	}
}
</script>
<style type="text/css">
<!--
.style1 {color: #555555}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
  <tr class='topbg'> 
    <td height="22" colspan="2" align="center" ><strong>采 集 系 统 项 目 管 理</strong></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
  <tr class="tdbg"> 
    <td width="70" height="30"><strong>管理导航:</strong></td>
    <td height="30"><a href="Admin_mov_Manage.asp">管理首页</a> | <a href="Admin_mov_Add.asp">添加新项目</a></td>
  </tr>
</table><br>
<table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
	<tr class='title'>
		<td colspan='2'><%Call ShowChannelList(iChannelID)%> | <a href='Admin_mov_Manage.asp'><FONT style='font-size:12px'<%if iChannelID=0 then Response.write "color='red'"%>> 所有频道 </FONT></a> | </td>
	</tr>
</table><br>

  
<%            
If Request("page")<>"" then
    CurrentPage=Cint(Request("Page"))
Else
    CurrentPage=1
End if                 
Set RsItem=server.createobject("adodb.recordset")         
SqlItem="select ItemID,ItemName,WebName,ListStr,ListPaingType,ListPaingStr2,ListPaingID1,ListPaingID2,ListPaingStr3,ChannelID,ClassID,SpecialID,LastTimeStr,Flag from Item "  
if iChannelID<>0 then
	SqlItem=SqlItem&"Where ChannelID="&iChannelID&""
End if       
SqlItem=SqlItem&" order by ItemID DESC"         
RsItem.open SqlItem,ConnItem,1,1

if RsItem.Eof and RsItem.Bof then%>
   <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align=center>
      <tr class='tdbg'><td align='center' colspan='2'><br>无任何记录!<br></td></tr>
   </table>
<%
Else
   RsItem.PageSize=MaxPerPage
   Allpage=RsItem.PageCount
   RsItem.MoveFirst
   RsItem.AbsolutePage=CurrentPage
   iItem=0
%>         
  <table class="border" border="0" cellspacing="1" width="100%" cellpadding="0">         
   <form name="form1" method="POST" action="Admin_mov_Manage.asp" onSubmit="return confirm('确定要删除选定的项目吗?');">         
     <tr class="title" style="padding: 0px 2px;">         
      <td width="30" height="22" align="center"><strong>选择</strong></td>                 
      <td align="center"><strong>项目名称</strong></td>         
      <td width="80" align="center"><strong>采集地址</strong></td>
      <td width="80" height="22" align="center"><strong>所属频道</strong></td> 
      <td width="80" height="22" align="center"><strong>所属栏目</strong></td> 
      <td width="80" align="center"><strong>所属专题</strong></td>   
      <td width="40" align="center"><strong>状态</strong></td>
      <td width="130" align="center"><strong>上次采集</strong></td>           
      <td width="100" height="22" align="center"><strong>操作</strong></td>         
     </tr>         
<%         

   Do While Not RsItem.Eof 
      ItemID=RsItem("ItemID")
      ItemName=RsItem("ItemName")  
      WebName=RsItem("WebName")
      tChannelID=RsItem("ChannelID")
      ClassID=RsItem("ClassID")
      SpecialID=RsItem("SpecialID")
      ListStr=RsItem("ListStr")
      ListPaingType=RsItem("ListPaingType")
      ListPaingStr2=RsItem("ListPaingStr2")
      ListPaingID1=RsItem("ListPaingID1")
      ListPaingID2=RsItem("ListPaingID2")
      ListPaingStr3=RsItem("ListPaingStr3")
      Flag=RsItem("Flag")
      If  ListPaingType=0  Or ListPaingType=1  Then
            ListUrl=ListStr
      ElseIf  ListPaingType=2  Then
            ListUrl=Replace(ListPaingStr2,"{$ID}",CStr(ListPaingID1))
      ElseIf  ListPaingType=3  Then
            If  Instr(ListPaingStr3,"|")>0  Then
            ListUrl=Left(ListPaingStr3,Instr(ListPaingStr3,"|"))
         Else
               ListUrl=ListPaingStr3
         End  If
      End  If
%>         
	<tr class="tdbg" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#BFDFFF'" style="padding: 0px 2px;">          
		<td width="30" align="center"><input type="checkbox" value=<%=ItemID%> name="ItemID" onClick="unselectall(this.form)" ></td>               
		<td align="center"><a href="Admin_mov_Add.asp?ItemID=<%=ItemID%>&Type=modify" title="编辑此项目"><%=ItemName%></a></td>         
		<td align="center"><a href="<%=ListUrl%>" target="_bank"><%=WebName%></a></td>
		<td align="center"><%Call ShowName(1,tChannelID)%></td>  
		<td align="center"><%Call ShowName(2,ClassID)%></td>
		<td align="center"><%Call ShowName(3,SpecialID)%></td> 
		<td align="center"><%If Flag=True Then Response.Write "√"%><%If Flag<>True Then Response.Write "<font color=red>×</font>"%></td>    
		<td align="center"><%ShowcollecDate(ItemID)%></td>    
		<td align="center"><a href="Admin_mov_Add.asp?ItemID=<%=ItemID%>&Type=modify">编辑</a>&nbsp;<a href="Admin_mov_Add.asp?ItemID=<%=ItemID%>&Type=modify&Action=Add4">测试</a><br><a href="Admin_mov_Add.asp?Action=Add5&Type=modify&ItemID=<%=ItemID%>">属性</a> <!--<a href="Admin_mov_Manage.asp?Action=Del&ItemID=<%=ItemID%>" onclick='return confirm("确定要删除此项目吗?");'>删除</a>--><a href="Admin_mov_Manage.asp?Action=Copy&ItemID=<%=ItemID%>" onclick='return confirm("确定要复制此项目吗?");'>复制</a></td>         
	</tr>         
<%         
   iItem=iItem+1
   If iItem >= MaxPerPage Then Exit Do
   RsItem.Movenext         
   Loop         
%>        
	<tr class="tdbg">          
		<td colspan=9 height="30" >
			&nbsp;<input name="chkAll" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox">选中所有项目<input type="hidden" name="Action" value="Del">   将选定的项目:<input type="submit" value=" 删&nbsp;&nbsp;除 " name="submit" onClick='return ConfirmDel(this.form);'>&nbsp;&nbsp;         
		</td>         
	</tr>        
	</form>         
</table>  
<table align='center'>
	<tr>          
		<td colspan=9 height="30" align="center">          
                 共 <b> <%=RsItem.recordcount%></b> 个项目记录&nbsp;&nbsp;<a href="Admin_mov_Manage.asp?iChannelID=<%=iChannelID%>">首页</a>&nbsp;<%if currentPage>1 then %><a href="Admin_mov_Manage.asp?MaxPerPage=<%=MaxPerPage%>&iChannelID=<%=iChannelID%>&page=<%=currentPage-1%>">上一页</a><%else%>上一页<%end if%>&nbsp;<%if currentPage<allpage then%><a href="Admin_mov_Manage.asp?MaxPerPage=<%=MaxPerPage%>&iChannelID=<%=iChannelID%>&page=<%=currentPage+1%>">下一页</a><%else%>下一页<%end if%> <a href="Admin_mov_Manage.asp?iChannelID=<%=iChannelID%>&MaxPerPage=<%=MaxPerPage%>&page=<%=allPage%>">尾页</a>&nbsp;&nbsp;&nbsp;页次 <b><font color=red><%=currentPage%></font>/<%=allpage%></b> &nbsp;&nbsp;<input type='text' name='MaxPerPage' size='3' maxlength='4' value='<%=MaxPerPage%>' onKeyPress="if (event.keyCode==13) window.location='Admin_mov_Manage.asp?iChannelID=<%=iChannelID%>&page=<%=currentPage%>&MaxPerPage='+this.value;"> 个过滤项目记录/页 转到第 <select onChange="window.location='Admin_mov_Manage.asp?MaxPerPage=<%=MaxPerPage%>&iChannelID=<%=iChannelID%>&page='+this.value" name="gopage"> <%for iItem=1 to allpage%><option <%if iItem=currentPage then%>selected<%end if%> value="<%=iItem%>"><%=iItem%></option><%next%> </select>
		</td>         
	</tr>   
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="border" >
	<tr>
		<td colspan='2' height="20" align="center"><font color=#0099FF>注:审核 必须连续通过采样测试和属性设置两项方可通过。</font></td>
	</tr>
</table>
   <%
End If   
RsItem.Close         
Set RsItem=nothing         
%>         
   <br>

⌨️ 快捷键说明

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