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

📄 user_note.asp

📁 电影ASP文件
💻 ASP
字号:
<!--#include file="../film_conn.asp"-->
<!-- #include file="user_session.asp" -->
<!-- #include file="../set_url.asp" -->
<HTML><HEAD><TITLE><%=webname%> - 会员管理中心 - 消费记录</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</HEAD>
<BODY bgColor=#71757b leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0" botmargin="0">
<!--#include file="../top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center background=../images/bg-content.gif border=0 valign="top">
  <TBODY>
  <TR>
    <TD width=778 height=1>
      <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=1 
      cellSpacing=0 cellPadding=0 width=778 align=left border=0 valign="top">
        <TBODY>
  <TR>
    <TD width=778 height=188>
      <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 
      cellPadding=0 width=778 border=0>
        <TBODY>
        <TR>
          <TD width=15 height=151> </TD>
          <TD vAlign=top width=194 height=151><!--#include file="../left1.asp"--></TD>
          <TD vAlign=top width=4></TD>
          <TD vAlign=top width=550 height=151>
            <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 
            cellSpacing=5 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top width="100%" height=386>
                  <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 
                  height=246 cellSpacing=0 cellPadding=0 width="91%" border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top width="100%" height=39><!--#include file="../query.asp"--></TD></TR>
                    <TR>
                      <TD width="100%" height=5></TD></TR>
                    <TR>
                      <TD width="100%" height=8></TD></TR>
                    <TR>
                      <TD width="100%" height=5></TD></TR>
                    <TR>
                      <TD width="100%" height=3>
                      <IMG height=21 
                        src="../images/b.gif" width=538 border=0></TD></TR>
                    <TR>
                      <TD width="100%" background=../images/b01.gif height=465 valign="top">
                      <div align="center">
                        <center>
                        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1">
                          <tr>
                      <TD height=175 style="font-size: 12px">
                      <div align="center" style="font-size: 12px">
                        <center>
                        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
                          <tr>
                            <td width="100%" style="font-size: 12px"><table border="0" cellspacing="0" width="100%" style="border-collapse: collapse" height="94">
                  <tr>
                    <td height="28" style="font-size: 12px">
<div align="center" style="font-size: 12px"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
<tr><td width="100%" style="font-size: 12px"><%
   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
%> <center>
<%
set rs=server.createobject("adodb.recordset")
sql="select id from users where userid='"&request.cookies("userid")&"' and password='"&request.cookies("password")&"'"
rs.open sql,conn,1,1
 if rs.eof and rs.bof then
       response.write "<p align='center'> 没有登陆或用户名密码错误无法查询!</p>"
       response.end
end if
sql="select * from tolook where userid='"&request.cookies("userid")&"' order by id desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
  if not rs.eof and rs.bof then
       response.write "<p align='center'> 没有登陆或用户名密码错误无法查询!</p>"
       response.end
   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
           showpage totalput,MaxPerPage,"user_note.asp"
            showContent
            showpage totalput,MaxPerPage,"user_note.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"user_note.asp"
            showContent
             showpage totalput,MaxPerPage,"user_note.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"user_note.asp"
           showContent
           showpage totalput,MaxPerPage,"user_note.asp"
	      end if
	   end if
   end if
	        

  

   sub showContent
       dim i
	   i=0

  %>
<table border="1" cellspacing="0" width="100%" bordercolorlight="#FFFFFF" bordercolordark="#000000" cellpadding="0" height="48" style="border-collapse: collapse" bordercolor="#111111">
  <tr bgcolor="#CCCCCC">
    <td width="103" align="center" bgcolor="#CCCCCC" height="21" style="font-size: 12px"><b>
    <font color="#000000">会员帐号</font></b></td>
    <td width="63" align="center" bgcolor="#CCCCCC" height="21" style="font-size: 12px"><b>方式</b></td>
    <td width="138" align="center" bgcolor="#CCCCCC" height="21" style="font-size: 12px"><b>观看IP</b></td>
    <td width="163" align="center" bgcolor="#CCCCCC" height="21" style="font-size: 12px"><b>观看时间</b></td>
    <td width="190" align="center" bgcolor="#CCCCCC" height="21" style="font-size: 12px"><b>观看电影</b></td>
  </tr>
  <%do while not rs.eof%>
  <tr>
    <td height="23" width="103" bgcolor="#F0F0F0" align="center" style="font-size: 12px"><%=rs("userid")%></td>
    <td width="63" height="23" bgcolor="#F0F0F0" align="center" style="font-size: 12px">
    <%=rs("lookordown")%> </td>
    <td width="138" height="23" bgcolor="#F0F0F0" align="center" style="font-size: 12px"><%=rs("userip")%> </td>
    <td width="163" height="23" bgcolor="#F0F0F0" align="center" style="font-size: 12px"><%=rs("looktime")%> </td>
    <td width="190" height="23" bgcolor="#F0F0F0" align="center" style="font-size: 12px"><%=rs("title")%> </td>
  </tr>
  <% i=i+1
	      if i>=MaxPerPage then exit do
	      rs.movenext
	   loop
		  %>
</table>
<div align="center" style="font-size: 12px">
  <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&">"
    if CurrentPage<2 then
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;"
  else
    response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a>&nbsp;"
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a>&nbsp;"
  end if
  if n-currentpage<1 then
    response.write "<font color='#000080'>下一页 尾页</font>"
  else
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
    response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
  end if
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
    response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>条记录 <b>"&maxperpage&"</b>条/页</font> "
   response.write " <font color='#000080'>转至:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">"
   response.write " <input type='image'  src='../icon/go.gif'  name='cndok'></span></p></form>"
       
end function
    
    rs.close
    set rs=nothing  
   conn.close
   set conn=nothing
  %> </center></td></tr>
</table></center></div></td></tr></table></td></tr></table></center></div></TD>
                          </tr>
                          <tr>
                            <td width="100%" style="font-size: 12px">

 </td>
                          </tr>
                          </table>
                        </center>
                      </div>
                      </TD></TR>
                    <TR>
                      <TD width="100%" height=1>
                      <IMG height=5 
                        src="../images/b02.gif" width=538 
                    border=0></TD></TR></TBODY></TABLE></TD></TR>
              </TBODY></TABLE></TD>
          <TD width=15 height=151> </TD></TR></TBODY></TABLE></TD></TR>
  </TBODY></TABLE>
</table>
<!--#include file="../bottom.asp"-->
</BODY></HTML>

⌨️ 快捷键说明

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