ifon.asp
资源名称:qnmov30.rar [点击查看]
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:7k
源码类别:
家庭/个人应用
开发平台:
ASP/ASPX
- <!--#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=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
- %>
- <!--#include file="top1.asp"-->
- <%
- 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
- %>
- <form method="POST" action="ifon.asp" align=" center">
- <p align="center"><b>用户名:</b><input type="text" name="userid123" size="20">
- <input type="submit" value="查询"></p>
- </form>
- <div align="center">
- <center>
- <table width="332" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="332"><p align="center"><a href="wantuserout.asp?want=out">将所有在线用户踢出</a>
- (普通会员以上)<br>
- <br>
- <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> </p>
- </td>
- </tr>
- </table>
- <p>
- </p>
- <table border="0" cellspacing="1" width="100%" class="border" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="2" height="31" style="border-collapse: collapse" bordercolor="#111111">
- <tr bgcolor="#429AEF">
- <td width="78" height="5" align="center"><font color="#FFFFFF"><b>用户编号</b></font></td>
- <td width="108" height="5" align="center"><font color="#FFFFFF"><b>用户名</b></font></td>
- <td width="109" align="center"><div align="center"><font color="#FFFFFF"><b>姓名</b></font></div></td>
- <td width="109" align="center"><div align="center"><font color="#FFFFFF"><b>登录次数</b></font></div></td>
- <td width="133" align="center"><font color="#FFFFFF"><b>最后活动时间</b></font></td>
- <td width="133" align="center"><font color="#FFFFFF"><b>最后活动IP</b></font></td>
- <td width="137" height="18" align="center"><font color="#FFFFFF"><b>会员等级</b></font></td>
- <td width="73" height="5" align="center"><font color="#FFFFFF"><b>详细信息</b></font></td>
- <td width="65" align="center" height="5"><font color="#FFFFFF"><b>踢出</b></font></td>
- </tr>
- <%do while not rs.eof%>
- <tr>
- <td height="4" width="78" class="tdbg"> <p align="center"><%=rs("id")%></td>
- <td height="4" width="108" class="tdbg"> <p align="center"><%=rs("username")%>
- </td>
- <td width="109" class="tdbg" align="center"><%=rs("name")%></td>
- <td width="109" class="tdbg" align="center"><%=rs("times")%></td>
- <td width="133" class="tdbg" align="center"><%=rs("lastime")%></td>
- <td width="133" class="tdbg" align="center"><%=rs("userip")%></td>
- <td width="137" height="4" class="tdbg" align="center"><%=rs("grad")%></td>
- <td width="73" height="4" class="tdbg"> <p align="center"><font color="#000000">
- </a><a href="useredit.asp?userid=<%=rs("username")%>" target="_blank">进入</a></font></td>
- <td width="65" height="4" class="tdbg"> <div align="center"><a href="wantuserout.asp?userid=<%=rs("username")%>">踢出</a></div></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&"&oklook="&request("oklook")&">"
- if CurrentPage<2 then
- response.write "<font color='#000080'>首页 上一页</font> "
- else
- response.write "<a href="&filename&"?page=1&typeid="&typeid&"&oklook="&request("oklook")&">首页</a> "
- response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&"&oklook="&request("oklook")&">上一页</a> "
- end if
- if n-currentpage<1 then
- response.write "<font color='#000080'>下一页 尾页</font>"
- else
- response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&"&oklook="&request("oklook")&">"
- response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&"&oklook="&request("oklook")&">尾页</a>"
- end if
- response.write "<font color='#000080'> 页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
- response.write "<font color='#000080'> 共<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="¤tpage&">"
- 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
- %>
- </body>
- </html>