<!--#include file="../conn.asp"-->
<!--#include file="../admin.asp"-->
<%Call head()
Call saycarda("店铺管理")%>


<%
pag=10
set rsxl=Server.CreateObject("ADODB.Recordset")
rspl="select * from Users where dzt<>0 order by id desc"
rsxl.open rspl,conn,1,2
if rsxl.eof then
   Response.write "暂无店铺！<br/>"
Else
page=cint(request.QueryString("page"))
if page="" or page<1 then page=1
maxpage=int((rsxl.recordcount-1)/pag)+1
if page>maxpage then page=maxpage

rsxl.Move((page-1)*pag)
dim j
j=1
do while ((not rsxl.EOF) and j <=cint(pag))
%>
<a href='dp_gl.asp?id=<%=rsxl("id")%>&amp;saytk=<%=saytk%>&amp;sid=<%=sid%>'>[管理]</a><%=ubb(rsxl("dname"))%>(店号:<%=rsxl("id")%>)
<%if rsxl("dzt")="1" then%>
状态:待审
<%elseif rsxl("dzt")="2" then%>
状态:正常
<%elseif rsxl("dzt")="3" then%>
状态:封锁
<%elseif rsxl("dzt")="4" then%>
状态:加黑
<%end if%>
<br/>
<%
rsxl.Movenext  
j=j+1
loop

if page*pag<rsxl.recordcount then response.write("<a href='dp.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;dlid=" & dlid & "&amp;page=" & page+1 & "'>下一页</a>")
if page>1 then response.write("<a href='dp.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;dlid=" & dlid & "&amp;page=" & page-1 & "'>上一页</a>")

if page*pag<rsxl.recordcount or page>1 then response.write("<br/>")
if page*pag<rsxl.recordcount then response.write("----------<br/>(第"& page & "页/共" & (int(rsxl.recordcount/pag+1)) &"页/总" & rsxl.recordcount & "条)<br/>")
end if
%>

<!--#include file="bq.asp"-->

<%Call headsay()%>