<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->

<!--#include file = "config.asp" -->

<%

' 파라미터정보 *************************************************************************************
idx		= InputValue(request("idx"))
status	= InputValue(request("status"))
' **************************************************************************************************


If status = "totdel" then ' 다중삭제

	chk = Replace(request("chk")," ", "")
	arr_chk = Split(chk, ",")

	For z=0 To UBound(arr_chk)

		sql = " delete from popup where idx = "&arr_chk(z)
		Dbcon.execute sql
	next

else ' 일반삭제

	sql = " delete from popup where idx = "&idx
	Dbcon.execute sql

End if

Dbcon.close : Set Dbcon = Nothing

ok_url = "list.asp?"&page_info
Call loding ("0",ok_url)


%>