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

' 파라미터정보 ***********************************************
status			= InputValue(request("status"))
tot_level_chk	= InputValue(request("tot_level_chk"))
g_chk			= InputValue(request("g_chk"))
g_num			= InputValue(request("g_num"))
' ************************************************************


If status = "totlevel" then ' 다중선택

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

	For i=0 To UBound(arr_chk)

		sql = " Update member_group set g_chk = '"&tot_level_chk&"' Where g_num = "& arr_chk(i)
		Dbcon.execute sql

	next

else

	sql = " Update member_group set g_chk = '"&g_chk&"' Where g_num = "& g_num
	Dbcon.execute sql

End if


Dbcon.close : Set Dbcon = Nothing

ok_url = "write.asp"

Call loding ("0", ok_url)

%>