<!--#include file="inc.asp"-->
<!--#include file="ydzq.asp"-->
<%
call head()
Call saycardd("会员管理")

if saytk>1 then
	Response.write "<form name=""form"" method=""post"" action=""adminpst.asp?sid="&sid&"&amp;saytk="&saytk&""">"
Response.write "I D或手机号:<br/><input name='ids' value=''/><br/>"%>
<input type="submit" name="Submit" value="搜会员"></form><br/><%
else
Response.write "I D或手机号:<input name='ids"&tt&"' value=''/>"
Response.write "<anchor>搜会员"
Response.write "<go href=""adminpst.asp?sid="&sid&"&amp;saytk="&saytk&""" method=""post"" accept-charset=""utf-8"">"
Response.write "<postfield name=""ids"" value=""$(ids"&tt&")""/>"
Response.write "</go></anchor><br/>"
end if
dim ids,gettxt
ids=request("ids")
if ids<>"" then
if ids="" or Isnumeric(ids)=False then
  Call Error("ID无效！")
  end if
  if len(ids)>10 then
  gettxt="where sjhm='"&ids&"'"
  else
gettxt="where id="&ids
end if
end if
set rs=Server.CreateObject("ADODB.Recordset")
rsppl="select * from Users "&gettxt&" order by id desc"
rs.open rsppl,conn,1,1

If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="adminpst.asp?p="&p&"&amp;sid="&sid&"&amp;saytk="&saytk&"&amp;"
	Count=rs.recordcount	
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
        if page>pagecount then page=pagecount
	rs.move(pagesize*(page-1))
	For i=1 To PageSize     						
	If rs.eof Then Exit For
   Response.write ""&i+(page-1)*PageSize&"."
   Response.write "<a href=""show.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">"&ubb(rs("name"))&"(ID:"&usb(rs("id"))&")</a>|<a href=""../sjgl/schy.asp?sid="&sid&"&amp;saytk="&saytk&"&amp;id="&rs("id")&"&amp;hygl=1"">删除</a><br/>"
	rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页"
if saytk=1 then
response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">跳转</a>"
end if
Else
   Response.write "暂时没有！"
end if
rs.close
set rs=nothing
conn.close
set conn=Nothing
response.write"<br/><a href='reg.asp?sid="&sid&"&amp;saytk="&saytk&"'>注册会员</a>"
%><!--#include file="fanhui.asp"-->
<%
call headsay()%>

