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

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

<%


R_Fields = "poc_idx, poc_topinclude, poc_btminclude"

Call RequestAll (R_Fields, "")

poc_tophtml		= InputValue4( request("poc_tophtml") )
poc_btmhtml		= InputValue4( request("poc_btmhtml") )


If poc_idx = "" Then ' 저장


	sql = "truncate table poll_conf"
	Dbcon.execute sql	
	
	R_Fields_i = "poc_topinclude, poc_tophtml, poc_btminclude, poc_btmhtml, poc_wdate"
	poc_wdate = getDateFm(now,3)

	Call InsertQuery(R_Fields_i, "poll_conf")

	ok_url = "conf.asp"


Else ' 수정

	

	R_Fields_u = "poc_topinclude, poc_tophtml, poc_btminclude, poc_btmhtml, poc_wdate"
	nsc_wdate = getDateFm(now,3)

	Call UpdateQuery (R_Fields_u, "poll_conf", "where poc_idx="&poc_idx)
	ok_url = "conf.asp"

End if

Dbcon.close

Call loding("0", ok_url)

%>