From 3813b7b165bc251cd19de6d258c77eebf5760370 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 1 Feb 2013 17:10:20 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=EB=B6=84=EB=A5=98?= =?UTF-8?q?=20select=20option=20=EC=9D=84=20ul=20li=20=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/list.php | 8 ++++---- bbs/write.php | 1 + lib/common.lib.php | 10 +++++----- skin/board/neo/list.skin.php | 6 +++--- skin/board/neo/write.skin.php | 13 ++++++------- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/bbs/list.php b/bbs/list.php index c8d3add00..cd09299b9 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -8,10 +8,10 @@ if ($board['bo_use_category']) { $is_category = true; $category_location = './board.php?bo_table='.$bo_table.'&sca='; - $categorys = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음 - for ($i=0; $i'; + $categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음 + for ($i=0; $i'; } } diff --git a/bbs/write.php b/bbs/write.php index a5954a0e8..3341aa8f3 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -224,6 +224,7 @@ if ($is_guest || ($is_admin && $w == 'u' && $member['mb_id'] != $write['mb_id']) } $is_category = false; +$category_option = ''; if ($board['bo_use_category']) { $ca_name = ""; if (isset($write['ca_name'])) diff --git a/lib/common.lib.php b/lib/common.lib.php index 01b161511..4ecde76e5 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -797,17 +797,17 @@ function get_category_option($bo_table='', $ca_name='') { global $g4, $board; - $arr = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음 + $categories = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음 $str = ""; - for ($i=0; $i
- +
diff --git a/skin/board/neo/write.skin.php b/skin/board/neo/write.skin.php index 136dd0871..f870310b8 100644 --- a/skin/board/neo/write.skin.php +++ b/skin/board/neo/write.skin.php @@ -152,13 +152,12 @@ echo $option_hidden; // 관리자라면 분류 선택에 '공지' 옵션을 추가함 if ($is_admin) { - echo " - if (typeof(document.fwrite.ca_name) != 'undefined') - { - document.fwrite.ca_name.options.length += 1; - document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지'; - document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지'; - }"; + echo ' + if (ca_name_select = document.getElementById("ca_name")) { + ca_name_select.options.length += 1; + ca_name_select.options[ca_name_select.options.length-1].value = "공지"; + ca_name_select.options[ca_name_select.options.length-1].text = "공지"; + }'; } ?>