?? 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 + -