?? admin_enuser.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="../unhtml.asp"-->
<!--#include file="../ubb.asp"-->
<%
if session("login")<>"yes" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您還未登陸或者超時,請重登陸!');"&"window.location.href = '../'"&" </script>"
response.end
end if
%>
<script language="javascript">
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css.css" type="text/css">
<title>企業(yè)用戶管理</title>
<base target="_self">
</head>
<body bgcolor="#CAD7F7" vlink="#000000">
<table border="0" width="100%" cellspacing="0" cellpadding="4" bgcolor="#FFFFFF" style="border:1px solid #000000; " height="229">
<tr>
<td background="images/admin_bg_1.gif" height="25" width="709" colspan="5">
<p align="center"><font size="2" color="#FFFFFF"><b>企業(yè)用戶管理</b></font></td>
</tr>
<tr>
<td bgcolor="#F1F3F5" height="26" align="center" width="430">
<form method="POST" action="admin_search_enuser.asp">
<p align="left">企業(yè)用戶搜索:<select size="1" name="how">
<option value="1" selected>按帳號關(guān)鍵子</option>
<option value="2">按企業(yè)名關(guān)鍵子</option>
</select>
<input type="text" name="what" size="15" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<input type="submit" value="搜索" name="B3"></p>
</form>
</td>
<td bgcolor="#F1F3F5" height="26" align="center" width="67" valign="top">
<b>分類顯示:</b></td>
<td bgcolor="#F1F3F5" height="26" align="center" width="60" valign="top">
<a href="admin_enuser.asp?class=1">高級用戶</a></td>
<td bgcolor="#F1F3F5" height="26" align="center" width="60" valign="top">
<a href="admin_enuser.asp?class=2">被鎖定用戶</a></td>
<td bgcolor="#F1F3F5" height="26" align="center" width="60" valign="top">
<a href="admin_enuser.asp">全部顯示</a></td>
</tr>
<tr>
<td bgcolor="#F1F3F5" height="100%" align="center" width="709" colspan="5">
<%
if request("class")="1" then
sql="select id,ac,name,rdate,lock from en_user where vip=true order by id desc"
else
if request("class")="2" then
sql="select id,ac,name,rdate,lock from en_user where lock=true order by id desc"
else
sql="select id,ac,name,rdate,lock from en_user order by id desc"
end if
end if
rs.open sql,conn,1,1
if rs.recordcount=0 then
response.write "暫時沒有注冊用戶!"
else
rs.pagesize=20
if request("action")="n" then
session("page")=session("page")+1
else
if request("action")="p" then
session("page")=session("page")-1
else
if request("action")="f" then
session("page")=1
else
if request("action")="l" then
session("page")=rs.pagecount
else
if isnumeric(request("page1"))=true then
session("page")=clng(request("page1"))
else
session("page")=1
end if
end if
end if
end if
end if
if session("page")>rs.pagecount then session("page")=rs.pagecount
if session("page")<1 then session("page")=1
%>
<table border="0" width="650" cellspacing="0" cellpadding="0" height="25">
<tr>
<td width="104">
相關(guān)用戶<font color="#FF0000"><%=rs.recordcount%></font>人</td>
<td width="112">
<p align="center">當(dāng)前頁碼:<font color="#FF0000"><%=session("page")%></font>/<%=rs.pagecount%></td>
<td width="248">
<p align="center">< <a href="admin_enuser.asp?action=f&class=<%=request("class")%>">
首頁</a>
<a href="admin_enuser.asp?action=p&class=<%=request("class")%>">上一頁</a>
<a href="admin_enuser.asp?action=n&class=<%=request("class")%>">下一頁</a>
<a href="admin_enuser.asp?action=l&class=<%=request("class")%>">尾頁</a> ></td>
<td width="186">
<form method="POST" action="admin_enuser.asp?class=<%=request("class")%>">
<p align="center">跳轉(zhuǎn)到
<input type="text" name="page1" size="5" style="border: 1px solid #000000">
頁
<input type="submit" value="提交" name="B1"></p>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="100%" valign="top" width="709" colspan="5">
<table border="0" width="709" cellspacing="0" cellpadding="0" height="24">
<tr>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="41" height="25" bgcolor="#E5E5E5">
<p align="center"><b>編號</b></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="54" height="25" bgcolor="#FFFFFF">
<p align="center"><b>帳號</b></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="131" height="25" bgcolor="#E5E5E5">
<p align="center"><b>公司名</b></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="24" height="25">
<p align="center"><b>VIP</b></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="26" height="25" bgcolor="#E5E5E5">
<p align="center"><b>鎖定</b></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="121" height="25" bgcolor="#FFFFFF">
<p align="center"><b>注冊時間</b></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="214" align="center" height="25" colspan="5" bgcolor="#E5E5E5">
<b>操 作</b></td>
</tr>
<%
rs.absolutepage=session("page")
for ii=1 to rs.pagesize
%>
<tr>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="41" bgcolor="#E5E5E5" height="25" align="center">
<p align="center"><%=rs("id")%></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="54" height="25" align="center">
<%=rs("ac")%></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="131" height="25" bgcolor="#E5E5E5" align="center">
<%
if rs("name")<>"" then
%>
<a target="_blank" href="../company.asp?id=<%=rs("id")%>"><%=rs("name")%></a></td>
<%
else
response.write "×"
end if
%>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="24" height="25" align="center">
?</td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="26" height="25" bgcolor="#E5E5E5" align="center">
<p align="center"><%
if rs("lock")=true then
response.write "<font color='#FF0000'>鎖定</font>"
else
response.write " "
end if
%></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="121" height="25" align="center">
<p align="center"><%=rs("rdate")%></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="30" align="center" height="25" bgcolor="#E5E5E5">
<a target="_blank" href="../company.asp?id=<%=rs("id")%>">
查看</a></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="54" align="center" height="25" bgcolor="#E5E5E5">
<a href="JavaScript:openScript('admin_sendmessage.asp?tid=<%=rs("id")%>&ttype=2',450,300)">發(fā)送信息</a></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="59" align="center" height="25" bgcolor="#E5E5E5">
<a href="JavaScript:openScript('admin_user_ac.asp?id=<%=rs("id")%>&ttype=2',450,370)">帳戶設(shè)置</a></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="52" align="center" height="25" bgcolor="#E5E5E5">
<a target="_blank" href="gocontrol.asp?id=<%=rs("id")%>&ac=<%=rs("ac")%>&ttype=2">詳細(xì)修改</a></td>
<td style="border-bottom: 1px dotted #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="30" align="center" height="25" bgcolor="#E5E5E5">
<a onclick="{if(confirm('警告:此操作將刪除用戶〈<%=rs("ac")%>〉在本站的所有數(shù)據(jù)!繼續(xù)嗎?')){return true;}return false;}" href="admin_del_user.asp?id=<%=rs("id")%>&ttype=2"><span style="text-decoration: none">刪除</a></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
%>
</table>
</td>
</tr>
<tr>
<td height="100%" align="center" width="709" colspan="5">
<table border="0" width="650" cellspacing="0" cellpadding="0" height="25">
<tr>
<td width="104">
共有用戶<font color="#FF0000"><%=rs.recordcount%></font>人</td>
<td width="112">
<p align="center">當(dāng)前頁碼:<font color="#FF0000"><%=session("page")%></font>/<%=rs.pagecount%></td>
<td width="248">
<p align="center">< <a href="admin_enuser.asp?action=f&class=<%=request("class")%>">
首頁</a>
<a href="admin_enuser.asp?action=p&class=<%=request("class")%>">上一頁</a>
<a href="admin_enuser.asp?action=n&class=<%=request("class")%>">下一頁</a>
<a href="admin_enuser.asp?action=l&class=<%=request("class")%>">尾頁</a> ></td>
<td width="186">
<form method="POST" action="admin_enuser.asp?class=<%=request("class")%>">
<p align="center">跳轉(zhuǎn)到
<input type="text" name="page1" size="5" style="border: 1px solid #000000">
頁
<input type="submit" value="提交" name="B2"></p>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
rs.close
set rs=nothing
set conn=nothing
end if
%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -