📄 default.asp
字号:
<!--#include file="../Session.asp"-->
<head>
<title>会员列表</title>
<link href="../../css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="50" align="center" valign="middle" class="tdstyle"><strong><font color="#000000" size="3">会员管理</font></strong></td>
</tr>
<form name="form1" method="post" action="?Act=Yes">
<tr>
<td height="30" align="center" valign="middle" class="tdstyle"> 按会员账号、真实姓名或电话查询:
<input name="key" type="text" class="input1"><input name="Submit" type="submit" class="button" value="查 询"></td>
</tr>
</form>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="middle">
<td width="15%" height="25" align="center" class="tdstyle"><strong>会员ID</strong></td>
<td width="15%" align="center" class="tdstyle"><strong>会员账号</strong></td>
<td width="15%" align="center" class="tdstyle"><strong>真实姓名</strong></td>
<td width="20%" align="center" class="tdstyle"><strong>联系电话</strong></td>
<td width="15%" align="center" class="tdstyle"><strong>购物总额</strong></td>
<td width="10%" align="center" class="tdstyle"><strong>管 理</strong></td>
<td width="10%" align="center" class="tdstyle"><strong>删 除</strong></td>
</tr>
<%
if request("Act")="Yes" then
sql="select * from Member where Subscibe=False and member like '%"&request("key")&"%' or name like '%"&request("key")&"%' or tel like '%"&request("key")&"%' order by id DESC"
else
sql="select * from Member where Subscibe=False order by id DESC"
end if
Set rs = server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.write "<tr valign=middle><td width=100% height=25 colspan=7 align=center class=text>暂无注册会员</td></tr>"
end if
dim MemberId
rs.pagesize = 20
if request("page")="" or IsNumeric(request("page"))=False then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if
i=1
while not rs.eof and i<=rs.pagesize
%>
<tr valign="middle"><%Member=rs("Member")%>
<td height="20" align="center" class="tdstyle"><%=rs("Id")%></td>
<td align="center" class="tdstyle"><%=rs("Member")%></td>
<td align="center" class="tdstyle"><%=rs("Name")%></td>
<td align="center" class="tdstyle"><%=rs("Tel")%></td>
<td align="center" class="tdstyle"><%=rs("MoneySum")%></td>
<td align="center" class="tdstyle"><input name="submit" type="button" class="button3" value="管 理" onClick="window.location='Member.asp?Member=<%=Member%>&page1=<%=page%>'"></td>
<td align="center" class="tdstyle"><input name="submit" type="button" class="button2" value="删 除" onClick="window.location='Del.asp?Member=<%=Member%>&page=<%=page%>'"></td>
</tr>
<%
i=i+1
rs.MoveNext
wend %>
<tr valign="middle">
<td height="30" colspan="7" align="center" class="tdstyle">
<%
if rs.recordcount<>0 then
if page-1 mod 6=0 then
p=(page-1) \ 6
else
p=(page-1) \ 6
end if
response.write "<form name=form method=post action=?>页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
" 分页:"
if p*6>0 then response.write "<a href='?page="&p*6&"' title=上6页>[<<]</a> "
uming_i=1
for ii=p*6+1 to P*6+6
if ii=page then
response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
else
response.write "<a href='?page="&ii&"'>["+Cstr(ii)+"]</a> "
end if
if ii=rs.pagecount then exit for
uming_i=uming_i+1
next
if ii<=rs.pagecount and uming_i=7 then response.write "<a href='?page="&ii&"' title=下6页>[>>]</a> "
response.write(" 跳页:<input type=text name=page size=2 maxlength=3 class=input1> <input type=submit name=Submit2 value=Go class=button></form>")
end if%>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -