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

📄 user_active.asp

📁 电影ASP文件
💻 ASP
字号:
<!--#include file="../film_conn.asp"-->
<!--#include file="session.asp"-->
<!--#include file="../set_url.asp"-->
<%
if session("flag")>2 then
response.write "<br><p align=center>您的操作权限不够!</p>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>会员活动</title>
<script language="javascript">
<!--
function winopen(url)                    
     {                    
        window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=580,height=450,top=1,left=1");                    
      }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#E8E8E8" leftmargin="0" topmargin="0">
<%
   MaxPerPage=20
   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 rs
   dim rstype

   if request("page")="" then
   page=0
   end if
   userid123=request("userid123")
%> <center>
<%
if userid123="" then  
 sql="select * from tolook order by id desc"
else  
 sql="select * from tolook where userid='"&request("userid123")&"' order by id 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,"user_active.asp"
            showContent
            showpage totalput,MaxPerPage,"user_active.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"user_active.asp"
            showContent
             showpage totalput,MaxPerPage,"user_active.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"user_active.asp"
           showContent
           showpage totalput,MaxPerPage,"user_active.asp"
	      end if
	   end if
   end if
	        

  

   sub showContent
       dim i
	   i=0

  %>
<form method="POST" action="user_active.asp" align=" center">
  <p align="center"><b>会员帐号:</b><input type="text" name="userid123" size="20">
  <input type="submit" value="查询"></p>
</form>
<p><br>
<a href="user_active_del_30.asp">删除已超过30天的记录</a>    <a href="user_active_del_7.asp">删除已超过7天的记录</a></p>
<table border="0" cellspacing="1" width="100%" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0" height="48" style="border-collapse: collapse" bordercolor="#111111">
  <tr bgcolor="#CCCCCC">
    <td width="91" align="center" bgcolor="#CCCCCC" height="21"><b>
    <font color="#000000">会员帐号</font></b></td>
    <td width="79" align="center" bgcolor="#CCCCCC" height="21"><b>会员等级</b></td>
    <td width="161" align="center" bgcolor="#CCCCCC" height="21"><b>会员IP</b></td>
    <td width="64" align="center" bgcolor="#CCCCCC" height="21"><b>观看方式</b></td>
    <td width="168" align="center" bgcolor="#CCCCCC" height="21"><b>观看时间</b></td>
    <td width="210" align="center" bgcolor="#CCCCCC" height="21"><b>观看电影</b></td>
  </tr>
  <%do while not rs.eof%>
  <tr>
    <td height="23" width="91" bgcolor="#FFFFFF" align="center">
    <a href="javascript:winopen('user_edit.asp?userid=<%=rs("userid")%>')"><u>
    <%=rs("userid")%></u></a></td>
    <td width="79" height="23" bgcolor="#FFFFFF" align="center">
<%
if rs("oklook")=0 then 
oklook="电影游客"
elseif rs("oklook")=1 then
oklook="普通会员"
elseif rs("oklook")=2 then
oklook="白银会员"
elseif rs("oklook")=3 then
oklook="黄金会员"
elseif rs("oklook")=4 then
oklook="钻石会员"
end if 
%><%=oklook%> </td>
    <td width="161" height="23" bgcolor="#FFFFFF" align="center"><%=rs("userip")%> </td>
    <td width="64" height="23" bgcolor="#FFFFFF" align="center">
    <%=rs("lookordown")%> </td>
    <td width="168" height="23" bgcolor="#FFFFFF" align="center"><%=rs("looktime")%> </td>
    <td width="210" height="23" bgcolor="#FFFFFF" align="center"><%=rs("title")%> </td>
  </tr>
  <% i=i+1
	      if i>=MaxPerPage then exit do
	      rs.movenext
	   loop
		  %>
</table>
<div align="center">
  <center>
  <p> </p>
  </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&"&userid123="&userid123&">"
    if CurrentPage<2 then
    response.write "<font color='#000080' style='font-size: 9pt'>首页 上一页</font>&nbsp;"
  else
    response.write "<a href="&filename&"?page=1&typeid="&typeid&"&userid123="&userid123&">首页</a>&nbsp;"
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&"&userid123="&userid123&">上一页</a>&nbsp;"
  end if
  if n-currentpage<1 then
    response.write "<font color='#000080' style='font-size: 9pt'>下一页 尾页</font>"
  else
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&"&userid123="&userid123&">"
    response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&"&userid123="&userid123&">尾页</a>"
  end if
   response.write "<font color='#000080' style='font-size: 9pt'>&nbsp;页次:</font><strong><font color=red style='font-size: 9pt'>"&CurrentPage&"</font><font color='#000080' style='font-size: 9pt'>/"&n&"</strong>页</font> "
    response.write "<font color='#000080' style='font-size: 9pt'>&nbsp;共<b>"&totalnumber&"</b>位会员 <b>"&maxperpage&"</b>位会员/页</font> "
   response.write " <font color='#000080' style='font-size: 9pt'>转到:</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
    
    rs.close
    set rs=nothing  
   conn.close
   set conn=nothing
  %> </center>
</body>
</html>

⌨️ 快捷键说明

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