<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
Dim bdm_idx, sql, prepage

security_ad_cms()	'관리자 페이지 체크

bdm_idx = inputValue( request.queryString("bdm_idx") )
prepage = request.queryString("prepage")

'하위메뉴 삭제
sql = "delete from bd_menu_page where bdm_ref = '" & bdm_idx & "'"
dbcon.execute sql

sql = "delete from bd_menu_page where bdm_idx = '" & bdm_idx & "'"
dbcon.execute sql


dbcon.close
Set dbcon = Nothing


%>
<script type="text/javascript">
//<![CDATA[
parent.document.getElementById("tree").src = "tree.asp";
location.href= "<%=prepage%>";
//]]>
</script>