📄 finduser.asp
字号:
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links
Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev
Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam
MM_keepMove = MM_keepBoth
MM_moveParam = "index"
' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
MM_moveParam = "offset"
If (MM_keepMove <> "") Then
MM_paramList = Split(MM_keepMove, "&")
MM_keepMove = ""
For MM_paramIndex = 0 To UBound(MM_paramList)
MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
End If
Next
If (MM_keepMove <> "") Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If
' set the strings for the move to links
If (MM_keepMove <> "") Then
MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"
End If
MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = MM_urlStr & "0"
MM_moveLast = MM_urlStr & "-1"
MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
MM_movePrev = MM_urlStr & "0"
Else
MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 20
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<HTML>
<HEAD>
<TITLE>未标题-1</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<link href=../images/k.css rel=stylesheet>
<style type="text/css">
.mm_botton{
border-top: #c4cccc 3px double;
border-right: #acb5b5 3px double;
border-bottom: #6f7777 3px double;
border-left: #acb5b5 3px double;
background: url(images/background_form_element.gif) #fefefe repeat-x;
font:12px tahoma;
padding-top:2px;
padding-bottom:2px;
padding-left:2px;
padding-right:3px;
text-decoration: none;
color:#666666;
}
.mm_botton:link{
color:#666666;
}
.mm_botton:hover{
border-top: #aedf9a 3px double;
border-right: #94da78 3px double;
border-bottom: #6ab94b 3px double;
border-left: #94da78 3px double;
text-decoration:none;
color:#999999;
}
<!--
body {
background-image: url(../images/bg.gif);
}
.style1 {
font-size: 12px;
color: #000000;
}
body,td,th {
font-size: 12px;
}
a:link {
color: #FF0000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF0000;
}
a:hover {
text-decoration: underline;
color: #0000FF;
}
a:active {
text-decoration: none;
color: #0000FF;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
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('发现错误:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (未标题-1) -->
<TABLE WIDTH=508 height="234" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR align="center" valign="middle">
<TD height="13" COLSPAN=3><span class="style1">.......................................................................................</span></TD>
</TR>
<TR>
<TD width="204" height="132" align="center" valign="top"><div align="center"><img src="../images/finduser.gif" width="200" height="130"></div></TD>
<TD width="318" colspan="2" align="center" valign="top"><form action="finduser.asp" method="post" name="form1">
<p> </p>
<p>支持模糊查询</p>
<p>登陆名
<input name="b7" type="text" id="登陆名">
<input name="Submit" type="submit" class="mm_botton" onClick="MM_validateForm('b7','','R');return document.MM_returnValue" value="查找">
</p>
<p> </p>
</form></TD>
</TR>
<TR>
<TD height="89" colspan="3" align="center" valign="top"><table width="506" border="0">
<tr bgcolor="#D7D7D7">
<td width="39" scope="col"><div align="center">头像</div></td>
<td width="165" scope="col"><div align="center">用户名</div></td>
<td width="161" scope="col"><div align="center">最后登陆时间</div></td>
<td width="123" scope="col"><div align="center">用户权限</div></td>
</tr>
</table>
<div id="Layer1" style="position:absolute; width:251px; height:29px; z-index:1; left: 237px; top: 104px;">
<table width="229" border="0">
<tr align="center" valign="middle">
<td width="210" height="38" scope="col"><div align="center">总共找到<%=(Recordset1_total)%>个符合查询条件的用户</div> <div align="center"></div></td>
</tr>
</table>
</div>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table width="508" border="0">
<tr>
<td width="41" align="center" valign="middle" scope="col"><div align="right"></div>
<div align="center"><img src="<%=(Recordset1.Fields.Item("face").Value)%>"></div></td>
<td width="162" scope="col"><div align="center"><a href="#" target="_self" onClick="window.open('user.asp?b6=<%=(Recordset1.Fields.Item("dengluming").Value)%>','callwindow','top=0,left=0,width=390,height=300,status=no,resizable=no,scrollbars=no')"><%=(Recordset1.Fields.Item("dengluming").Value)%></a></div></td>
<td width="162" scope="col"><div align="center"><%=(Recordset1.Fields.Item("zhdl").Value)%></div></td>
<td width="125" height="38" scope="col"><div align="center"><%qx=(Recordset1.Fields.Item("mb").Value)
if qx=1 then Response.Write("<img src="&"../images/pthy.gif"&" alt="&"这丫的是普通会员 width="&"68"&" height="&"21"&">")
if qx>1 then Response.Write("<img src="&"../images/rzhy.gif"&" alt="&"这丫的是认证会员 width="&"68"&" height="&"21"&">")
%></div></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%></TD>
</TR>
</TABLE>
<table width="521" border="0">
</table>
<table width="522" border="0">
<tr>
<th scope="col"><div align="center"></div> <div align="center">
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>"><img src="../images/First.gif" border=0></a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="31%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>"><img src="../images/Previous.gif" border=0></a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>"><img src="../images/Next.gif" border=0></a>
<% End If ' end Not MM_atTotal %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>"><img src="../images/Last.gif" border=0></a>
<% End If ' end Not MM_atTotal %>
</td>
</tr>
</table>
</div></th>
</tr>
</table>
</BODY>
</HTML>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -