📄 user_cx.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<% If Session("MM_Username") <> "admin" Then Response.Write("<script Language=Javascript>alert('你不是管理员,不能使用此模块的管理系统。');location.href = 'javascript:history.go(-1)';</script>") end if %>
<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
Session.Contents.Remove("MM_Username")
Session.Contents.Remove("MM_UserAuthorization")
MM_logoutRedirectPage = "exit.asp"
' redirect with URL parameters (remove the "MM_Logoutnow" query param).
if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage = CStr(Request.ServerVariables("URL"))
If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_newQS = "?"
For Each Item In Request.QueryString
If (Item <> "MM_Logoutnow") Then
If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
End If
Next
if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
End If
Response.Redirect(MM_logoutRedirectPage)
End If
%>
<!--#include file="myzb.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../superlogin.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_myzb_STRING
Recordset2.Source = "SELECT * FROM usero ORDER BY id DESC"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<HTML>
<HEAD>
<TITLE>管理中心</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #000000;
}
a {
font-size: 12px;
color: #0033FF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0033FF;
}
a:hover {
text-decoration: underline;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.id; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' 都不写,我看你是快了\n'; }
} if (errors) alert('你打字结巴吗?!你想查询也要输入查询的关键字啊!'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (未标题-2) -->
<div align="center">
<TABLE WIDTH=773 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="images/index_01.gif" WIDTH=304 HEIGHT=100 ALT=""></TD>
<TD>
<IMG SRC="images/index_02.gif" WIDTH=26 HEIGHT=100 ALT=""></TD>
<TD>
<IMG SRC="images/index_03.gif" WIDTH=303 HEIGHT=100 ALT=""></TD>
<TD>
<IMG SRC="images/index_04.gif" WIDTH=140 HEIGHT=100 ALT=""></TD>
</TR>
</TABLE>
<table width="773" border="1">
<tr align="center" valign="bottom">
<td scope="col"><div align="center"><a href="user.asp">用户管理</a></div></td>
<td scope="col"><div align="center"><a href="sp.asp">商品管理</a></div></td>
<td scope="col"><div align="center"><a href="qa.asp">提问管理</a></div></td>
<td scope="col"><div align="center"><a href="jh.asp">精华管理</a></div></td>
<td scope="col"><div align="center"><a href="download.asp">下载管理</a></div></td>
<td scope="col"><div align="center"><a href="gb.asp">留言管理</a></div></td>
<td scope="col"><div align="center"><a href="../wz/admin" target="_blank">发布新闻</a></div></td>
<td scope="col"><div align="center"><a href="ok.asp">退出系统</a></div></td>
</tr>
</table>
<table width="773" border="0">
<tr>
<td scope="col"><div align="center"><img src="images/undo.gif" width="16" height="16"><a href="user.asp">用户管理</a> <img src="images/undo.gif" width="16" height="16"><a href="user_cx.asp">用户查询</a> </div></td>
</tr>
<tr>
<form name="form1" method="post" action="user_cx_list.asp">
<td scope="col">
<div align="center">
<table width="437" border="0">
<tr>
<td width="157" height="37" scope="col"><div align="right">查询字段</div></td>
<td width="270" scope="col"><select name="zd" id="zd">
<option value="dengluming" selected>用户名</option>
<option value="xingbie">性别</option>
<option value="danwei">单位</option>
<option value="mb">会员</option>
<option value="ripadd">注册IP</option>
<option value="lipadd">登陆IP</option>
<option value="xingming">真实姓名</option>
</select></td>
</tr>
<tr>
<td height="36"><div align="right">查询关键字</div></td>
<td><input name="tj" type="text" id="关键字" size="30"></td>
</tr>
<tr>
<td><div align="right"></div></td>
<td><input name="Submit" type="submit" onClick="MM_validateForm('tj','','R');return document.MM_returnValue" value="查询">
<input type="reset" name="Submit" value="重置"></td>
</tr>
</table>
</div></td></form>
</tr>
<tr>
<td><div align="center">
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_myzb_STRING
Recordset1.Source = "select * from usero where dengluming='"&Session("MM_Username")&"'and mb='1'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
if Recordset1.eof then
response.Write("<a href="&"http://www.bdqilu.net target="&"_blank"&""&">"&"淄博日丰电脑商行制作"&"</a>")
else
while not Recordset1.eof
response.write("<script Language=Javascript>alert('你是普通用户,不能使用此系统。');location.href = 'javascript:history.go(-1)';</script>")
Recordset1.movenext
wend
end if
%>
</div></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</div>
</BODY>
</HTML>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -