<!--#include file="vvbb.asp"-->
<!--#include file="../conn.asp"-->
<!--#include file="../admin.asp"-->
<%Call head()
Call saycarda("商场-小类管理")%>


<%
pag=10
id=request("id")
set rsxl=Server.CreateObject("ADODB.Recordset")
rspl="select * from shop_zlm where cstr(did)='"&id&"' order by id asc"
rsxl.open rspl,connshop,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 <=pag)
%>

<%=((page-1)*pag+j)%>.
<%=ubb(rsxl("name"))%>
|<a href='xlxg.asp?id=<%=rsxl("id")%>&amp;saytk=<%=saytk%>&amp;sid=<%=sid%>'>修改</a>|<a href='flxl.asp?id=<%=rsxl("id")%>&amp;saytk=<%=saytk%>&amp;sid=<%=sid%>'>删除</a>
<br/>
<%
rsxl.Movenext  
j=j+1
loop

if page*pag<rsxl.recordcount then response.write("<a href='fl_xl.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;id=" & id & "&amp;page=" & page+1 & "'>下一页</a>")
if page>1 then response.write("<a href='fl_xl.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;id=" & id & "&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
%>
<a href="zjxl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=id%>">[增加小分类]</a>
<!--#include file="bq.asp"-->
<%Call headsay()%>