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

📄 ifon1.asp

📁 视频点播系统
💻 ASP
字号:

<!--#include file="articleconn.asp"-->
<!--#include file="home1.asp"-->
<!--#include file="security.asp"-->
<%if session("flag")>2 then
    response.write "<br><p align=center>您的操作权限不够!</p>"
    response.end
end if
%>

<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 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" type="text/css" href="css/css.css">
<title>flash管理页</title>
</head>
<style type=text/css>
body  { background:#799AE1; 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:#428EFF;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
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<%
 if request("userid123")="" then
 if request("oklook")="" then
 sql="select * from users where online='1' order by id desc"
 else
 sql="select * from users where oklook="&request("oklook")&" and online='1' order by id desc"
  end if
  
 else
 sql="select * from users where online='1' and  userid 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,"ifon1.asp"
            showContent
            showpage totalput,MaxPerPage,"ifon1.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"ifon1.asp"
            showContent
             showpage totalput,MaxPerPage,"ifon1.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"ifon1.asp"
           showContent
           showpage totalput,MaxPerPage,"ifon1.asp"
	      end if
	   end if
   end if
   sub showContent
       dim i
	   i=0

  %>
<form method="POST" action="ifon1.asp" align=" center">
  <font color="#FFFFFF"><p align="center"><b>用户名:</b><input type="text" name="userid123" size="20">
  <input type="submit" value="查询"></p>
</form>
<p align="center"><a href="wantuserout.asp?want=out">将所有在线会员踢出</a>&nbsp;
<font color="#FF0000">&nbsp;(普通会员以上)</font>  <a href="ifon.asp">显示全部会员</a></p>


<body  leftmargin="0" topmargin="0">

<div align="center">
  <center>
  <p><a href="USER.ASP">全部会员</a>|<a href="ifon1.asp?oklook=0">电影游客</a>|<a href="ifon1.asp?oklook=1">普通会员</a>|<a href="ifon1.asp?oklook=2">白银会员</a>|<a href="ifon1.asp?oklook=3">黄金会员</a>|<a href="ifon1.asp?oklook=4">钻石会员</a><br><br>
  <table border="0" cellspacing="1" width="624" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="4" height="31" style="border-collapse: collapse" bordercolor="#111111">
    <tr bgcolor="#CCCCCC">
      <td width="55" bgcolor="#CCCCCC" height="5" align="center"><b>用户编号</b></td>
      <td width="66" bgcolor="#CCCCCC" height="5" align="center"><b>用户名</b></td>
      <td width="69" bgcolor="#CCCCCC" height="18" align="center"><b>姓名</b></td>
      <td width="57" bgcolor="#CCCCCC" height="18" align="center"><b>登陆次数</b></td>
      <td width="55" bgcolor="#CCCCCC" height="18" align="center"><b>是否在线</b></td>
      <td width="69" bgcolor="#CCCCCC" height="5" align="center"><b>详细信息</b></td>
      <td width="38" align="center" bgcolor="#CCCCCC" height="5"><b>踢出</b></td>
    </tr></font>
    <%do while not rs.eof%>
    <tr>
      <td height="4" width="55" bgcolor="#FFFFFF">
      <p align="center"><%=rs("id")%></td>
      <td height="4" width="66" bgcolor="#FFFFFF">
      <p align="center"><%=rs("userid")%> </td>
      <td width="69" height="4" bgcolor="#FFFFFF" align="center"><%=rs("name")%></td>
      <td width="57" height="4" bgcolor="#FFFFFF" align="center"><%=rs("nos")%></td>
      <td width="55" height="4" bgcolor="#FFFFFF" align="center">
      <% 	usid=rs("userid")
     set rs1=server.createobject("adodb.recordset")
sql1="select online from users where userid='"&usid&"'"
rs1.open sql1,conn,1,3

if rs1("online")=0 then

%>不在线<%else  
	
rs1("online")=1

	  %>在线<%end if%></td>
      <td width="69" height="4" bgcolor="#FFFFFF">
      <p align="center"><font color="#000000">
      <a href="useredit.asp?userid=<%=rs("userid")%>" target="_blank">进入</a></font></td>
      <td width="38" height="4" bgcolor="#FFFFFF">
      <a href="wantuserout.asp?userid=<%=rs("userid")%>">踢出</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&"&oklook="&request("oklook")&">"
    if CurrentPage<2 then
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;"
  else
    response.write "<a href="&filename&"?page=1&typeid="&typeid&"&oklook="&request("oklook")&">首页</a>&nbsp;"
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&"&oklook="&request("oklook")&">上一页</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&"&oklook="&request("oklook")&">"
    response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&"&oklook="&request("oklook")&">尾页</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
  %>

</body>

</html>

⌨️ 快捷键说明

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