<!--#include file="../Inc.asp"-->
<!--#include file="../ydzq.asp"-->
<!--#include file="../../inc/char.asp"-->
<%
Call ling()
Call Head()
Call saycardd("栏目分类删除")
IF KEYs<>1 then
  Call Error("你的权限不足！")
  end if
dim rs,sql,lx,id,idd
id=Request.querystring("id")
idd=Request.querystring("idd")
lx=Request.querystring("lx")
password=request.form("password")

Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "SELECT * FROM users where id="&myid,conn,1,1
if rs("mm")<>password then

  Call Error(" 密码不正确")

end if
  rs.close
  set rs=Nothing

dim conngamepb,conngamepbstr
conngamepbstr="DBQ="+server.mappath("/shujuku/chajianshujuku/saytk_pb/saytk_pb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conngamepb=server.createobject("ADODB.connECTION")
conngamepb.open conngamepbstr

set rs=server.CreateObject ("ADODB.Recordset") 
rs.open "Select * from gameclass where classid="&id ,conngamepb,2,3 
if not (rs.bof and rs.eof) then 
rs.delete  
rs.close
set rs=nothing
sql="delete from gameclass Where parent="&id
conngamepb.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="/bbs/show.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">返回我的地盘</a><br/>
<%call headsay()%>
