diff --git a/modules/editor/components/poll/lang/ko.lang.php b/modules/editor/components/poll/lang/ko.lang.php
index 7b41bdcba..e5044ef45 100644
--- a/modules/editor/components/poll/lang/ko.lang.php
+++ b/modules/editor/components/poll/lang/ko.lang.php
@@ -5,13 +5,13 @@
* @brief 위지윅에디터(editor) 모듈 > 설문조사 컴포넌트의 언어팩
**/
- $lang->survey_title = "제목";
- $lang->survey_item = "항목";
- $lang->survey_stop_date = "종료 일자";
- $lang->survey_chk_count = "선택항목 수";
+ $lang->poll_title = "제목";
+ $lang->poll_item = "항목";
+ $lang->poll_stop_date = "종료 일자";
+ $lang->poll_chk_count = "선택항목 수";
- $lang->cmd_add_survey = "설문 추가";
- $lang->cmd_del_survey = "설문 제거";
+ $lang->cmd_add_poll = "설문 추가";
+ $lang->cmd_del_poll = "설문 제거";
$lang->cmd_add_item = "항목 추가";
$lang->cmd_null_item = "설문조사로 등록할 값이 없습니다.\n다시 설정해주세요";
diff --git a/modules/editor/components/poll/poll.class.php b/modules/editor/components/poll/poll.class.php
index 387f4673f..7723022ff 100644
--- a/modules/editor/components/poll/poll.class.php
+++ b/modules/editor/components/poll/poll.class.php
@@ -22,7 +22,7 @@
/**
* @brief 팝업창에서 설문 작성 완료후 저장을 누를때
**/
- function insertSurvey() {
+ function insertPoll() {
Context::loadLang($this->component_path.'lang');
$stop_year = Context::get('stop_year');
$stop_month = Context::get('stop_month');
@@ -38,11 +38,11 @@
$tmp_arr = explode('_',$key);
- $survey_index = $tmp_arr[1];
+ $poll_index = $tmp_arr[1];
- if($tmp_arr[0]=='title') $tmp_args[$survey_index]->title = $val;
- else if($tmp_arr[0]=='checkcount') $tmp_args[$survey_index]->checkcount = $val;
- else if($tmp_arr[0]=='item') $tmp_args[$survey_index]->item[] = $val;
+ if($tmp_arr[0]=='title') $tmp_args[$poll_index]->title = $val;
+ else if($tmp_arr[0]=='checkcount') $tmp_args[$poll_index]->checkcount = $val;
+ else if($tmp_arr[0]=='item') $tmp_args[$poll_index]->item[] = $val;
}
foreach($tmp_args as $key => $val) {
@@ -52,9 +52,11 @@
if(!count($args)) return new Object(-1, 'cmd_null_item');
- $survey_srl = getNextSequence();
+ $poll_srl = getNextSequence();
- $this->add('survey_srl', $survey_srl);
+ // DB 에 입력
+
+ $this->add('poll_srl', $poll_srl);
}
/**
diff --git a/modules/editor/components/poll/tpl/filter/insert_poll.xml b/modules/editor/components/poll/tpl/filter/insert_poll.xml
new file mode 100644
index 000000000..640efe4fa
--- /dev/null
+++ b/modules/editor/components/poll/tpl/filter/insert_poll.xml
@@ -0,0 +1,9 @@
+