From 4267b0c1d712890268f100fdbeb21d32a525aae4 Mon Sep 17 00:00:00 2001 From: k10206 Date: Tue, 9 Oct 2007 00:06:24 +0000 Subject: [PATCH] =?UTF-8?q?#208,=20checkbox=20=EB=AA=A8=EB=91=90=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D,=20=EB=AA=A8=EB=91=90=20=ED=95=B4=EC=A0=9C,?= =?UTF-8?q?=20=EC=84=A0=ED=83=9D=20=EB=B0=98=EC=A0=84=20=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20(lang=20=EC=96=B8=EC=96=B4=EB=B3=84=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=EB=B2=88=EC=97=AD=20=ED=95=84=EC=9A=94)?= 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@2699 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/common.js | 22 +++++++++++++++++++ common/lang/ko.lang.php | 1 + modules/comment/tpl/comment_list.html | 8 +++---- modules/document/tpl/document_list.html | 8 +++---- modules/file/tpl/file_list.html | 4 +++- modules/integration_search/tpl/index.html | 10 +++++++++ modules/poll/tpl/poll_list.html | 4 +++- modules/trackback/tpl/trackback_list.html | 8 +++---- modules/widget/tpl/widget_generate_code.html | 10 +++++++++ .../tpl/widget_generate_code_in_page.html | 10 +++++++++ 10 files changed, 71 insertions(+), 14 deletions(-) diff --git a/common/js/common.js b/common/js/common.js index 390d78847..3d129e9c0 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -630,3 +630,25 @@ function doDocumentPreview(obj) { function viewSkinInfo(module, skin) { popopen("./?module=module&act=dispModuleSkinInfo&selected_module="+module+"&skin="+skin, 'SkinInfo'); } + +/* 체크박스 선택 */ +function checkboxSelectAll(form, name, option){ + var value; + var fo_obj = xGetElementById(form); + for ( var i = 0 ; i < fo_obj.length ; i++ ){ + if(typeof(option) == "undefined") { + var select_mode = fo_obj[i].checked; + if ( select_mode == 0 ){ + value = true; + select_mode = 1; + }else{ + value = false; + select_mode = 0; + } + } + else if(option == true) value = true + else if(option == false) value = false + + if(fo_obj[i].name == name) fo_obj[i].checked = value; + } +} diff --git a/common/lang/ko.lang.php b/common/lang/ko.lang.php index 43d53e49a..9cf83d210 100644 --- a/common/lang/ko.lang.php +++ b/common/lang/ko.lang.php @@ -37,6 +37,7 @@ $lang->cmd_select = '선택'; $lang->cmd_select_all = '모두선택'; $lang->cmd_unselect_all = '모두해제'; + $lang->cmd_reverse_all = "선택반전"; $lang->cmd_close_all = '모두닫기'; $lang->cmd_open_all = '모두열기'; $lang->cmd_reload = '다시읽기'; diff --git a/modules/comment/tpl/comment_list.html b/modules/comment/tpl/comment_list.html index 2b0d6827c..7c0c54339 100644 --- a/modules/comment/tpl/comment_list.html +++ b/modules/comment/tpl/comment_list.html @@ -15,7 +15,7 @@ - + + @@ -46,10 +47,11 @@
+ {$lang->cmd_select_all} + {$lang->cmd_reverse_all}
- diff --git a/modules/trackback/tpl/trackback_list.html b/modules/trackback/tpl/trackback_list.html index 8e710a989..9627163f1 100644 --- a/modules/trackback/tpl/trackback_list.html +++ b/modules/trackback/tpl/trackback_list.html @@ -38,7 +38,7 @@
+ {$lang->cmd_select_all} + {$lang->cmd_reverse_all} +
diff --git a/modules/document/tpl/document_list.html b/modules/document/tpl/document_list.html index f07b846d0..3f2460cda 100644 --- a/modules/document/tpl/document_list.html +++ b/modules/document/tpl/document_list.html @@ -12,11 +12,11 @@ - +
- + - +
{$lang->no}
diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index 99eb52f79..e155df82f 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -14,7 +14,7 @@
{$lang->no}
diff --git a/modules/integration_search/tpl/index.html b/modules/integration_search/tpl/index.html index dd7aeaf80..5fdd5e470 100644 --- a/modules/integration_search/tpl/index.html +++ b/modules/integration_search/tpl/index.html @@ -27,9 +27,19 @@
{$lang->module}

{$lang->about_target_module}

+
+ + + +

target_mid))-->checked="checked" />

+
+ + + +
diff --git a/modules/poll/tpl/poll_list.html b/modules/poll/tpl/poll_list.html index 338462ab2..b2eec1bc0 100644 --- a/modules/poll/tpl/poll_list.html +++ b/modules/poll/tpl/poll_list.html @@ -22,6 +22,7 @@
{$lang->no} {$lang->title} {$lang->poll_checkcount} {$lang->poll_join_count} {$lang->no}
- + + {$lang->cmd_select_all} + {$lang->cmd_reverse_all} +
diff --git a/modules/widget/tpl/widget_generate_code.html b/modules/widget/tpl/widget_generate_code.html index 97774f520..7201a973c 100644 --- a/modules/widget/tpl/widget_generate_code.html +++ b/modules/widget/tpl/widget_generate_code.html @@ -67,12 +67,22 @@ +
+ + + +
+
+ + + +

{nl2br($var->description)}

diff --git a/modules/widget/tpl/widget_generate_code_in_page.html b/modules/widget/tpl/widget_generate_code_in_page.html index 03920930f..cc6e672a0 100644 --- a/modules/widget/tpl/widget_generate_code_in_page.html +++ b/modules/widget/tpl/widget_generate_code_in_page.html @@ -69,12 +69,22 @@ +
+ + + +
+
+ + + +

{nl2br($var->description)}