<!--#include file="../../here99login/0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<title>会员列表</title>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  <form name="form1" method="post" action="?s=yes"><tr>
      <td height="35" align="center" valign="middle"> 会员查找： 
        <input name="key" type="text" class="wenbenkuang">
  <input name="Submit" type="submit" class="go-wenbenkuang" value="OK，给我搜">
        请输入要查询的会员关键字如：会员账号、真实姓名或电话。 </td>
  </tr></form>
</table>
<table width="650" align="center">
  <tr valign="middle"> 
          <td width="100" align="center" bgcolor="#CCCCCC">会员账号</td>
          <td width="100" align="center" bgcolor="#CCCCCC">真实姓名</td>
          <td align="center" bgcolor="#CCCCCC">联系电话</td>
          <td width="100" align="center" bgcolor="#CCCCCC">购物总金额</td>
          <td width="60" align="center" bgcolor="#CCCCCC">删除</td>
        </tr>
<%
Set rs= Server.CreateObject("ADODB.Recordset")
if request("s")="yes" then
sql="select * from huiyuan where huiyuan like '%"&request("key")&"%' or name like '%"&request("key")&"%' or tel like '%"&request("key")&"%' order by id DESC"
else
sql="select * from huiyuan order by id DESC"
end if
rs.open sql,conn,1,1
if rs.eof then
response.write "<br>暂无"
end if
 rs.pagesize = 20
if request("page")=""  or isempty(request("page")) 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"> 
          <td width="100" align="center" bgcolor="#f1f1f1"><%=rs("huiyuan")%></td>
          <td width="100" align="center" bgcolor="#f1f1f1"><%=rs("name")%></td>
          <td bgcolor="#f1f1f1"><%=rs("tel")%></td>
          <td width="100" align="center" bgcolor="#f1f1f1"><%=rs("je")%></td>
          <td width="60" align="center" bgcolor="#f1f1f1"><a href="del-huiyuan.asp?huiyuan=<%=rs("huiyuan")%>">删除</a></td>
        </tr>
        <%
i=i+1
 rs.MoveNext                                              
 wend 
%>
        <tr valign="middle"> 
          <td colspan="5" align="center"> 
            <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write "<form name=form method=post action=?xlbid="&request("xlbid")&">页次："& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" <br>分页："

	if p*10>0 then response.write "<a href='?xlbid="&request("xlbid")&"&page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?xlbid="&request("xlbid")&"&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=11 then response.write "<a href='?xlbid="&request("xlbid")&"&page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write(" 　跳页：<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit2 value=Go class=go-wenbenkuang></form>")
end if
rs.close
set rs=nothing%> </td>
        </tr>
      </table>    
