?? notmemberlist.asp
字號(hào):
<!--#include file="../include/bkconn.asp"-->
<!--#include file="checkUser.asp"-->
<%
dim rs,sql
dim page,maxPerPage,namestatus
dim id
id=request("id")
if id<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from member where 1=1 and id="&id
rs.open sql,conn,2,2
if not rs.eof then
rs("class")=0
rs.update%>
<script>
alert ("成功通過,成為中級(jí)會(huì)員!");
</script>
<%end if
set rs=nothing
end if
maxPerPage=10 '每頁顯示的記錄數(shù)
myKeyword=Request("myKeyword")
page=Request("page")
namestatus=request("namestatus")
Function selected(firstval,secondval)
If firstval=secondval then
selected="selected"
End if
End Function
if (page="" or isempty(page)) then page=1
thisUrl="notmemberList.asp?myKeyword="&myKeyword&"&"&"namestatus="&namestatus
session("adminOldUrl")=thisUrl&"&page="&page
set rs=server.createobject("adodb.recordset")
sql="select * from member where 1=1"
if not (myKeyword="" or isempty(myKeyword) ) then
if namestatus="name" then
sql=sql&" and name like '%"&myKeyword&"%' "
else
sql=sql&" and memberid like '%"&myKeyword&"%'"
end if
end if
sql=sql&" and class=-1 order by id"
'response.write sql
'response.End
rs.open sql,conn,1,1
rs.pagesize=MaxPerPage
%>
<html>
<head>
<title>會(huì)員管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../main.css" type="text/css">
<script language=Javascript>
<!--
function jumpTo(i){
if(i==1){
this.document.location="<%=thisUrl%>";}
if(i==2){
this.document.location="<%=thisUrl%>&page=<%=page-1%>";}
if(i==3){
this.document.location="<%=thisUrl%>&page=<%=page+1%>";}
if(i==4){
this.document.location="<%=thisUrl%>&page=<%=rs.pageCount%>";}
}
//-->
</script>
</head>
<body bgcolor="#9CC7EF" text="#000000" leftmargin="0" topmargin="0">
<div align="center"><br>
非會(huì)員管理 </div>
<table width="98%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="4" align="center">
<tr>
<form method="post" action="memberList.asp" name="form1">
<td colspan="7" bgcolor="#4296E7">
<div align="right"><font color="#FFFFFF">關(guān)鍵詞</font>
<input type="text" name="myKeyword" size="16" value="<%=myKeyword%>">
<select name="namestatus" >
<option value="memberid" <%=selected(namestatus,"memberid")%> >非會(huì)員帳號(hào)</option>
<option value="name" <%=selected(namestatus,"name")%> >非會(huì)員姓名</option>
</select>
<input type="submit" name="Submit" value="搜索">
</div>
</td>
</form>
</tr>
<tr bgcolor="#5EA5E6">
<td width="13%" nowrap>
<div align="center"><font color="#FFFFFF"> 非會(huì)員帳號(hào)</font></div>
</td>
<td width="15%" nowrap>
<div align="center"><font color="#FFFFFF">非會(huì)員姓名</font></div>
</td>
<td width="5%" nowrap>
<div align="center"><font color="#FFFFFF">性別</font></div>
</td>
<td width="20%" nowrap>
<div align="center"><font color="#FFFFFF">EMAIL</font></div>
</td>
<td width="24%" nowrap>
<div align="center"><font color="#FFFFFF">電話</font></div>
</td>
<td width="18%" nowrap>
<div align="center"><font color="#FFFFFF">郵政編碼</font></div>
</td>
<td width="5%" nowrap>
<div align="center"><font color="#FFFFFF">通過</font></div>
</td>
</tr>
<%
dim rsID
i=1
if not (rs.eof or err) then rs.move (page-1)*maxPerPage
do while not (rs.eof or err)
rsID=rs("id")
%>
<tr >
<td width="13%"title="點(diǎn)擊查看具體信息" style="cursor:hand" onClick="Javascript:window.location='memberMod.asp?id=<%=rs("id")%>'" ><%=rs("memberID")%> </td>
<td width="15%" title="點(diǎn)擊查看具體信息" style="cursor:hand" onClick="Javascript:window.location='memberMod.asp?id=<%=rs("id")%>'" ><%=rs("name")%> </td>
<td width="5%"><%=rs("sex")%> </td>
<td width="20%"><%=rs("email")%> </td>
<td width="24%"><%=rs("phone")%> </td>
<td width="18%"><%=rs("code")%> </td>
<td width="5%" bgcolor="#009999" title="點(diǎn)擊通過" style="cursor:hand" onClick="Javascript:window.location='notmemberlist.asp?id=<%=rs("id")%>'" >
<div align="center"><font color="#000000">通過</font></div>
</td>
</tr>
<%
i=i+1
if i>maxPerPage then exit do
rs.moveNext
loop
%>
<tr bgcolor="#4296E7">
<td colspan="7">
<div align="right"><font color=#FFFFFF><%=rs.recordCount%> 項(xiàng) 第<%=page%>/<%=rs.pageCount%>
頁 </font>
<%if page>1 then%>
<input type="button" name="Submit3" value="首頁" onClick="Javascript:jumpTo(1)">
<input type="submit" name="Submit4" value="上頁" onClick="Javascript:jumpTo(2)">
<%else%>
<input type="button" name="Submit3" value="首頁" disabled>
<input type="submit" name="Submit4" value="上頁" disabled>
<%end if
if rs.recordCount>page*maxPerPage then%>
<input type="submit" name="Submit5" value="下頁" onClick="Javascript:jumpTo(3)">
<input type="submit" name="Submit6" value="末頁" onClick="Javascript:jumpTo(4)">
<%else%>
<input type="submit" name="Submit5" value="下頁" disabled>
<input type="submit" name="Submit6" value="末頁" disabled>
<%end if%>
</div>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -