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 @@ + +
+ + + + + + + diff --git a/modules/editor/components/poll/tpl/filter/insert_survey.xml b/modules/editor/components/poll/tpl/filter/insert_survey.xml deleted file mode 100644 index 54d5e8dfc..000000000 --- a/modules/editor/components/poll/tpl/filter/insert_survey.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/modules/editor/components/poll/tpl/popup.css b/modules/editor/components/poll/tpl/popup.css index 91794b678..1a3c8d96c 100644 --- a/modules/editor/components/poll/tpl/popup.css +++ b/modules/editor/components/poll/tpl/popup.css @@ -18,7 +18,7 @@ text-align:center; } -.survey_header { +.poll_header { border:1px solid #888888; background-color:#EFEFEF; margin:5px; @@ -26,7 +26,7 @@ font-weight:bold; } -.survey_box { +.poll_box { border:1px solid #888888; height:140px; margin:5px; diff --git a/modules/editor/components/poll/tpl/popup.html b/modules/editor/components/poll/tpl/popup.html index 936a8f154..b67b93314 100644 --- a/modules/editor/components/poll/tpl/popup.html +++ b/modules/editor/components/poll/tpl/popup.html @@ -1,18 +1,18 @@ - + - + - - + +
{$component_info->title} ver. {$component_info->version} {$lang->about_component}
-
- {$lang->survey_stop_date} : +
+ {$lang->poll_stop_date} : - +
-