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

<html><!--#include file="../checkpost.asp"-->

<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 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" type="text/css" href="css/css.css">
<title>会员在线状态查询</title>
</head>
<style type=text/css>
body  { background:#336699; margin:0px; font:9pt 宋体; }
table  { border:0px; }
td  { font:normal 12px 宋体; }
img  { vertical-align:bottom; border:0px; }
a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover  { color:#000000;text-decoration:underline; }
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title  { }
.menu_title span  { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<% 
   MaxPerPage=30
   dim totalPut   
   dim CurrentPage
   dim TotalPages
   dim i,j
   dim usid
   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(request("oklook")) then
	oklook=request("oklook")
   else
	oklook=""
   end if
%>
<body style="background-color: #DDF3EC">

<table border="0" width="95%" cellspacing="0" cellpadding="0">
</table>
<%
 if request("userid123")="" then
 if request("oklook")="" then
 sql="select * from online order by id desc"
 else
 sql="select * from online where grad="&request("oklook")&" order by id desc"
  end if
  
 else
 sql="select * from online where username like '%"&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,"ifon.asp"
            showContent
            showpage totalput,MaxPerPage,"ifon.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"ifon.asp"
            showContent
             showpage totalput,MaxPerPage,"ifon.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"ifon.asp"
           showContent
           showpage totalput,MaxPerPage,"ifon.asp"
	      end if
	   end if
   end if
   sub showContent
       dim i
	   i=0

  %>
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" height="30">
      <tr>
        <td bgcolor=f3f3f3 align="center" height="30">
<form method="POST" action="ifon.asp" align=" center">
<b>用户名：</b><input type="text" name="userid123" size="20">
  <input type="submit" value="查询"></form>
        </td>
      </tr>
    </table>
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" height="30">
      <tr>
        <td bgcolor=f3f3f3 align="center" height="30">
<a href="wantuserout.asp?want=out">将所有在线会员踢出</a>
        </td>
      </tr>
    </table>
<center>
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" height="30">
	<tr>
		<td bgcolor=ffffff align="center" height="30"><a href="USER.ASP">全部会员</a>|<a href="ifon.ASP?oklook='电影游客'">电影游客</a>|<a href="ifon.ASP?oklook='计点会员'">计点会员</a>|<a href="ifon.ASP?oklook='包月会员'">包月会员</a>|<a href="ifon.ASP?oklook='包季会员'">包季会员</a>|<a href="ifon.ASP?oklook='包年会员'">包年会员</a>|<a href="ifon.ASP?oklook='永久会员'">永久会员</a>
		</td>
	</tr>
</table>
<table border="0" cellspacing="1" width="600" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="4" height="31" style="border-width:1px; border-collapse: collapse" bordercolor="#008080">
	<tr bgcolor="#f3f3f3">
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>用户名</b></td>
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>姓名</b></td>
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>活动时间</b></td>
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>最后活动IP</b></td>
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>等级</b></td>
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>详细信息</b></td>
		<td align="center" height="25" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<b>踢出</b></td>
	</tr>
      <%do while not rs.eof%>
      <tr height="25">
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080"><%=rs("username")%></td>
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080"><%=rs("name")%></td>
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080"><%=rs("lastime")%></td>
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080"><%=rs("userip")%></td>
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080"><%=rs("grad")%></td>
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<font color="#000000">
		<a href="useredit.asp?userid=<%=rs("username")%>" target="_blank">进入</a></font></td>
		<td  bgcolor="#FFFFFF" align="center" style="border-style: solid; border-width: 1px" bordercolor="#008080">
		<a href="wantuserout.asp?userid=<%=rs("username")%>">踢出</a></td>
	</tr>
      <% i=i+1
	      if i>=MaxPerPage then exit do
	      rs.movenext
	   loop
		  %>
    </table></center>
<%
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
%>

<div align="center">

<table border="0" bgcolor="#008080" cellspacing="0" height="25" width="600">
<form method=Post action="<%=filename%>?typeid=<%=typeid%>&oklook=<%=oklook%>">
<tr><td>
<center><font color="#FFFFFF">共有<b><%=totalnumber%></b>个会员&nbsp;&nbsp;&nbsp;当前:第</font><strong><font color="#FFFFFF"><%=CurrentPage%></font></strong><font color="#FFFFFF">页/共</font><strong><font color="#FFFFFF"><%=n%></font></strong><font color="#FFFFFF">页</font></center>                                                     
<td><div align="right">
<font color="#FFFFFF">
<%if CurrentPage<2 then%>
首页&nbsp;上一页&nbsp;&nbsp;&nbsp;                                                     
<%else%>
</font>
<a class=left href="<%=filename%>?typeid=<%=typeid%>&page=1&oklook=<%=oklook%>">
<font color="#FFFFFF">首页</font></a><font color="#FFFFFF">&nbsp;                                                     
</font>                                                     
<a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=CurrentPage-1%>&oklook=<%=oklook%>">
<font color="#FFFFFF">上一页</font></a><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;                                                     
<%
end if
if n-currentpage<1 then
%>
下一页&nbsp;尾页&nbsp;&nbsp;&nbsp;                                                     
<%else%>
</font>
<a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=(CurrentPage+1)%>&oklook=<%=oklook%>">
<font color="#FFFFFF">下一页</font></a><font color="#FFFFFF">&nbsp;                                                     
</font>                                                     
<a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=n%>&oklook=<%=oklook%>">
<font color="#FFFFFF">尾页</font></a><font color="#FFFFFF">&nbsp;                                                     
<%end if%>
</font>
<td align="center"><font color="#FFFFFF"><select name="page" onchange="javascript:submit()">
<%for i = 1 to n%>                                                                
<option value="<%=i%>" <%if cint(CurrentPage)=cint(i) then%> selected <%end if%>>第<%=i%>页</option>
<%next%></select></font></td></div></td></td>
</tr></form></table>      
</div>
      
<% 
end function
%>
<%
sub gotopage
end sub
%>

</body>

</html>
