<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
Dim R_Fields, R_Fields_u, sc_copyright, ok_url
Dim mm_idx, mm_content, mm_wdate, mm_id

R_Fields = "mm_idx, mm_content, mm_wdate, mm_id"

Call RequestAll(R_Fields, "request.form")

sc_copyright	= InputValue2( Request.Form("mm_content") )


If mm_idx = "" Then  '저장
	
'	//초기화
'	//$sql = "truncate table manager_memo";
'	//$mysql->ParseExec($sql); 
	
	R_Fields_i = "mm_content, mm_wdate,mm_id"
	
	mm_wdate =getDateFm(Now(), 3)

	mm_id = SESSION("ss_m_id")

	Call InsertQuery(R_Fields_i, "manager_memo")

	ok_url = "index.asp"


Else		'//수정


	R_Fields_u = "mm_content, mm_wdate"

	mm_wdate = getDateFm(Now(), 3)

	Call UpdateQuery (R_Fields_u, "manager_memo", "where mm_idx=" & mm_idx)

	ok_url = "index.asp"

End if

Call loding("0",ok_url)

dbcon.close
Set dbcon = nothing

%>