<!-- #include file="../conn.asp" -->
<!-- #include file="admin.asp" -->
<%call ling()
Call Head()

dim lid,idd
lid=request.querystring("lid")
if lid="" or Isnumeric(lid)=False then
if saytk>1 then
  Call Error("<title>出错</title></head><body><body bgcolor="""&yanse1&"""><p>ID无效！")
else
  Call Error("<card title=""出错""><p>ID无效！")
  end if
end if
    dim bigclass
	Set Rs = Server.CreateObject("Adodb.Recordset")
	rs.open "SELECT name from wjLIST Where Lid="&Lid,conn,1,1
	if not rs.eof then
bigclass=rs("name")
end if
rs.close
set rs=Nothing
Call saycardd(bigclass)

	Set Rs = Server.CreateObject("Adodb.Recordset")
	Sql = "SELECT name,id from wjfile Where lid="&lid&" order by id desc"
	Rs.Open Sql,conn,1,1
	If Not rs.eof	Then
	PageSize=10					
	Dim Count,page,pagecount,gopage,parent			
	gopage="piclist.asp?sid="&sid&"&amp;lid="&lid&"&amp;idd="&idd&"&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				
%>[<a href="picgl.asp?sid=<%=sid%>&amp;id=<%=rs("id")%>&amp;lid=<%=lid%>&amp;saytk=<%=saytk%>">管理</a>]<%=i+(page-1)*PageSize%>.<a href="picview.asp?sid=<%=sid%>&amp;id=<%=rs("id")%>&amp;lid=<%=lid%>&amp;saytk=<%=saytk%>"><%=ubb(rs("name"))%></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
%>
	(没有图片)

<%end if%>

<br/>--------<br/>
<a href='upfile.asp?sid=<%=sid%>&amp;lid=<%=lid%>&amp;saytk=<%=saytk%>'>[上传图片]</a><br/>
<a href='cj.asp?sid=<%=sid%>&amp;lid=<%=lid%>&amp;saytk=<%=saytk%>'>[网页采集]</a><br/>
<a href='picget.asp?sid=<%=sid%>&amp;lid=<%=lid%>&amp;saytk=<%=saytk%>'>[地址采集]</a><br/>
<a href='picdl.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>[图片类别]</a><br/>
<a href="../index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[后台管理]</a>
<%response.write""
call head3()%>
