<html>
<head>
<META content=ywnt,云网互动影视管理系统 name=keywords>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>云网互动影视6.0--会员收藏管理</title>
<LINK href="css/css.css" type=text/css rel=stylesheet>
</head>
<BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0">
<script language="JavaScript" src="YWNT_TMS_Inc/YWNT_TMS_Common.js"></script>
<!--#include file="../Conn.asp" -->
<!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" -->
<!--#include file="YWNT_TMS_inc/YWNT_TMS_Page.asp" -->
<%
'===================================================================================================================
'软件名称：云网影视管理系统
'Copyright (C) 2002-2007 ywnt.net  All rights reserved.
'产品咨询QQ：489234,2813712
'程序版权：云网互动科技有限公司
'程序开发：云网互动科技有限公司
'官方网站：http://www.ywnt.net 
'郑重声明:
'    1、免费版本请在程序首页保留版权信息，并做上本站LOGO友情连接,商业版本无此要求;
'    2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
'    3、云网互动科技有限公司保留此软件的法律追究权利
'===================================================================================================================
Call CheckLogin("UsersCollection")
sub Del()
	conn.execute "delete from YWNT_TMS_UsersCollection WHERE ID in ("&NoSqlHack(Request("ID"))&")"
	Call AddLog("删除用户收藏",7)
	call Admin_ShowErr("<li>用户收藏删除成功！</li>","Admin_UsersCollection.asp",1)
end sub%>
	<% Action=Trim(Request("Action"))
Select Case Action
Case "Del"
	call Del()
Case else
	call List()
End Select
sub List()
Dim int_RPP
	int_RPP=GetConfig("PageNumber") '设置每页显示数目%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td width="5%" align="center" class=xingmu>ID</td>
      <td align="center" class=xingmu>影片名称</td>
      <td width="15%" align="center" class=xingmu>影片栏目</td>
      <td width="15%" align="center" class=xingmu>会员帐号</td>
      <td width="20%" align="center" class=xingmu>收藏时间</td>
	  <td width="10%" colspan="2" align="center" class=xingmu>操作</td>
    </tr>
	<form name="forms" action="Admin_UsersCollection.asp" method="post">
	<%  Set Rs = server.CreateObject(YWNT_TMS_RS)
		sql="Select * from YWNT_TMS_UsersCollection Order by ID desc"
		Rs.open sql,Conn,1,1
	if Rs.eof then
	   Response.Write"<TR  class=""hback""><TD colspan=""7"" class=""hback"" height=""40"">没有记录。</TD></TR>"
	else
		Rs.PageSize=int_RPP
		cPageNo=NoSqlHack(Request.QueryString("Page"))
		If cPageNo="" Then cPageNo = 1
		If not isnumeric(cPageNo) Then cPageNo = 1
		cPageNo = Clng(cPageNo)
		If cPageNo>Rs.PageCount Then cPageNo=Rs.PageCount 
		If cPageNo<=0 Then cPageNo=1
		Rs.AbsolutePage=cPageNo 
	for i=1 to int_RPP
	 if Rs.eof Then exit For%>
    <tr>
      <td height=32 align="center" class="hback"><%=RS("ID")%></td>
      <td height=32 align="center" class="hback"><%=CollectionMoive("MovieName",RS("CollectionMoiveID"))%></td>
      <td height=32 align="center" class="hback"><%ClassName(CollectionMoive("TypeID",RS("CollectionMoiveID")))%></td>
      <td height=32 align="center" class="hback"><%=RS("CollectionUsers")%></td>
      <td align="center" class="hback"><%=RS("CollectionDate")%></td>
	  <td align="center" class="hback"><A href="Admin_UsersCollection.asp?Action=Del&ID=<%=RS("ID")%>">删除</A></td>
	  <td align="center" class="hback"><input name="ID" type="checkbox" id="ID" value="<% = RS("ID")%>"></td>
	</tr>
	<%Rs.MoveNext
	next 
	end if%>
	<tr align="right">
	<td height=32 colspan="7" class="hback">
	<input name="Action" type="hidden" id="Action">
	<input type="checkbox" name="chkall" value="checkbox" onClick="CheckAll(document.forms.chkall.checked);">
	选择所有
	<input type="submit" name="Submit" value="删除"  onClick="document.forms.Action.value='Del';">
	</tr>
	<tr align="right">
	<td height=32 colspan="7" class="hback"><% response.Write fPageCount(Rs,cPageNo) %></td>
	</tr>
	</form>
  </tbody>
</table>
<%end sub
call connclose()%>
</BODY></HTML>
