From 769ee33f57e08d268d531fe87052a398fadc9668 Mon Sep 17 00:00:00 2001 From: ngleader Date: Tue, 16 Dec 2008 06:21:06 +0000 Subject: [PATCH] =?UTF-8?q?1.=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=EC=97=90=EC=84=9C=20=EC=9D=B4=EB=8F=99=20=EB=B3=B5?= =?UTF-8?q?=EC=82=AC=EC=8B=9C=20=EB=B6=84=EC=9C=A0=EC=97=86=EC=9D=8C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20bugfix=202.=20=EC=97=90?= =?UTF-8?q?=EB=94=94=ED=84=B0=20=EB=AA=A8=EB=93=9C=20=EC=BF=A0=ED=82=A4=20?= =?UTF-8?q?=EA=B8=B0=EC=96=B5=203.=20=EB=B9=84=EB=B0=80=EA=B8=80=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=98=B5=EC=85=98=EC=9C=BC=EB=A1=9C=20(?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EB=8C=93=EA=B8=80)=204.=20?= =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EC=9D=84=EB=95=8C=20=EB=8F=84=EC=9B=80=EB=A7=90=20=EC=97=86?= =?UTF-8?q?=EC=95=B0=205.=20=EC=B2=A8=EB=B6=80=EC=8B=9C=20=EC=9A=A9?= =?UTF-8?q?=EB=9F=89=20=EC=A0=9C=ED=95=9C=20=ED=91=9C=EA=B8=B0=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5091 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/board/board.admin.controller.php | 1 + modules/board/lang/en.lang.php | 2 + modules/board/lang/es.lang.php | 2 + modules/board/lang/fr.lang.php | 2 + modules/board/lang/jp.lang.php | 2 + modules/board/lang/ko.lang.php | 4 ++ modules/board/lang/ru.lang.php | 2 + modules/board/lang/zh-CN.lang.php | 2 + modules/board/lang/zh-TW.lang.php | 2 + .../board/skins/xe_board/comment_form.html | 3 +- modules/board/skins/xe_board/write_form.html | 2 + modules/board/tpl/board_insert.html | 38 ++++++++++++------- modules/board/tpl/filter/insert_board.xml | 1 + modules/document/document.model.php | 11 ++++-- modules/document/tpl/checked_list.html | 2 +- modules/editor/skins/default/editor.html | 6 +-- modules/editor/tpl/js/editor.js | 25 ++++++++++++ modules/editor/tpl/js/uploader.js | 1 + modules/file/file.model.php | 7 ++++ 19 files changed, 92 insertions(+), 23 deletions(-) diff --git a/modules/board/board.admin.controller.php b/modules/board/board.admin.controller.php index 7b2e71ab8..ed821c8fd 100644 --- a/modules/board/board.admin.controller.php +++ b/modules/board/board.admin.controller.php @@ -155,6 +155,7 @@ $extra_vars->search_list_count = $args->search_list_count; $extra_vars->except_notice = $args->except_notice!='Y'?'N':'Y'; $extra_vars->consultation = $args->consultation!='Y'?'N':'Y'; + $extra_vars->secret = $args->secret!='Y'?'N':'Y'; $extra_vars->admin_mail = $args->admin_mail; $extra_vars->page_count = $args->page_count; diff --git a/modules/board/lang/en.lang.php b/modules/board/lang/en.lang.php index f403c2fd4..28aad64c5 100644 --- a/modules/board/lang/en.lang.php +++ b/modules/board/lang/en.lang.php @@ -21,6 +21,7 @@ $lang->category_group_srls = 'Accessable Group'; $lang->search_result = 'Search Result'; $lang->consultation = 'Consultation'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = "Administrator's Mail"; // words used in button @@ -37,6 +38,7 @@ $lang->about_except_notice = 'Notice articles will not be displayed on normal list.'; $lang->about_board = 'This module is for creating and managing boards.'; $lang->about_consultation = "Non-administrator members would see their own articles.\nNon-members would not be able to write articles when using consultation."; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = 'A mail will be sent when an article or comment is submitted.
Multiple mails can be sent with commas(,).'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; diff --git a/modules/board/lang/es.lang.php b/modules/board/lang/es.lang.php index 62f03a068..92b14d299 100644 --- a/modules/board/lang/es.lang.php +++ b/modules/board/lang/es.lang.php @@ -23,6 +23,7 @@ $lang->category_group_srls = 'Limitar el grupo'; $lang->search_result = 'Resultado de la búsqueda'; $lang->consultation = '상담 기능'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = '관리자 메일'; // Palabras utilizadas en los botones @@ -39,6 +40,7 @@ $lang->about_except_notice = 'Aviso de los artículos no se mostrará en la lista normal.'; $lang->about_board = 'Este módulo es para crear y manejar los tableros.'; $lang->about_consultation = "No administrador de los miembros que consideran que su propia artocles. \ NNon miembros no serían capaces de escribir artículos al utilizar la consulta."; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = '글이나 댓글이 등록될때 등록된 메일주소로 메일이 발송됩니다
,(콤마)로 연결시 다수의 메일주소로 발송할 수 있습니다.'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; diff --git a/modules/board/lang/fr.lang.php b/modules/board/lang/fr.lang.php index c7dac2ed6..ae1a26acf 100644 --- a/modules/board/lang/fr.lang.php +++ b/modules/board/lang/fr.lang.php @@ -20,6 +20,7 @@ $lang->category_group_srls = 'Groupe Accessible'; $lang->search_result = 'Résultat de la Recherche'; $lang->consultation = 'Consultation'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = 'Mél de l\'administrateur'; // Mots utilisés en bouton @@ -36,5 +37,6 @@ $lang->about_except_notice = "Le titre de Notice dont l'article se représentera toujours en tête de la liste ne sera exposé sur la liste générale."; $lang->about_board = 'Ce module se sert à créer et à administrer des Panneaux d\'Affichage.'; $lang->about_consultation = "Les membres non-administratifs verront seulement les ariticles d\'eux-même.\nNon-membres ne pourraient pas écrire des articles quand la Consultation est appliqué."; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = 'Un message éléctronique sera envoyé à l\'adresse inscrite quand un article ou commentaire se soumet.
On peut inscrire multiple adresses délimité par les virgules.'; ?> \ No newline at end of file diff --git a/modules/board/lang/jp.lang.php b/modules/board/lang/jp.lang.php index d611e7587..3d80b91c0 100644 --- a/modules/board/lang/jp.lang.php +++ b/modules/board/lang/jp.lang.php @@ -25,6 +25,7 @@ $lang->category_group_srls = 'グループ制限'; $lang->search_result = '検索結果'; $lang->consultation = '相談機能'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = '管理者メールアドレス'; // ボタンに使用する用語 @@ -41,6 +42,7 @@ $lang->about_except_notice = "リストの上段に常に表示されるお知らせの書き込みを一般リストからお知らせの書き込みが表示されないようにします。"; $lang->about_board = '掲示板の生成、および管理する掲示板モジュールです。'; $lang->about_consultation = "相談機能とは、管理権限のない会員に本人の書き込みだけを表示する機能です。\n但し、相談機能を使用する際は、非会員の書き込みは自動的に禁止されます。"; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = '書き込みやコメントが掲載される時、登録メールアドレス宛にメールが送信されます。
複数のメールアドレスへ送信する場合は「,」(半額コンマ)区切りで登録して下さい。'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; diff --git a/modules/board/lang/ko.lang.php b/modules/board/lang/ko.lang.php index a416b50f6..1a0a3050f 100644 --- a/modules/board/lang/ko.lang.php +++ b/modules/board/lang/ko.lang.php @@ -22,8 +22,11 @@ $lang->category_group_srls = '그룹제한'; $lang->search_result = '검색결과'; $lang->consultation = '상담 기능'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = '관리자 메일'; + + // 버튼에 사용되는 언어 $lang->cmd_board_list = '게시판 목록'; $lang->cmd_module_config = '게시판 공통 설정'; @@ -38,6 +41,7 @@ $lang->about_except_notice = '목록 상단에 늘 나타나는 공지사항을 일반 목록에서 공지사항을 출력하지 않도록 합니다.'; $lang->about_board = '게시판을 생성하고 관리할 수 있는 게시판 모듈입니다.'; $lang->about_consultation = "상담 기능은 관리권한이 없는 회원은 자신이 쓴 글만 보이도록 하는 기능입니다\n단 상담기능 사용시 비회원 글쓰기는 자동으로 금지됩니다."; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = '글이나 댓글이 등록될때 등록된 메일주소로 메일이 발송됩니다
,(콤마)로 연결시 다수의 메일주소로 발송할 수 있습니다.'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; diff --git a/modules/board/lang/ru.lang.php b/modules/board/lang/ru.lang.php index 45f69f6b1..b30e73b34 100644 --- a/modules/board/lang/ru.lang.php +++ b/modules/board/lang/ru.lang.php @@ -25,6 +25,7 @@ $lang->category_group_srls = 'Доступные группы'; $lang->search_result = 'Результат поиска'; $lang->consultation = '상담 기능'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = '관리자 메일'; // слова, использованные в кнопке @@ -41,6 +42,7 @@ $lang->about_except_notice = "목록 상단에 늘 나타나는 공지사항을 일반 목록에서 공지사항을 출력하지 않도록 합니다."; $lang->about_board = 'Этот модуль служит для создания и управления форумами.'; $lang->about_consultation = "상담 기능은 관리권한이 없는 회원은 자신이 쓴 글만 보이도록 하는 기능입니다\n단 상담기능 사용시 비회원 글쓰기는 자동으로 금지됩니다."; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = '글이나 댓글이 등록될때 등록된 메일주소로 메일이 발송됩니다
,(콤마)로 연결시 다수의 메일주소로 발송할 수 있습니다.'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; diff --git a/modules/board/lang/zh-CN.lang.php b/modules/board/lang/zh-CN.lang.php index 13d560ee6..b2630be06 100644 --- a/modules/board/lang/zh-CN.lang.php +++ b/modules/board/lang/zh-CN.lang.php @@ -24,6 +24,7 @@ $lang->category_group_srls = '用户组'; $lang->search_result = '搜索结果'; $lang->consultation = '咨询功能'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = '管理员电子邮件'; // 按钮语言 @@ -41,6 +42,7 @@ $lang->about_except_notice = "设置公告目录项不再重复显示到普通目录当中。"; $lang->about_board = "可生成及管理版面的模块。"; $lang->about_consultation = "咨询功能是指除有管理权限的会员以外,其他会员只能浏览自己发表的主题。\n使用咨询功能时系统将自动禁止非会员的发表主题权限。"; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = '有新的主题或评论时,将自动发电子邮件来通知管理员。
多数电子邮件由逗号(,)来分隔。'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; ?> \ No newline at end of file diff --git a/modules/board/lang/zh-TW.lang.php b/modules/board/lang/zh-TW.lang.php index 2592b8d47..5a0dc063d 100644 --- a/modules/board/lang/zh-TW.lang.php +++ b/modules/board/lang/zh-TW.lang.php @@ -21,6 +21,7 @@ $lang->category_group_srls = '用戶組'; $lang->search_result = '搜尋結果'; $lang->consultation = '咨詢功能'; + $lang->secret = '비밀글 기능'; $lang->admin_mail = '管理員電子郵件'; // 按鈕語言 @@ -37,6 +38,7 @@ $lang->about_except_notice = '設置公告列表項目,不再重複顯示到普通列表當中。'; $lang->about_board = '可建立及管理討論板的模組。'; $lang->about_consultation = "咨詢功能是指除有管理權限的會員以外,其他會員只能瀏覽自己發表的主題。\n使用咨詢功能時系統將自動禁止非會員的發表主題權限。"; + $lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.'; $lang->about_admin_mail = '有新的主題或評論時,將自動發電子郵件來通知管理員。
多數電子郵件由逗號(,)區隔。'; $lang->about_category_color = '분류 폰트색깔을 지정합니다.'; ?> \ No newline at end of file diff --git a/modules/board/skins/xe_board/comment_form.html b/modules/board/skins/xe_board/comment_form.html index 4714b2da9..4edf41f4e 100644 --- a/modules/board/skins/xe_board/comment_form.html +++ b/modules/board/skins/xe_board/comment_form.html @@ -48,9 +48,10 @@ useNotify())-->checked="checked" id="notify_message" /> - + isSecret())-->checked="checked" id="is_secret" /> +
{$oComment->getEditor()}
diff --git a/modules/board/skins/xe_board/write_form.html b/modules/board/skins/xe_board/write_form.html index 595621104..c951736e5 100644 --- a/modules/board/skins/xe_board/write_form.html +++ b/modules/board/skins/xe_board/write_form.html @@ -61,10 +61,12 @@ +
isSecret())-->checked="checked" id="is_secret" />
+
allowComment())-->checked="checked" id="allow_comment" /> diff --git a/modules/board/tpl/board_insert.html b/modules/board/tpl/board_insert.html index 272b90404..2455b8b41 100644 --- a/modules/board/tpl/board_insert.html +++ b/modules/board/tpl/board_insert.html @@ -20,7 +20,7 @@ - +
{$lang->is_default}
is_default=='Y')-->checked="checked" id="fld_for_default" class="checkbox" /> @@ -43,7 +43,7 @@ - +
{$lang->browser_title}
@@ -64,7 +64,7 @@

{$lang->about_layout}

- +
{$lang->skin}
@@ -102,7 +102,7 @@ - +
{$lang->list_count}
@@ -116,7 +116,7 @@

{$lang->about_search_list_count}

- +
{$lang->page_count}
@@ -130,13 +130,20 @@

{$lang->about_except_notice}

- +
{$lang->consultation}
consultation=='Y')-->checked="checked" />

{nl2br($lang->about_consultation)}

+ +
{$lang->secret}
+ + secret=='Y')-->checked="checked" /> +

{nl2br($lang->about_secret)}

+ +
{$lang->admin_mail}
@@ -144,7 +151,7 @@

{$lang->about_admin_mail}

- +
{$lang->description}
@@ -158,7 +165,7 @@

{$lang->about_header_text}

- +
{$lang->footer_text}
@@ -172,7 +179,7 @@

{$lang->about_admin_id}

- + @@ -198,7 +205,7 @@ - + @@ -214,7 +221,7 @@ - + @@ -222,7 +229,7 @@ - + @@ -230,7 +237,7 @@ - +
{$lang->extra_vars} {$i}
{$lang->column_name}
{$lang->is_required}
checked="checked" />
{$lang->default_value}

{$lang->about_extra_vars_default_value}

{$lang->description}
{$lang->cmd_search}
checked="checked" />
@@ -239,3 +246,6 @@ + \ No newline at end of file diff --git a/modules/board/tpl/filter/insert_board.xml b/modules/board/tpl/filter/insert_board.xml index 71d5a806a..62f97dabf 100644 --- a/modules/board/tpl/filter/insert_board.xml +++ b/modules/board/tpl/filter/insert_board.xml @@ -20,6 +20,7 @@ + diff --git a/modules/document/document.model.php b/modules/document/document.model.php index 16182dc18..a9c58f536 100644 --- a/modules/document/document.model.php +++ b/modules/document/document.model.php @@ -655,11 +655,14 @@ function getDocumentCategories() { $module_srl = Context::get('module_srl'); $categories= $this->getCategoryList($module_srl); - if(!$categories) return; + $lang = Context::get('lang'); - $output = ''; - foreach($categories as $category_srl => $category) { - $output .= sprintf("%d,%d,%s\n",$category_srl, $category->depth,$category->title); + // 분류 없음 추가 + $output = "0,0,{$lang->none_category}\n"; + if($categories){ + foreach($categories as $category_srl => $category) { + $output .= sprintf("%d,%d,%s\n",$category_srl, $category->depth,$category->title); + } } $this->add('categories', $output); } diff --git a/modules/document/tpl/checked_list.html b/modules/document/tpl/checked_list.html index 84f60cba7..c17c67b1f 100644 --- a/modules/document/tpl/checked_list.html +++ b/modules/document/tpl/checked_list.html @@ -14,7 +14,7 @@
- {$lang->cmd_select} + {$lang->cmd_select} - + @@ -236,8 +238,6 @@ editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' , '#000'); - - //]]> diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index 1d1bcb886..4351192e5 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -174,6 +174,24 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height, f // 자동저장 필드가 있다면 자동 저장 기능 활성화 if(typeof(fo_obj._saved_doc_title)!="undefined" ) editorEnableAutoSave(fo_obj, editor_sequence); + + + // 좋지는 않으나;; 스타일 변형을 막기 위해 start 할때 html이면 바꿔주자 + if (xGetCookie('editor_mode') == 'html'){ + var iframe_obj = editorGetIFrame(editor_sequence); + if(xGetElementById('fileUploader_'+editor_sequence)) xGetElementById('fileUploader_'+editor_sequence).style.display='block'; + textarea_obj = editorGetTextArea(editor_sequence); + textarea_obj.value = content; + xWidth(textarea_obj, xWidth(iframe_obj.parentNode)); + xHeight(textarea_obj, xHeight(iframe_obj.parentNode)); + editorMode[editor_sequence] = 'html'; + if(xGetElementById('xeEditor_'+editor_sequence)) { + xGetElementById('xeEditor_'+editor_sequence).className = 'xeEditor html'; + xGetElementById('use_rich_'+editor_sequence).className = ''; + xGetElementById('preview_html_'+editor_sequence).className = ''; + xGetElementById('use_html_'+editor_sequence).className = 'active'; + } + } } @@ -401,6 +419,13 @@ function editorChangeHeader(obj,srl) { **/ function editorChangeMode(mode, editor_sequence) { + + if(mode == 'html' || mode ==''){ + var expire = new Date(); + expire.setTime(expire.getTime()+ (7000 * 24 * 3600000)); + xSetCookie('editor_mode', mode, expire); + } + var iframe_obj = editorGetIFrame(editor_sequence); if(!iframe_obj) return; diff --git a/modules/editor/tpl/js/uploader.js b/modules/editor/tpl/js/uploader.js index 05fd9157c..70dbadf06 100755 --- a/modules/editor/tpl/js/uploader.js +++ b/modules/editor/tpl/js/uploader.js @@ -221,6 +221,7 @@ function reloadFileList(settings) { var params = new Array(); params["file_list_area_id"] = settings["fileListAreaID"]; params["editor_sequence"] = settings["editorSequence"]; + params["mid"] = current_mid; var response_tags = new Array("error","message","files","upload_status","upload_target_srl","editor_sequence"); exec_xml("file","getFileList", params, completeReloadFileList, response_tags, settings); } diff --git a/modules/file/file.model.php b/modules/file/file.model.php index fbf60f1c6..a9404646c 100644 --- a/modules/file/file.model.php +++ b/modules/file/file.model.php @@ -17,6 +17,12 @@ * @brief 특정 문서에 속한 첨부파일 목록을 return **/ function getFileList() { + + $mid = Context::get("mid"); + $oModuleModel = &getModel('module'); + $config = $oModuleModel->getModuleInfoByMid($mid); + Context::set("module_srl",$config->module_srl); + $editor_sequence = Context::get("editor_sequence"); $upload_target_srl = $_SESSION['upload_info'][$editor_sequence]->upload_target_srl; if($upload_target_srl) { @@ -89,6 +95,7 @@ if(!$config->allowed_attach_size) $config->allowed_attach_size = '3'; if(!$config->allowed_filetypes) $config->allowed_filetypes = '*.*'; if(!$config->download_grant) $config->download_grant = array(); + return $config; }