<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>点播记录</title>
<link href="style/nav.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="../conn.asp"-->
<!--#include file="../Function/Function.asp"-->
<!--#include file="../function/Page.asp" -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
     <tr>
       <td width="100%" valign="top"><table width="690" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr>
           <td height="43" background="images/user_top.gif"><table width="100%" border="0" cellpadding="0" cellspacing="0">
             <tr>
               <td width="6%">&nbsp;</td>
               <td width="94%">点播记录</td>
             </tr>
           </table></td>
         </tr>
       </table><br />
<table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
         <tr>
           <td bgcolor="#f7f7f7"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="login">
             <tr>
               <td><br>
<%IF Request.Cookies("YWNTUserCookie")("UserName")="" Then
	call UsersLogin()
Else%>
                  <div align="center">用户：<%=Request.Cookies("YWNTUserCookie")("UserName")%></div>
                 <table cellspacing="3" cellpadding="1" width="100%" border="0">
                   <tbody>
                     <tr align="middle">
                       <td height="25" align="center" bgcolor="#E3E3E3">影片名称</td>
                       <td width="20%" align="center" bgcolor="#E3E3E3">点播方式</td>
                       <td width="20%" align="center" bgcolor="#E3E3E3">IP</td>
					   <td width="20%" align="center" bgcolor="#E3E3E3">点播放时间</td>
                     </tr>
    <%Dim int_RPP
	int_RPP=20 '设置每页显示数目  
	Set Rs = server.CreateObject(YWNT_TMS_RS)
		sql="Select * from YWNT_TMS_UsersLog Where UsersName='"&Request.Cookies("YWNTUserCookie")("UserName")&"' Order by ID desc"
		Rs.open sql,Conn,1,1
	if Rs.eof then
	   Response.Write"<TR><TD colspan=""4"" bgcolor=""#F7F7F7"" 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 align="middle">
                       <td height="25" align="center" bgcolor="#F7F7F7"><%=RS("MovieName")%></td>
                       <td align="center" bgcolor="#F7F7F7"><%=LookType(RS("MovieType"))%></td>
                       <td align="center" bgcolor="#F7F7F7"><%=RS("UsersIP")%></td>
                       <td align="center" bgcolor="#F7F7F7"><%=RS("Date")%></td>
                     </tr>
                     <%Rs.MoveNext
	next 
	end if%>
                     <tr align="right">
                       <td height="40" colspan="4" bgcolor="#F7F7F7"><% response.Write fPageCount(Rs,cPageNo) %></td>
                     </tr>
                   </tbody>
                 </table>
<%
RS.Close
Set RS = Nothing
End If%>			 
				<br>
			    </td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
   </table>
<%call connclose()%>
</body>
</html>
