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

📄 userok.asp

📁 千年免费电影系统 V3.1版 修正了V3.0版后台无法登陆的问题
💻 ASP
字号:

<!--#include file="../checkpost.asp"-->
<!--#include file="articleconn.asp"-->
<!--#include file="home1.asp"-->
<!--#include file="security.asp"-->

<%if session("flag")>3 then
    response.write "<br><p align=center>您的操作权限不够!</p>"
    response.end
end if
%>

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="inc/Admin_STYLE.CSS" type="text/css">
<title></title>
</head>

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="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

   dim typesql
   dim typeid,typename1
   if not isEmpty(Replace(request("typeid"), "'", "''")) then
	typeid=Replace(request("typeid"), "'", "''")
   else
	typeid=0
   end if
%>
<!--#include file="top1.asp"-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<%
 if request("userid123")="" then
 sql="select * from users where getmoney>=20 order by id desc"
 else
 sql="select * from users where userid='"&request("userid123")&"'"
 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.asp"
            showContent
            showpage totalput,MaxPerPage,"user.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"user.asp"
            showContent
             showpage totalput,MaxPerPage,"user.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"user.asp"
           showContent
           showpage totalput,MaxPerPage,"user.asp"
	      end if
	   end if
   end if
   sub showContent
       dim i
	   i=0

  %>
<div align="center">
  <center>
    <table border="0" cellspacing="1" width="100%" class="border" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0" height="33" style="border-collapse: collapse" bordercolor="#111111">
      <tr> 
        <td width="94" height="7" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>用户编号</b></font></td>
        <td width="88" height="7" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>用户名</b></font></td>
        <td width="80" height="20" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>姓名</b></font></td>
        <td width="142" height="20" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>注册时间</b></font></td>
        <td width="166" height="20" align="center" bgcolor="#429AEF"> 
          <p align="center"><font color="#FFFFFF"><b>应付金额</b></font></td>
        <td width="70" height="20" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>登陆次数</b></font></td>
        <td width="77" height="7" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>详细信息</b></font></td>
        <td width="36" height="7" align="center" bgcolor="#429AEF"><font color="#FFFFFF"><b>删除</b></font></td>
      </tr>
      <%do while not rs.eof%>
      <tr> 
        <td width="94" height="4" class="tdbg"> 
        <p align="center"><%=rs("id")%></td>
        <td width="88" height="4" class="tdbg"> 
        <p align="center"><%=rs("userid")%> </td>
        <td width="80" height="4" class="tdbg" align="center"><%=rs("name")%></td>
        <td width="142" height="4" class="tdbg" align="center"><%=rs("date")%></td>
        <td width="166" height="20" class="tdbg" align="center"> <%=rs("getmoney")%></td>
        <td width="70" height="4" class="tdbg" align="center"><%=rs("nos")%></td>
        <td width="77" height="4" class="tdbg"> 
        <p align="center"><font color="#000000"> <a href="useredit.asp?userid=<%=rs("userid")%>" target="_blank">进入</a></font></td>
        <td width="36" height="4" class="tdbg"> 
          <p align="center"><a href="deluser.asp?id=<%=rs("id")%>"> 
        </a><a href="deleteuser.asp?id=<%=rs("id")%>"><font color="#000000">删除</font></a></td>
      </tr>
      <% i=i+1
	      if i>=MaxPerPage then exit do
	      rs.movenext
	   loop
		  %>
    </table>
  </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 "<p align=""center""><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 class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form></p>"
       
end function

   rs.close
   set rs=nothing  
   conn.close
   set conn=nothing
  %>
<form method="POST" action="user.asp" align=" center">
  <p align="center"><font color="#FFFFFF"><font color="#000000">用户名:</font> 
    <input type="text" name="userid123" size="20">
    <input name="submit" type="submit" value="查询">
    </font></p>
</form>
<table width="624" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
<div align="center">本栏目只列出付款金额大于20元的会员</div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>

</body>

</html>

⌨️ 快捷键说明

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