diff --git a/adm/admin.head.php b/adm/admin.head.php index 9a61a3730..39a11acb2 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -57,10 +57,10 @@ function imageview(id, w, h) submenu.left = tempX - ( w + 11 ); submenu.top = tempY - ( h / 2 ); - //selectBoxVisible(); + selectBoxVisible(); - //if (el_id.style.display != 'none') - // selectBoxHidden(id); + if (el_id.style.display != 'none') + selectBoxHidden(id); } @@ -81,9 +81,9 @@ function imageview(id, w, h)
  • - + - 쇼핑몰 메인 + 홈페이지 메인
  • diff --git a/adm/board_copy.php b/adm/board_copy.php index fb6808d6c..cc24a7e5d 100644 --- a/adm/board_copy.php +++ b/adm/board_copy.php @@ -4,8 +4,6 @@ include_once("./_common.php"); auth_check($auth[$sub_menu], 'w'); -$token = get_token(); - $g4['title'] = '게시판 복사'; $administrator = 1; include_once(G4_PATH.'/head.sub.php'); @@ -43,6 +41,9 @@ include_once(G4_PATH.'/head.sub.php');
    +

    + 게시판을 복사하시려면 복사 버튼을, 작성을 취소하고 창을 닫으시려면 창닫기 버튼을 누르세요. +

    diff --git a/adm/board_copy_update.php b/adm/board_copy_update.php index 7fc7452bd..5628417d3 100644 --- a/adm/board_copy_update.php +++ b/adm/board_copy_update.php @@ -15,8 +15,6 @@ $row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where bo_tab if ($row['cnt']) alert($target_table.'은(는) 이미 존재하는 게시판 테이블명 입니다.\\n복사할 테이블명으로 사용할 수 없습니다.'); -check_token(); - // 게시판 테이블 생성 $sql = get_table_define($g4['write_prefix'] . $bo_table); $sql = str_replace($g4['write_prefix'] . $bo_table, $g4['write_prefix'] . $target_table, $sql); @@ -24,6 +22,11 @@ sql_query($sql); $file_copy = array(); +// 구조만 복사시에는 공지사항 번호는 복사하지 않는다. +if ($copy_case == 'schema_only') { + $board['bo_notice'] = ''; +} + // 게시판 정보 $sql = " insert into {$g4['board_table']} set bo_table = '$target_table', @@ -63,16 +66,20 @@ $sql = " insert into {$g4['board_table']} bo_use_list_content = '{$board[bo_use_list_content]}', bo_table_width = '{$board[bo_table_width]}', bo_subject_len = '{$board[bo_subject_len]}', + bo_mobile_subject_len = '{$board[bo_mobile_subject_len]}', bo_page_rows = '{$board[bo_page_rows]}', + bo_mobile_page_rows = '{$board[bo_mobile_page_rows]}', bo_new = '{$board[bo_new]}', bo_hot = '{$board[bo_hot]}', bo_image_width = '{$board[bo_image_width]}', bo_skin = '{$board['bo_skin']}', - bo_mobile_skin = '{$board['bo_mobile']}', + bo_mobile_skin = '{$board['bo_mobile_skin']}', bo_include_head = '{$board['bo_include_head']}', bo_include_tail = '{$board['bo_include_tail']}', bo_content_head = '".addslashes($board['bo_content_head'])."', bo_content_tail = '".addslashes($board['bo_content_tail'])."', + bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."', + bo_mobile_content_tail = '".addslashes($board['bo_mobile_content_tail'])."', bo_insert_content = '".addslashes($board['bo_insert_content'])."', bo_gallery_cols = '{$board[bo_gallery_cols]}', bo_gallery_width = '{$board[bo_gallery_width]}', diff --git a/adm/board_form.php b/adm/board_form.php index 8ddc81c08..4fd5e96e9 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -33,11 +33,26 @@ if (!isset($board['bo_gallery_width'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_gallery_width` INT NOT NULL AFTER `bo_gallery_cols`, ADD `bo_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_width`, ADD `bo_mobile_gallery_cols` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_height`, ADD `bo_mobile_gallery_width` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_cols`, ADD `bo_mobile_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_width` ", false); } +if (!isset($board['bo_mobile_subject_len'])) { + sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_subject_len` INT(11) NOT NULL DEFAULT '0' AFTER `bo_subject_len` ", false); +} + +if (!isset($board['bo_mobile_page_rows'])) { + sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_page_rows` INT(11) NOT NULL DEFAULT '0' AFTER `bo_page_rows` ", false); +} + +if (!isset($board['bo_mobile_content_head'])) { + sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_content_head` TEXT NOT NULL AFTER `bo_content_head`, ADD `bo_mobile_content_tail` TEXT NOT NULL AFTER `bo_content_tail`", false); +} + +$required = ""; +$readonly = ""; if ($w == '') { $html_title .= ' 생성'; - $bo_table_attr = 'required alnum_'; + $required = 'required'; + $required_valid = 'alnum_'; $sound_only = '필수'; $board['bo_count_delete'] = 1; @@ -55,7 +70,9 @@ if ($w == '') { $board['bo_mobile_gallery_height'] = 100; $board['bo_table_width'] = 100; $board['bo_page_rows'] = $config['cf_page_rows']; + $board['bo_mobile_page_rows'] = $config['cf_page_rows']; $board['bo_subject_len'] = 60; + $board['bo_mobile_subject_len'] = 30; $board['bo_new'] = 24; $board['bo_hot'] = 100; $board['bo_image_width'] = 600; @@ -83,7 +100,7 @@ if ($w == '') { alert('그룹이 틀립니다.'); } - $bo_table_attr = 'readonly'; + $readonly = 'readonly'; } @@ -127,7 +144,7 @@ $pg_anchor = "