<!-- #include file="conn.asp" -->
<!-- #include file="admin.asp" -->
<%
Call ling()
Call Head()
call saycardd("栏目分类删除")
IF KEY<>0 then
  Call Error("你的权限不足！")
  end if
dim rs,sql,lx,id,idd
id=Request.querystring("id")
idd=Request.querystring("idd")
lx=Request.querystring("lx")
set rs=server.CreateObject ("ADODB.Recordset") 
rs.open "Select * from class where classid="&id ,conn,2,3 
if not (rs.bof and rs.eof) then 
rs.delete  
rs.close
set rs=nothing
sql="delete from class Where parent="&id
conn.Execute(sql)
Response.Write "栏目类别(包含所有子栏目)删除成功!"     
else
Response.Write "栏目类别删除失败!栏目不存在或者已删除!"  
%>
<%end if%>
<br/>----------<br/>
<%if idd<>0 then %>
<a href="Clist.asp?sid=<%=sid%>&amp;id=<%=idd%>&amp;lx=<%=lx%>&amp;saytk=<%=saytk%>">[栏目分类]</a><br/>
<%end if
response.write""&chr(13)
%>
<a href='class.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>[主站排版]</a><br/>
<a href="index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[后台管理]</a>
<%response.write"" %>
<%call headsay()%>
