AvocadoAmber/AvocadoEdition_Light/adm/board_form.php

1028 lines
52 KiB
PHP
Raw Normal View History

2022-09-17 20:50:50 +09:00
<?php
$sub_menu = "300100";
2024-09-23 11:07:19 +09:00
include_once "./_common.php";
2024-09-23 11:10:50 +09:00
include_once G5_EDITOR_LIB;
2022-09-17 20:50:50 +09:00
auth_check($auth[$sub_menu], 'w');
$sql = " select count(*) as cnt from {$g5['group_table']} ";
$row = sql_fetch($sql);
if (!$row['cnt'])
2024-09-19 20:57:39 +09:00
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
2022-09-17 20:50:50 +09:00
$html_title = '게시판';
if (!isset($board['bo_device'])) {
2024-09-19 20:57:39 +09:00
// 게시판 사용 필드 추가
// both : pc, mobile 둘다 사용
// pc : pc 전용 사용
// mobile : mobile 전용 사용
// none : 사용 안함
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_device` ENUM( 'both', 'pc', 'mobile' ) NOT NULL DEFAULT 'both' AFTER `bo_subject` ", false);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_mobile_skin'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `bo_skin` ", false);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_gallery_width'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['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_width` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_height`, ADD `bo_mobile_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_width` ", false);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_mobile_subject_len'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_mobile_subject_len` INT(11) NOT NULL DEFAULT '0' AFTER `bo_subject_len` ", false);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_mobile_page_rows'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_mobile_page_rows` INT(11) NOT NULL DEFAULT '0' AFTER `bo_page_rows` ", false);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_mobile_content_head'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['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);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_use_cert'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT '' AFTER `bo_use_email` ", false);
2022-09-17 20:50:50 +09:00
}
2024-09-22 23:17:57 +09:00
if (!isset($board['bo_pass'])) {
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_pass` varchar(255) NOT NULL DEFAULT '' AFTER `bo_use_email` , ADD `bo_use_pass` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_email`", false);
}
2022-09-17 20:50:50 +09:00
if (!isset($board['bo_use_sns'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_use_sns` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_cert` ", false);
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
for ($i = 0; $row = sql_fetch_array($result); $i++) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
2024-09-19 21:06:35 +09:00
ADD `wr_facebook_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_ip`,
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user` ", false);
2024-09-19 20:57:39 +09:00
}
2022-09-17 20:50:50 +09:00
}
$sql = " SHOW COLUMNS FROM `{$g5['board_table']}` LIKE 'bo_use_cert' ";
$row = sql_fetch($sql);
2024-09-19 20:57:39 +09:00
if (strpos($row['Type'], 'hp-') === false) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` CHANGE `bo_use_cert` `bo_use_cert` ENUM('','cert','adult','hp-cert','hp-adult') NOT NULL DEFAULT '' ", false);
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_use_list_file'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_use_list_file` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_list_view` ", false);
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
for ($i = 0; $row = sql_fetch_array($result); $i++) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
2024-09-19 21:06:35 +09:00
ADD `wr_file` TINYINT NOT NULL DEFAULT '0' AFTER `wr_datetime` ", false);
2024-09-19 20:57:39 +09:00
}
2022-09-17 20:50:50 +09:00
}
if (!isset($board['bo_mobile_subject'])) {
2024-09-22 10:46:52 +09:00
sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_mobile_subject` VARCHAR(255) NOT NULL DEFAULT '' AFTER `bo_subject` ", false);
2022-09-17 20:50:50 +09:00
}
$required = "";
$readonly = "";
if ($w == '') {
2024-09-19 20:57:39 +09:00
$html_title .= ' 생성';
$required = 'required';
$required_valid = 'alnum_';
$sound_only = '<strong class="sound_only">필수</strong>';
2024-09-22 23:17:57 +09:00
$board['bo_count_delete'] = 1;
$board['bo_count_modify'] = 1;
2024-09-19 20:57:39 +09:00
$board['bo_read_point'] = $config['cf_read_point'];
$board['bo_write_point'] = $config['cf_write_point'];
$board['bo_comment_point'] = $config['cf_comment_point'];
$board['bo_download_point'] = $config['cf_download_point'];
$board['bo_gallery_height'] = 600;
$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;
2024-09-22 23:17:57 +09:00
$board['bo_upload_count'] = 1;
2024-09-19 20:57:39 +09:00
$board['bo_upload_size'] = (int) ini_get("upload_max_filesize") * 1048576;
2024-09-22 23:17:57 +09:00
$board['bo_gallery_cols'] = 4;
$board['bo_gallery_width'] = 130;
2024-09-19 20:57:39 +09:00
$board['bo_reply_order'] = 1;
$board['bo_use_search'] = 1;
$board['bo_skin'] = 'basic';
$board['bo_mobile_skin'] = 'basic';
$board['gr_id'] = $gr_id;
$board['bo_use_secret'] = 0;
$board['bo_include_head'] = '_head.php';
$board['bo_include_tail'] = '_tail.php';
2024-09-22 23:17:57 +09:00
$board['bo_table_width'] = '100';
2022-09-17 20:50:50 +09:00
} else if ($w == 'u') {
2024-09-19 20:57:39 +09:00
$html_title .= ' 수정';
2024-09-22 23:17:57 +09:00
if ($board['bo_gallery_cols'] == 0)
$board['bo_gallery_cols'] = 4;
if ($board['bo_table_width'] == 0)
$board['bo_table_width'] = '100';
if ($board['bo_gallery_width'] == 0)
$board['bo_gallery_width'] = 130;
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
if (!$board['bo_table'])
alert('존재하지 않은 게시판 입니다.');
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
if ($is_admin == 'group') {
if ($member['mb_id'] != $group['gr_admin'])
alert('그룹이 틀립니다.');
}
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
$readonly = 'readonly';
2022-09-17 20:50:50 +09:00
}
if ($is_admin != 'super') {
2024-09-19 20:57:39 +09:00
$group = get_group($board['gr_id']);
$is_admin = is_admin($member['mb_id']);
2022-09-17 20:50:50 +09:00
}
$g5['title'] = $html_title;
2024-09-23 11:07:19 +09:00
include_once "./admin.head.php";
2022-09-17 20:50:50 +09:00
$pg_anchor = '<ul class="anchor">
2024-09-19 21:06:35 +09:00
<li><a href="#anc_001">기본 설정</a></li>
<li><a href="#anc_002">권한 설정</a></li>
<li><a href="#anc_003">기능 설정</a></li>
<li><a href="#anc_006">확장 기능 설정</a></li>
<li><a href="#anc_004">디자인/양식</a></li>
2024-09-22 23:17:57 +09:00
<li><a href="#anc_005">포인트 설정</a></li>
2024-09-19 21:06:35 +09:00
<li><a href="#anc_007">여분필드</a></li>
2022-09-17 20:50:50 +09:00
</ul>';
?>
2024-09-19 20:57:39 +09:00
<form name="fboardform" id="fboardform" action="./board_form_update.php" onsubmit="return fboardform_submit(this)"
method="post" enctype="multipart/form-data">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="token" value="">
<input type="hidden" name="bo_device" value="both">
<input type="hidden" name="bo_link_level" value="1">
<input type="hidden" name="bo_upload_level" value="1">
<input type="hidden" name="bo_download_level" value="1">
<input type="hidden" name="bo_html_level" value="1">
<input type="hidden" name="bo_include_head" value="_head.php">
<input type="hidden" name="bo_include_tail" value="_tail.php">
<input type="hidden" name="bo_subject_len" value="120">
<input type="hidden" name="bo_mobile_subject_len" value="120">
<input type="hidden" name="bo_hot" value="0">
<input type="hidden" name="bo_count_modify" value="<?php echo $board['bo_count_modify'] ?>" />
<input type="hidden" name="bo_count_delete" value="<?php echo $board['bo_count_delete'] ?>" />
<input type="hidden" name="bo_new" value="<?php echo $board['bo_new'] ?>" />
<input type="hidden" name="bo_reply_order" value="<?php echo $board['bo_reply_order'] ?>" />
<div class="btn_confirm01 btn_confirm">
2024-09-22 23:17:57 +09:00
<?php if ($w == 'u') { ?>
<a href="./board_thumbnail_delete.php?bo_table=<?= $board['bo_table'] ?>&amp;<?= $qstr ?>"
onclick="return delete_confirm2('게시판 썸네일 파일을 삭제하시겠습니까?');" class="btn ty2" title="게시판 썸네일 삭제">
<span class="material-icons">
layers_clear
</span>
</a>
<a href="./board_copy.php?bo_table=<?= $bo_table ?>" id="board_copy" target="win_board_copy" class="btn ty2"
title="게시판 복사">
<span class="material-icons">
content_copy
</span>
</a>
<?php } ?>
2024-09-19 20:57:39 +09:00
<a href="./board_list.php" title="목록" class="btn ty2"><span class="material-icons">list</span></a>
<div class="btn">
<span class="material-icons">save</span>
<input type="submit" value="확인" class="btn_submit" accesskey="s">
</div>
</div>
<section id="anc_001">
<h2 class="h2_frm">게시판 기본 설정</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<caption>게시판 기본 설정</caption>
<colgroup>
2024-09-19 21:06:35 +09:00
<col style="width: 160px;">
2024-09-19 20:57:39 +09:00
<col>
<col style="width: 180px;">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="bo_table">TABLE<?php echo $sound_only ?></label></th>
<td colspan="2">
<input type="text" name="bo_table" value="<?php echo $board['bo_table'] ?>" id="bo_table" <?php echo $required ?> <?php echo $readonly ?>
class="frm_input <?php echo $reaonly ?> <?php echo $required ?> <?php echo $required_valid ?>"
maxlength="20">
<?php if ($w == '') { ?>
영문자, 숫자, _ 가능 (공백없이 20 이내)
<?php } else { ?>
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $board['bo_table'] ?>"
class="btn_frmline">게시판 바로가기</a>
<a href="./board_list.php" class="btn_frmline">목록으로</a>
<?php } ?>
</td>
</tr>
<tr>
<th scope="row"><label for="gr_id">그룹<strong class="sound_only">필수</strong></label></th>
<td colspan="2">
<?php echo get_group_select('gr_id', $board['gr_id'], 'required'); ?>
<?php if ($w == 'u') { ?><a
href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;"
class="btn_frmline">동일그룹 게시판목록</a><?php } ?>
</td>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_type">게시판 타입<strong class="sound_only">필수</strong></label></th>
<td colspan="2">
<select id="bo_type" name="bo_type">
<option value="board" <?= $board['bo_type'] == 'board' ? "selected" : "" ?>>일반게시판</option>
<option value="mmb" <?= $board['bo_type'] == 'mmb' ? "selected" : "" ?>>로드비 게시판</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_subject">게시판 제목<strong class="sound_only">필수</strong></label></th>
<td colspan="2">
<input type="text" name="bo_subject" value="<?php echo get_text($board['bo_subject']) ?>" id="bo_subject"
required class="required frm_input" size="80" maxlength="120">
</td>
</tr>
<tr>
<th scope="row"><label for="bo_category_list">분류</label></th>
<td>
<?php echo help('분류와 분류 사이는 | 로 구분하세요. (예: 질문|답변) 첫자로 #은 입력하지 마세요. (예: #질문|#답변 [X])') ?>
<input type="text" name="bo_category_list" value="<?php echo get_text($board['bo_category_list']) ?>"
id="bo_category_list" class="frm_input" size="70">
<input type="checkbox" name="bo_use_category" value="1" id="bo_use_category" <?php echo $board['bo_use_category'] ? 'checked' : ''; ?>>
<label for="bo_use_category">사용</label>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_category_list" value="1" id="chk_grp_category_list">
<label for="chk_grp_category_list">그룹적용</label>
<input type="checkbox" name="chk_all_category_list" value="1" id="chk_all_category_list">
<label for="chk_all_category_list">전체적용</label>
</td>
</tr>
2024-09-22 23:17:57 +09:00
<tr>
<th scope="row"><label for="bo_pass">게시판 비밀번호</label></th>
<td colspan="2">
<input type="text" name="bo_pass" value="<?= $board['bo_pass'] ?>" id="bo_pass" class="frm_input"
size="80" maxlength="120">
<label for="bo_use_pass"><input type="checkbox" name="bo_use_pass" id="bo_use_pass" value="1"
<?= $board['bo_use_pass'] == 1 ? "checked" : ""; ?>> 비밀번호 사용</label>
</td>
</tr>
2024-09-19 20:57:39 +09:00
<?php if ($w == 'u') { ?>
<tr>
<th scope="row"><label for="proc_count">카운트 조정</label></th>
<td colspan="2">
<?php echo help('현재 원글수 : ' . number_format($board['bo_count_write']) . ', 현재 댓글수 : ' . number_format($board['bo_count_comment']) . "\n" . '게시판 목록에서 글의 번호가 맞지 않을 경우에 체크하십시오.') ?>
<input type="checkbox" name="proc_count" value="1" id="proc_count">
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</section>
<section id="anc_002">
<h2 class="h2_frm">게시판 권한 설정</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<caption>게시판 권한 설정</caption>
<colgroup>
2024-09-19 21:06:35 +09:00
<col style="width: 160px;">
2024-09-19 20:57:39 +09:00
<col>
<col style="width: 180px;">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="bo_list_level">목록보기 권한</label></th>
<td>
<?php echo get_member_level_select('bo_list_level', 1, 10, $board['bo_list_level']) ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_list_level" value="1" id="chk_grp_list_level">
<label for="chk_grp_list_level">그룹적용</label>
<input type="checkbox" name="chk_all_list_level" value="1" id="chk_all_list_level">
<label for="chk_all_list_level">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_read_level">글읽기 권한</label></th>
<td>
<?php echo get_member_level_select('bo_read_level', 1, 10, $board['bo_read_level']) ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_read_level" value="1" id="chk_grp_read_level">
<label for="chk_grp_read_level">그룹적용</label>
<input type="checkbox" name="chk_all_read_level" value="1" id="chk_all_read_level">
<label for="chk_all_read_level">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_write_level">글쓰기 권한</label></th>
<td>
<?php echo get_member_level_select('bo_write_level', 1, 10, $board['bo_write_level']) ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_write_level" value="1" id="chk_grp_write_level">
<label for="chk_grp_write_level">그룹적용</label>
<input type="checkbox" name="chk_all_write_level" value="1" id="chk_all_write_level">
<label for="chk_all_write_level">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_reply_level">글답변 권한</label></th>
<td>
<?php echo get_member_level_select('bo_reply_level', 1, 10, $board['bo_reply_level']) ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_reply_level" value="1" id="chk_grp_reply_level">
<label for="chk_grp_reply_level">그룹적용</label>
<input type="checkbox" name="chk_all_reply_level" value="1" id="chk_all_reply_level">
<label for="chk_all_reply_level">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_comment_level">댓글쓰기 권한</label></th>
<td>
<?php echo get_member_level_select('bo_comment_level', 1, 10, $board['bo_comment_level']) ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_comment_level" value="1" id="chk_grp_comment_level">
<label for="chk_grp_comment_level">그룹적용</label>
<input type="checkbox" name="chk_all_comment_level" value="1" id="chk_all_comment_level">
<label for="chk_all_comment_level">전체적용</label>
</td>
</tr>
</tbody>
</table>
</div>
</section>
<section id="anc_003">
<h2 class="h2_frm">게시판 기능 설정</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<caption>게시판 기능 설정</caption>
<colgroup>
2024-09-19 21:06:35 +09:00
<col style="width: 160px;">
2024-09-19 20:57:39 +09:00
<col>
<col style="width: 180px;">
</colgroup>
<tbody>
2024-09-22 23:17:57 +09:00
<tr>
<th scope="row"><label for="bo_write_min"> 최소 글자수 제한</label></th>
<td>
<?php echo help('글 입력시 최소 글자수를 설정. 0을 입력하거나 최고관리자, DHTML 에디터 사용시에는 검사하지 않음') ?>
<input type="text" name="bo_write_min" value="<?php echo $board['bo_write_min'] ?>" id="bo_write_min"
class="numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_write_min" value="1" id="chk_grp_write_min">
<label for="chk_grp_write_min">그룹적용</label>
<input type="checkbox" name="chk_all_write_min" value="1" id="chk_all_write_min">
<label for="chk_all_write_min">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_write_max"> 최대 글자수 제한</label></th>
<td>
<?php echo help('글 입력시 최대 글자수를 설정. 0을 입력하거나 최고관리자, DHTML 에디터 사용시에는 검사하지 않음') ?>
<input type="text" name="bo_write_max" value="<?php echo $board['bo_write_max'] ?>" id="bo_write_max"
class="numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_write_max" value="1" id="chk_grp_write_max">
<label for="chk_grp_write_max">그룹적용</label>
<input type="checkbox" name="chk_all_write_max" value="1" id="chk_all_write_max">
<label for="chk_all_write_max">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_comment_min">댓글 최소 글자수 제한</label></th>
<td>
<?php echo help('댓글 입력시 최소 글자수를 설정. 0을 입력하면 검사하지 않음') ?>
<input type="text" name="bo_comment_min" value="<?php echo $board['bo_comment_min'] ?>"
id="bo_comment_min" class="numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_comment_min" value="1" id="chk_grp_comment_min">
<label for="chk_grp_comment_min">그룹적용</label>
<input type="checkbox" name="chk_all_comment_min" value="1" id="chk_all_comment_min">
<label for="chk_all_comment_min">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_comment_max">댓글 최대 글자수 제한</label></th>
<td>
<?php echo help('댓글 입력시 최대 글자수를 설정. 0을 입력하면 검사하지 않음') ?>
<input type="text" name="bo_comment_max" value="<?php echo $board['bo_comment_max'] ?>"
id="bo_comment_max" class="numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_comment_max" value="1" id="chk_grp_comment_max">
<label for="chk_grp_comment_max">그룹적용</label>
<input type="checkbox" name="chk_all_comment_max" value="1" id="chk_all_comment_max">
<label for="chk_all_comment_max">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_count_modify">원글 수정 불가<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('댓글의 수가 설정 수 이상이면 원글을 수정할 수 없습니다. 0으로 설정하시면 댓글 수에 관계없이 수정할 수있습니다.'); ?>
댓글 <input type="text" name="bo_count_modify" value="<?php echo $board['bo_count_modify'] ?>"
id="bo_count_modify" required class="required numeric frm_input" size="3"> 이상 달리면 수정불가
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_count_modify" value="1" id="chk_grp_count_modify">
<label for="chk_grp_count_modify">그룹적용</label>
<input type="checkbox" name="chk_all_count_modify" value="1" id="chk_all_count_modify">
<label for="chk_all_count_modify">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_count_delete">원글 삭제 불가<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('댓글의 수가 설정 수 이상이면 원글을 삭제할 수 없습니다. 0으로 설정하시면 댓글 수에 관계없이 삭제할 수있습니다.'); ?>
댓글 <input type="text" name="bo_count_delete" value="<?php echo $board['bo_count_delete'] ?>"
id="bo_count_delete" required class="required numeric frm_input" size="3"> 이상 달리면 삭제불가
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_count_delete" value="1" id="chk_grp_count_delete">
<label for="chk_grp_count_delete">그룹적용</label>
<input type="checkbox" name="chk_all_count_delete" value="1" id="chk_all_count_delete">
<label for="chk_all_count_delete">전체적용</label>
</td>
</tr>
2024-09-19 20:57:39 +09:00
<tr>
<th scope="row"><label for="bo_use_secret">비밀글 사용</label></th>
<td>
<?php echo help('"체크박스"는 글작성시 비밀글 체크가 가능합니다. "무조건"은 작성되는 모든글을 비밀글로 작성합니다. (관리자는 체크박스로 출력합니다.) 스킨에 따라 적용되지 않을 수 있습니다.') ?>
<select id="bo_use_secret" name="bo_use_secret">
<?php echo option_selected(0, $board['bo_use_secret'], "사용하지 않음"); ?>
<?php echo option_selected(1, $board['bo_use_secret'], "체크박스"); ?>
<?php echo option_selected(2, $board['bo_use_secret'], "무조건"); ?>
</select>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_use_secret" value="1" id="chk_grp_use_secret">
<label for="chk_grp_use_secret">그룹적용</label>
<input type="checkbox" name="chk_all_use_secret" value="1" id="chk_all_use_secret">
<label for="chk_all_use_secret">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_use_dhtml_editor">DHTML 에디터 사용</label></th>
<td>
<?php echo help('글작성시 내용을 DHTML 에디터 기능으로 사용할 것인지 설정합니다. 스킨에 따라 적용되지 않을 수 있습니다.') ?>
<input type="checkbox" name="bo_use_dhtml_editor" value="1" <?php echo $board['bo_use_dhtml_editor'] ? 'checked' : ''; ?> id="bo_use_dhtml_editor">
사용
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_use_dhtml_editor" value="1" id="chk_grp_use_dhtml_editor">
<label for="chk_grp_use_dhtml_editor">그룹적용</label>
<input type="checkbox" name="chk_all_use_dhtml_editor" value="1" id="chk_all_use_dhtml_editor">
<label for="chk_all_use_dhtml_editor">전체적용</label>
</td>
</tr>
2024-09-22 23:17:57 +09:00
<tr>
<th scope="row"><label for="bo_use_list_content">목록에서 내용 사용</label></th>
<td>
<?php echo help("목록에서 게시판 제목외에 내용도 읽어와야 할 경우에 설정하는 옵션입니다. 기본은 사용하지 않습니다."); ?>
<input type="checkbox" name="bo_use_list_content" value="1" id="bo_use_list_content" <?php echo $board['bo_use_list_content'] ? 'checked' : ''; ?>>
사용 (사용시 속도가 느려질 있습니다.)
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_use_list_content" value="1" id="chk_grp_use_list_content">
<label for="chk_grp_use_list_content">그룹적용</label>
<input type="checkbox" name="chk_all_use_list_content" value="1" id="chk_all_use_list_content">
<label for="chk_all_use_list_content">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_use_list_file">목록에서 파일 사용</label></th>
<td>
<?php echo help("목록에서 게시판 첨부파일을 읽어와야 할 경우에 설정하는 옵션입니다. 기본은 사용하지 않습니다."); ?>
<input type="checkbox" name="bo_use_list_file" value="1" id="bo_use_list_file" <?php echo $board['bo_use_list_file'] ? 'checked' : ''; ?>>
사용 (사용시 속도가 느려질 있습니다.)
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_use_list_file" value="1" id="chk_grp_use_list_file">
<label for="chk_grp_use_list_file">그룹적용</label>
<input type="checkbox" name="chk_all_use_list_file" value="1" id="chk_all_use_list_file">
<label for="chk_all_use_list_file">전체적용</label>
</td>
</tr>
2024-09-19 20:57:39 +09:00
<tr>
<th scope="row"><label for="bo_use_list_view">전체목록보이기 사용</label></th>
<td>
<input type="checkbox" name="bo_use_list_view" value="1" id="bo_use_list_view" <?php echo $board['bo_use_list_view'] ? 'checked' : ''; ?>>
사용
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_use_list_view" value="1" id="chk_grp_use_list_view">
<label for="chk_grp_use_list_view">그룹적용</label>
<input type="checkbox" name="chk_all_use_list_view" value="1" id="chk_all_use_list_view">
<label for="chk_all_use_list_view">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_upload_count">파일 업로드 개수<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('게시물 한건당 업로드 할 수 있는 파일의 최대 개수 (0 은 파일첨부 사용하지 않음)') ?>
<input type="text" name="bo_upload_count" value="<?php echo $board['bo_upload_count'] ?>"
id="bo_upload_count" required class="required numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_upload_count" value="1" id="chk_grp_upload_count">
<label for="chk_grp_upload_count">그룹적용</label>
<input type="checkbox" name="chk_all_upload_count" value="1" id="chk_all_upload_count">
<label for="chk_all_upload_count">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_upload_size">파일 업로드 용량<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('최대 ' . ini_get("upload_max_filesize") . ' 이하 업로드 가능, 1 MB = 1,048,576 bytes') ?>
업로드 파일 한개당 <input type="text" name="bo_upload_size" value="<?php echo $board['bo_upload_size'] ?>"
id="bo_upload_size" required class="required numeric frm_input" size="10"> bytes 이하
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_upload_size" value="1" id="chk_grp_upload_size">
<label for="chk_grp_upload_size">그룹적용</label>
<input type="checkbox" name="chk_all_upload_size" value="1" id="chk_all_upload_size">
<label for="chk_all_upload_size">전체적용</label>
</td>
</tr>
</tbody>
</table>
</div>
</section>
2024-09-19 21:06:35 +09:00
<?php
$skin_path = G5_PATH . "/" . G5_SKIN_DIR . "/board/" . $board['bo_skin'] . "/extra.config.php";
if (file_exists($skin_path)) {
include_once $skin_path;
2024-09-22 23:17:57 +09:00
} else {
?>
<section id="anc_006">
<h2 class="h2_frm">확장 기능 설정</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<div style="background: #f9f9f9; padding: 8px 16px; border-color: #efeff5; border-style: solid; border-width: 1px 0 1px 0; color: #5b5b5a">
게시판 스킨에 확장 기능이 없습니다.
</div>
</div>
</section>
<?php
2024-09-19 21:06:35 +09:00
}
?>
2024-09-19 20:57:39 +09:00
<section id="anc_004">
<h2 class="h2_frm">게시판 디자인/양식</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<caption>게시판 디자인/양식</caption>
<colgroup>
2024-09-19 21:06:35 +09:00
<col style="width: 160px;">
2024-09-19 20:57:39 +09:00
<col>
<col style="width: 180px;">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="bo_skin">스킨 디렉토리<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo get_skin_select('board', 'bo_skin', 'bo_skin', $board['bo_skin'], 'required'); ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_skin" value="1" id="chk_grp_skin">
<label for="chk_grp_skin">그룹적용</label>
<input type="checkbox" name="chk_all_skin" value="1" id="chk_all_skin">
<label for="chk_all_skin">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_include_head">상단 파일 경로</label></th>
<td>
<input type="text" name="bo_include_head" value="<?php echo $board['bo_include_head'] ?>"
id="bo_include_head" class="frm_input" size="50">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_include_head" value="1" id="chk_grp_include_head">
<label for="chk_grp_include_head">그룹적용</label>
<input type="checkbox" name="chk_all_include_head" value="1" id="chk_all_include_head">
<label for="chk_all_include_head">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_include_tail">하단 파일 경로</label></th>
<td>
<input type="text" name="bo_include_tail" value="<?php echo $board['bo_include_tail'] ?>"
id="bo_include_tail" class="frm_input" size="50">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_include_tail" value="1" id="chk_grp_include_tail">
<label for="chk_grp_include_tail">그룹적용</label>
<input type="checkbox" name="chk_all_include_tail" value="1" id="chk_all_include_tail">
<label for="chk_all_include_tail">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_content_head">공지사항</label></th>
<td>
<?php echo editor_html("bo_content_head", get_text($board['bo_content_head'], 0)); ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_content_head" value="1" id="chk_grp_content_head">
<label for="chk_grp_content_head">그룹적용</label>
<input type="checkbox" name="chk_all_content_head" value="1" id="chk_all_content_head">
<label for="chk_all_content_head">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_insert_content">글쓰기 기본 내용</label></th>
<td>
<textarea id="bo_insert_content" name="bo_insert_content"
rows="5"><?php echo $board['bo_insert_content'] ?></textarea>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_insert_content" value="1" id="chk_grp_insert_content">
<label for="chk_grp_insert_content">그룹적용</label>
<input type="checkbox" name="chk_all_insert_content" value="1" id="chk_all_insert_content">
<label for="chk_all_insert_content">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_page_rows">페이지당 목록 <strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="bo_page_rows" value="<?php echo $board['bo_page_rows'] ?>" id="bo_page_rows"
required class="required numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_page_rows" value="1" id="chk_grp_page_rows">
<label for="chk_grp_page_rows">그룹적용</label>
<input type="checkbox" name="chk_all_page_rows" value="1" id="chk_all_page_rows">
<label for="chk_all_page_rows">전체적용</label>
</td>
</tr>
2024-09-22 23:17:57 +09:00
<tr>
<th scope="row"><label for="bo_table_width">게시판 가로<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('숫자만 입력해주세요. 100이하는 퍼센티지로 출력되며 그 위로는 픽셀단위로 출력됩니다.') ?>
<input type="text" name="bo_table_width" value="<?php echo $board['bo_table_width'] ?>"
id="bo_table_width" required class="required numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_bo_table_width" value="1" id="chk_grp_bo_table_width">
<label for="chk_grp_bo_table_width">그룹적용</label>
<input type="checkbox" name="chk_all_bo_table_width" value="1" id="chk_all_bo_table_width">
<label for="chk_all_bo_table_width">전체적용</label>
</td>
</tr>
2024-09-19 20:57:39 +09:00
<tr>
<th scope="row"><label for="bo_image_width">이미지 크기<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('일반 게시판에서 출력되는 이미지의 폭 크기') ?>
<input type="text" name="bo_image_width" value="<?php echo $board['bo_image_width'] ?>"
id="bo_image_width" required class="required numeric frm_input" size="4"> 픽셀
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_image_width" value="1" id="chk_grp_image_width">
<label for="chk_grp_image_width">그룹적용</label>
<input type="checkbox" name="chk_all_image_width" value="1" id="chk_all_image_width">
<label for="chk_all_image_width">전체적용</label>
</td>
</tr>
<tr>
2024-09-22 23:17:57 +09:00
<th scope="row"><label for="bo_gallery_height">로그접기/갤러리 세로기준<strong class="sound_only">필수</strong></label>
</th>
2024-09-19 20:57:39 +09:00
<td>
<?php echo help('자비란 형태의 게시판에서만 적용됩니다.') ?>
<input type="text" name="bo_gallery_height" value="<?php echo $board['bo_gallery_height'] ?>"
id="bo_gallery_height" required class="required numeric frm_input" size="4"> 픽셀
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_gallery_height" value="1" id="chk_grp_gallery_height">
<label for="chk_grp_gallery_height">그룹적용</label>
<input type="checkbox" name="chk_all_gallery_height" value="1" id="chk_all_gallery_height">
<label for="chk_all_gallery_height">전체적용</label>
</td>
</tr>
2024-09-22 23:17:57 +09:00
<tr>
<th scope="row"><label for="bo_gallery_width">갤러리 가로기준</label></th>
<td>
<?php echo help('갤러리형 게시판 목록상에서 보여질 썸네일의 가로 사이즈를 설정합니다. 게시판 스킨에 따라 적용되지 않는 게시판도 있습니다.') ?>
<input type="text" name="bo_gallery_width" value="<?php echo $board['bo_gallery_width'] ?>"
id="bo_gallery_width" required class="required numeric frm_input" size="4"> 픽셀
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_gallery_width" value="1" id="chk_grp_gallery_width">
<label for="chk_grp_gallery_width">그룹적용</label>
<input type="checkbox" name="chk_all_gallery_width" value="1" id="chk_all_gallery_width">
<label for="chk_all_gallery_width">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_gallery_cols">갤러리 개수<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('갤러리형 게시판에서 한줄에 들어갈 이미지 개수를 정합니다. 가로 사이즈는 자동으로 조절됩니다.') ?>
<input type="text" name="bo_gallery_cols" value="<?php echo $board['bo_gallery_cols'] ?>"
id="bo_gallery_cols" required class="required numeric frm_input" size="3">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_gallery_cols" value="1" id="chk_grp_gallery_cols">
<label for="chk_grp_gallery_cols">그룹적용</label>
<input type="checkbox" name="chk_all_image_width" value="1" id="chk_all_gallery_cols">
<label for="chk_all_gallery_cols">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_new"> 강조<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('글 입력후 new 이미지를 출력하는 시간. 0을 입력하시면 아이콘을 출력하지 않습니다.') ?>
<input type="text" name="bo_new" value="<?php echo $board['bo_new'] ?>" id="bo_new" required
class="required numeric frm_input" size="4">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_new" value="1" id="chk_grp_new">
<label for="chk_grp_new">그룹적용</label>
<input type="checkbox" name="chk_all_new" value="1" id="chk_all_new">
<label for="chk_all_new">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_reply_order">답변 달기</label></th>
<td>
<select id="bo_reply_order" name="bo_reply_order">
<option value="1" <?php echo get_selected($board['bo_reply_order'], 1); ?>>나중에 쓴 답변 아래로 달기 (기본)
<option value="0" <?php echo get_selected($board['bo_reply_order'], 0); ?>>나중에 쓴 답변 위로 달기
</select>
</td>
<td class="td_grpset">
<input type="checkbox" id="chk_grp_reply_order" name="chk_grp_reply_order" value="1">
<label for="chk_grp_reply_order">그룹적용</label>
<input type="checkbox" id="chk_all_reply_order" name="chk_all_reply_order" value="1">
<label for="chk_all_reply_order">전체적용</label>
</td>
</tr>
2024-09-19 20:57:39 +09:00
<tr>
<th scope="row"><label for="bo_sort_field">리스트 정렬 필드</label></th>
<td>
<?php echo help('리스트에서 기본으로 정렬에 사용할 필드를 선택합니다. "기본"으로 사용하지 않으시는 경우 속도가 느려질 수 있습니다.') ?>
<select id="bo_sort_field" name="bo_sort_field">
<option value="" <?php echo get_selected($board['bo_sort_field'], ""); ?>>wr_num, wr_reply : 기본</option>
<option value="wr_datetime asc" <?php echo get_selected($board['bo_sort_field'], "wr_datetime asc"); ?>>
wr_datetime asc : 날짜 이전것 부터</option>
<option value="wr_datetime desc" <?php echo get_selected($board['bo_sort_field'], "wr_datetime desc"); ?>>wr_datetime desc : 날짜 최근것 부터</option>
<option value="wr_hit asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_hit asc, wr_num, wr_reply"); ?>>wr_hit asc : 조회수 낮은것 부터</option>
<option value="wr_hit desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_hit desc, wr_num, wr_reply"); ?>>wr_hit desc : 조회수 높은것 부터</option>
<option value="wr_last asc" <?php echo get_selected($board['bo_sort_field'], "wr_last asc"); ?>>wr_last
asc : 최근글 이전것 부터</option>
<option value="wr_last desc" <?php echo get_selected($board['bo_sort_field'], "wr_last desc"); ?>>
wr_last desc : 최근글 최근것 부터</option>
<option value="wr_comment asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_comment asc, wr_num, wr_reply"); ?>>wr_comment asc : 댓글수 낮은것 부터</option>
<option value="wr_comment desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_comment desc, wr_num, wr_reply"); ?>>wr_comment desc : 댓글수 높은것 부터</option>
<option value="wr_good asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_good asc, wr_num, wr_reply"); ?>>wr_good asc : 추천수 낮은것 부터</option>
<option value="wr_good desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_good desc, wr_num, wr_reply"); ?>>wr_good desc : 추천수 높은것 부터</option>
<option value="wr_nogood asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_nogood asc, wr_num, wr_reply"); ?>>wr_nogood asc : 비추천수 낮은것 부터</option>
<option value="wr_nogood desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_nogood desc, wr_num, wr_reply"); ?>>wr_nogood desc : 비추천수 높은것 부터</option>
<option value="wr_subject asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_subject asc, wr_num, wr_reply"); ?>>wr_subject asc : 제목 오름차순</option>
<option value="wr_subject desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_subject desc, wr_num, wr_reply"); ?>>wr_subject desc : 제목 내림차순</option>
<option value="wr_name asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_name asc, wr_num, wr_reply"); ?>>wr_name asc : 글쓴이 오름차순</option>
<option value="wr_name desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_name desc, wr_num, wr_reply"); ?>>wr_name desc : 글쓴이 내림차순</option>
<option value="ca_name asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "ca_name asc, wr_num, wr_reply"); ?>>ca_name asc : 분류명 오름차순</option>
<option value="ca_name desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "ca_name desc, wr_num, wr_reply"); ?>>ca_name desc : 분류명 내림차순</option>
</select>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_sort_field" value="1" id="chk_grp_sort_field">
<label for="chk_grp_sort_field">그룹적용</label>
<input type="checkbox" name="chk_all_sort_field" value="1" id="chk_all_sort_field">
<label for="chk_all_sort_field">전체적용</label>
</td>
2024-09-19 21:06:35 +09:00
</tr>
2024-09-19 20:57:39 +09:00
</tbody>
</table>
</div>
</section>
2024-09-22 23:17:57 +09:00
<section id="anc_005">
<h2 class="h2_frm">게시판 포인트 설정</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<caption>게시판 포인트 설정</caption>
<colgroup>
<col style="width: 150px;">
<col>
<col style="width: 180px;">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="chk_grp_point">기본값으로 설정</label></th>
<td colspan="2">
<?php echo help('환경설정에 입력된 포인트로 설정') ?>
<input type="checkbox" name="chk_grp_point" id="chk_grp_point" onclick="set_point(this.form)">
</td>
</tr>
<tr>
<th scope="row"><label for="bo_read_point">글읽기 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="bo_read_point" value="<?php echo $board['bo_read_point'] ?>" id="bo_read_point"
required class="required frm_input" size="5">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_read_point" value="1" id="chk_grp_read_point">
<label for="chk_grp_read_point">그룹적용</label>
<input type="checkbox" name="chk_all_read_point" value="1" id="chk_all_read_point">
<label for="chk_all_read_point">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_write_point">글쓰기 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="bo_write_point" value="<?php echo $board['bo_write_point'] ?>"
id="bo_write_point" required class="required frm_input" size="5">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_write_point" value="1" id="chk_grp_write_point">
<label for="chk_grp_write_point">그룹적용</label>
<input type="checkbox" name="chk_all_write_point" value="1" id="chk_all_write_point">
<label for="chk_all_write_point">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_comment_point">댓글쓰기 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="bo_comment_point" value="<?php echo $board['bo_comment_point'] ?>"
id="bo_comment_point" required class="required frm_input" size="5">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_comment_point" value="1" id="chk_grp_comment_point">
<label for="chk_grp_comment_point">그룹적용</label>
<input type="checkbox" name="chk_all_comment_point" value="1" id="chk_all_comment_point">
<label for="chk_all_comment_point">전체적용</label>
</td>
</tr>
</tbody>
</table>
</div>
</section>
2024-09-19 21:06:35 +09:00
<section id="anc_007">
2024-09-19 20:57:39 +09:00
<h2 class="h2_frm">게시판 여분필드 설정</h2>
<?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<caption>게시판 여분필드 설정</caption>
<colgroup>
2024-09-19 21:06:35 +09:00
<col style="width: 160px;">
2024-09-19 20:57:39 +09:00
<col>
<col style="width: 180px;">
</colgroup>
<tbody>
<?php for ($i = 1; $i <= 10; $i++) { ?>
<tr>
<th scope="row">여분필드<?php echo $i ?></th>
<td class="td_extra">
<label for="bo_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
<input type="text" name="bo_<?php echo $i ?>_subj" id="bo_<?php echo $i ?>_subj"
value="<?php echo get_text($board['bo_' . $i . '_subj']) ?>" class="frm_input">
<label for="bo_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
<input type="text" name="bo_<?php echo $i ?>" value="<?php echo get_text($board['bo_' . $i]) ?>"
id="bo_<?php echo $i ?>" class="frm_input">
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_<?php echo $i ?>" value="1" id="chk_grp_<?php echo $i ?>">
<label for="chk_grp_<?php echo $i ?>">그룹적용</label>
<input type="checkbox" name="chk_all_<?php echo $i ?>" value="1" id="chk_all_<?php echo $i ?>">
<label for="chk_all_<?php echo $i ?>">전체적용</label>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</section>
2022-09-17 20:50:50 +09:00
</form>
<script>
2024-09-19 20:57:39 +09:00
$(function () {
$("#board_copy").click(function () {
window.open(this.href, "win_board_copy", "left=10,top=10,width=500,height=400");
return false;
});
$(".get_theme_galc").on("click", function () {
if (!confirm("현재 테마의 게시판 이미지 설정을 적용하시겠습니까?"))
return false;
$.ajax({
type: "POST",
url: "./theme_config_load.php",
cache: false,
async: false,
data: { type: "board" },
dataType: "json",
success: function (data) {
if (data.error) {
alert(data.error);
return false;
}
var field = Array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height', 'bo_image_width');
var count = field.length;
var key;
for (i = 0; i < count; i++) {
key = field[i];
if (data[key] != undefined && data[key] != "")
$("input[name=" + key + "]").val(data[key]);
}
}
});
});
});
function board_copy(bo_table) {
window.open("./board_copy.php?bo_table=" + bo_table, "BoardCopy", "left=10,top=10,width=500,height=200");
}
function set_point(f) {
if (f.chk_grp_point.checked) {
f.bo_read_point.value = "<?php echo $config['cf_read_point'] ?>";
f.bo_write_point.value = "<?php echo $config['cf_write_point'] ?>";
f.bo_comment_point.value = "<?php echo $config['cf_comment_point'] ?>";
f.bo_download_point.value = "<?php echo $config['cf_download_point'] ?>";
} else {
f.bo_read_point.value = f.bo_read_point.defaultValue;
f.bo_write_point.value = f.bo_write_point.defaultValue;
f.bo_comment_point.value = f.bo_comment_point.defaultValue;
f.bo_download_point.value = f.bo_download_point.defaultValue;
}
}
function fboardform_submit(f) {
<?php echo get_editor_js("bo_content_head"); ?>
<?php echo get_editor_js("bo_content_tail"); ?>
<?php echo get_editor_js("bo_mobile_content_head"); ?>
<?php echo get_editor_js("bo_mobile_content_tail"); ?>
if (parseInt(f.bo_count_modify.value) < 0) {
alert("원글 수정 불가 댓글수는 0 이상 입력하셔야 합니다.");
f.bo_count_modify.focus();
return false;
}
if (parseInt(f.bo_count_delete.value) < 1) {
alert("원글 삭제 불가 댓글수는 1 이상 입력하셔야 합니다.");
f.bo_count_delete.focus();
return false;
}
return true;
}
2022-09-17 20:50:50 +09:00
</script>
<?php
2024-09-23 11:07:19 +09:00
include_once "./admin.tail.php";
2022-09-17 20:50:50 +09:00
?>