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

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

<%


' 파라미터정보 ***********************************************

status			= InputValue(request("status"))
tot_level_chk	= InputValue(request("tot_level_chk"))

b_l_chk		= InputValue(request("b_l_chk"))
b_l_num		= InputValue(request("b_l_num"))

' ************************************************************


If status = "totlevel" then ' 다중

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

	For z=0 To UBound(arr_chk)

		SQL = " Update banner set b_l_chk = '"&tot_level_chk&"' Where b_l_num = "&arr_chk(z)
		Dbcon.execute SQL

	next
	
Else

	SQL = " Update banner set b_l_chk = '"&b_l_chk&"' Where b_l_num = "&b_l_num
	Dbcon.execute SQL

End if

Dbcon.close : Set Dbcon = nothing

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

%>