unmanaged codestyle update
This commit is contained in:
parent
529957883c
commit
99e42ff33c
61 changed files with 4185 additions and 3629 deletions
|
|
@ -1,36 +1,37 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$src = "";
|
$src = "";
|
||||||
$img_content = "";
|
$img_content = "";
|
||||||
$thumb_class = "";
|
$thumb_class = "";
|
||||||
if($list[$i]['wr_1']) {
|
if ($list[$i]['wr_1']) {
|
||||||
$src = $list[$i]['wr_1'];
|
$src = $list[$i]['wr_1'];
|
||||||
}
|
}
|
||||||
if($src) {
|
if ($src) {
|
||||||
$img_content = '<em style="background-image:url(\''.$src.'\');"></em>';
|
$img_content = '<em style="background-image:url(\'' . $src . '\');"></em>';
|
||||||
} else {
|
} else {
|
||||||
$thumb_class = "fix";
|
$thumb_class = "fix";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<li style="width:<?=$gallery_w?>px;">
|
<li style="width:<?= $gallery_w ?>px;">
|
||||||
<div class="character-card-frame">
|
<div class="character-card-frame">
|
||||||
<div class="pad" style="padding-top:<?=$gallery_rato?>%;"></div>
|
<div class="pad" style="padding-top:<?= $gallery_rato ?>%;"></div>
|
||||||
<a class="pic <?=$thumb_class?>" href="<?php echo $list[$i]['href'] ?>">
|
<a class="pic <?= $thumb_class ?>" href="<?php echo $list[$i]['href'] ?>">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
echo $img_content;
|
echo $img_content;
|
||||||
?>
|
?>
|
||||||
<span class="cover <?=$thumb_class?>">
|
<span class="cover <?= $thumb_class ?>">
|
||||||
<span>
|
<span>
|
||||||
<span>
|
<span>
|
||||||
<strong class="sub-subject"><?=$list[$i]['wr_3']?></strong>
|
<strong class="sub-subject"><?= $list[$i]['wr_3'] ?></strong>
|
||||||
<strong class="subject"><?=$list[$i]['wr_subject']?></strong>
|
<strong class="subject"><?= $list[$i]['wr_subject'] ?></strong>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -1,92 +1,104 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$left = sql_fetch("select * from {$write_table} where wr_id = '{$list[$i]['wr_2']}'");
|
$left = sql_fetch("select * from {$write_table} where wr_id = '{$list[$i]['wr_2']}'");
|
||||||
$right = sql_fetch("select * from {$write_table} where wr_id = '{$list[$i]['wr_3']}'");
|
$right = sql_fetch("select * from {$write_table} where wr_id = '{$list[$i]['wr_3']}'");
|
||||||
|
|
||||||
$left_src = "";
|
$left_src = "";
|
||||||
$left_img_content = "";
|
$left_img_content = "";
|
||||||
if($left['wr_1']) { $left_src = $left['wr_1']; }
|
if ($left['wr_1']) {
|
||||||
if($left_src) { $left_img_content = '<em style="background-image:url(\''.$left_src.'\');"></em>'; }
|
$left_src = $left['wr_1'];
|
||||||
|
}
|
||||||
|
if ($left_src) {
|
||||||
|
$left_img_content = '<em style="background-image:url(\'' . $left_src . '\');"></em>';
|
||||||
|
}
|
||||||
|
|
||||||
$right_src = "";
|
$right_src = "";
|
||||||
$right_img_content = "";
|
$right_img_content = "";
|
||||||
if($right['wr_1']) { $right_src = $right['wr_1']; }
|
if ($right['wr_1']) {
|
||||||
if($right_src) { $right_img_content = '<em style="background-image:url(\''.$right_src.'\');"></em>'; }
|
$right_src = $right['wr_1'];
|
||||||
|
}
|
||||||
|
if ($right_src) {
|
||||||
|
$right_img_content = '<em style="background-image:url(\'' . $right_src . '\');"></em>';
|
||||||
|
}
|
||||||
|
|
||||||
$dday = "";
|
$dday = "";
|
||||||
|
|
||||||
$startDate = strtotime($list[$i]['wr_subject']);
|
$startDate = strtotime($list[$i]['wr_subject']);
|
||||||
$endDate = strtotime(date('Y-m-d'));
|
$endDate = strtotime(date('Y-m-d'));
|
||||||
$dday = ($endDate - $startDate)/(60*60*24)+1;
|
$dday = ($endDate - $startDate) / (60 * 60 * 24) + 1;
|
||||||
|
|
||||||
$p_gallery_w = $gallery_w + 20;
|
$p_gallery_w = $gallery_w + 20;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<li class="pair-group">
|
<li class="pair-group">
|
||||||
<div class="pair-bak-box" style="background-image:url(<?=$list[$i]['wr_1']?>);">
|
<div class="pair-bak-box" style="background-image:url(<?= $list[$i]['wr_1'] ?>);">
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="ch-box" style="width:<?=$p_gallery_w?>px;">
|
|
||||||
<div class="character-card-frame">
|
|
||||||
<div class="pad" style="padding-top:<?=$gallery_rato?>%;"></div>
|
|
||||||
<a class="pic" href="./board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_2']?>">
|
|
||||||
<?=$left_img_content?>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div><?php
|
|
||||||
|
|
||||||
?><div class="ch-box" style="width:<?=$p_gallery_w?>px;">
|
<div class="row">
|
||||||
<div class="character-card-frame">
|
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
|
||||||
<div class="pad" style="padding-top:<?=$gallery_rato?>%;"></div>
|
<div class="character-card-frame">
|
||||||
<a class="pic" href="./board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_3']?>">
|
<div class="pad" style="padding-top:<?= $gallery_rato ?>%;"></div>
|
||||||
<?=$right_img_content?>
|
<a class="pic" href="./board.php?bo_table=<?= $bo_table ?>&wr_id=<?= $list[$i]['wr_2'] ?>">
|
||||||
</a>
|
<?= $left_img_content ?>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div><?php
|
||||||
|
|
||||||
<div class="dday" title="DATE.<?=$list[$i]['wr_subject']?>">
|
?>
|
||||||
<div class="bak ui-btn point"></div>
|
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
|
||||||
<div class="days">
|
<div class="character-card-frame">
|
||||||
<div class="mid">
|
<div class="pad" style="padding-top:<?= $gallery_rato ?>%;"></div>
|
||||||
<div>
|
<a class="pic" href="./board.php?bo_table=<?= $bo_table ?>&wr_id=<?= $list[$i]['wr_3'] ?>">
|
||||||
<p class="ui-btn point txt-menu-font"><?=$dday?></p>
|
<?= $right_img_content ?>
|
||||||
<span class="ui-btn point">DAYS</span>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="dday" title="DATE.<?= $list[$i]['wr_subject'] ?>">
|
||||||
<div class="ch-box" style="width:<?=$p_gallery_w?>px;">
|
<div class="bak ui-btn point"></div>
|
||||||
<?php if($list[$i]['wr_4']) { ?>
|
<div class="days">
|
||||||
<div class="ui-btn relation-name">
|
<div class="mid">
|
||||||
<?=$list[$i]['wr_4']?>
|
<div>
|
||||||
</div>
|
<p class="ui-btn point txt-menu-font"><?= $dday ?></p>
|
||||||
<?php } ?>
|
<span class="ui-btn point">DAYS</span>
|
||||||
<div class="txt-default ch-name">
|
</div>
|
||||||
<?=$left['wr_subject']?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><?php
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
?><div class="ch-box" style="width:<?=$p_gallery_w?>px;">
|
<div class="row">
|
||||||
<?php if($list[$i]['wr_5']) { ?>
|
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
|
||||||
<div class="ui-btn relation-name">
|
<?php if ($list[$i]['wr_4']) { ?>
|
||||||
<?=$list[$i]['wr_5']?>
|
<div class="ui-btn relation-name">
|
||||||
</div>
|
<?= $list[$i]['wr_4'] ?>
|
||||||
<?php } ?>
|
</div>
|
||||||
<div class="txt-default ch-name">
|
<?php } ?>
|
||||||
<?=$right['wr_subject']?>
|
<div class="txt-default ch-name">
|
||||||
</div>
|
<?= $left['wr_subject'] ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div><?php
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if($list[$i]['mb_id'] == $member['mb_id']) { ?>
|
?>
|
||||||
<div class="txt-center">
|
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
|
||||||
<a href="./write.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_id']?>&w=u" class="ui-btn"><i class="material-icons">settings</i> 수정하기</a>
|
<?php if ($list[$i]['wr_5']) { ?>
|
||||||
</div>
|
<div class="ui-btn relation-name">
|
||||||
<?php } ?>
|
<?= $list[$i]['wr_5'] ?>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
<div class="txt-default ch-name">
|
||||||
|
<?= $right['wr_subject'] ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ($list[$i]['mb_id'] == $member['mb_id']) { ?>
|
||||||
|
<div class="txt-center">
|
||||||
|
<a href="./write.php?bo_table=<?= $bo_table ?>&wr_id=<?= $list[$i]['wr_id'] ?>&w=u" class="ui-btn"><i
|
||||||
|
class="material-icons">settings</i> 수정하기</a>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$sst = $_GET['sst'];
|
$sst = $_GET['sst'];
|
||||||
|
|
||||||
|
|
@ -7,65 +8,69 @@ $sst = $_GET['sst'];
|
||||||
$is_category = false;
|
$is_category = false;
|
||||||
$category_option = '';
|
$category_option = '';
|
||||||
if ($board['bo_use_category']) {
|
if ($board['bo_use_category']) {
|
||||||
$is_category = true;
|
$is_category = true;
|
||||||
$category_href = G5_BBS_URL.'/board.php?bo_table='.$bo_table;
|
$category_href = G5_BBS_URL . '/board.php?bo_table=' . $bo_table;
|
||||||
|
|
||||||
$category_option .= '<li><a href="'.$category_href.'"';
|
$category_option .= '<li><a href="' . $category_href . '"';
|
||||||
if ($sca=='')
|
if ($sca == '')
|
||||||
$category_option .= ' id="bo_cate_on"';
|
$category_option .= ' id="bo_cate_on"';
|
||||||
$category_option .= '>전체</a></li>';
|
$category_option .= '>전체</a></li>';
|
||||||
|
|
||||||
$categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
$categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
||||||
for ($i=0; $i<count($categories); $i++) {
|
for ($i = 0; $i < count($categories); $i++) {
|
||||||
$category = trim($categories[$i]);
|
$category = trim($categories[$i]);
|
||||||
if ($category=='') continue;
|
if ($category == '')
|
||||||
$category_option .= '<li><a href="'.($category_href."&sca=".urlencode($category)).'"';
|
continue;
|
||||||
$category_msg = '';
|
$category_option .= '<li><a href="' . ($category_href . "&sca=" . urlencode($category)) . '"';
|
||||||
if ($category==$sca) { // 현재 선택된 카테고리라면
|
$category_msg = '';
|
||||||
$category_option .= ' id="bo_cate_on"';
|
if ($category == $sca) { // 현재 선택된 카테고리라면
|
||||||
$category_msg = '<span class="sound_only">열린 분류 </span>';
|
$category_option .= ' id="bo_cate_on"';
|
||||||
}
|
$category_msg = '<span class="sound_only">열린 분류 </span>';
|
||||||
$category_option .= '>'.$category_msg.$category.'</a></li>';
|
}
|
||||||
}
|
$category_option .= '>' . $category_msg . $category . '</a></li>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sop = strtolower($sop);
|
$sop = strtolower($sop);
|
||||||
if ($sop != 'and' && $sop != 'or')
|
if ($sop != 'and' && $sop != 'or')
|
||||||
$sop = 'and';
|
$sop = 'and';
|
||||||
|
|
||||||
// 분류 선택 또는 검색어가 있다면
|
// 분류 선택 또는 검색어가 있다면
|
||||||
$stx = trim($stx);
|
$stx = trim($stx);
|
||||||
if ($sca || $stx) {
|
if ($sca || $stx) {
|
||||||
$sql_search = get_sql_search($sca, $sfl, $stx, $sop);
|
$sql_search = get_sql_search($sca, $sfl, $stx, $sop);
|
||||||
|
|
||||||
// 가장 작은 번호를 얻어서 변수에 저장 (하단의 페이징에서 사용)
|
// 가장 작은 번호를 얻어서 변수에 저장 (하단의 페이징에서 사용)
|
||||||
$sql = " select MIN(wr_num) as min_wr_num from {$write_table} ";
|
$sql = " select MIN(wr_num) as min_wr_num from {$write_table} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$min_spt = (int)$row['min_wr_num'];
|
$min_spt = (int) $row['min_wr_num'];
|
||||||
|
|
||||||
if (!$spt) $spt = $min_spt;
|
if (!$spt)
|
||||||
|
$spt = $min_spt;
|
||||||
|
|
||||||
$sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config['cf_search_part']})) ";
|
$sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config['cf_search_part']})) ";
|
||||||
|
|
||||||
// 원글만 얻는다. (코멘트의 내용도 검색하기 위함)
|
// 원글만 얻는다. (코멘트의 내용도 검색하기 위함)
|
||||||
// 라엘님 제안 코드로 대체 http://sir.kr/g5_bug/2922
|
// 라엘님 제안 코드로 대체 http://sir.kr/g5_bug/2922
|
||||||
$sql = " SELECT COUNT(DISTINCT `wr_parent`) AS `cnt` FROM {$write_table} WHERE {$sql_search} ";
|
$sql = " SELECT COUNT(DISTINCT `wr_parent`) AS `cnt` FROM {$write_table} WHERE {$sql_search} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row['cnt'];
|
||||||
/*
|
/*
|
||||||
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";
|
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
$total_count = sql_num_rows($result);
|
$total_count = sql_num_rows($result);
|
||||||
*/
|
*/
|
||||||
} else {
|
} else {
|
||||||
$sql_search = "";
|
$sql_search = "";
|
||||||
$total_count = $board['bo_count_write'];
|
$total_count = $board['bo_count_write'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$page_rows = $board['bo_page_rows'];
|
$page_rows = $board['bo_page_rows'];
|
||||||
$list_page_rows = $board['bo_page_rows'];
|
$list_page_rows = $board['bo_page_rows'];
|
||||||
|
|
||||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page < 1) {
|
||||||
|
$page = 1;
|
||||||
|
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
|
|
||||||
// 년도 2자리
|
// 년도 2자리
|
||||||
$today2 = G5_TIME_YMD;
|
$today2 = G5_TIME_YMD;
|
||||||
|
|
@ -76,168 +81,168 @@ $notice_array = [];
|
||||||
|
|
||||||
// 공지 처리
|
// 공지 처리
|
||||||
if (!$sca) {
|
if (!$sca) {
|
||||||
$arr_notice = explode(',', trim($board['bo_notice']));
|
$arr_notice = explode(',', trim($board['bo_notice']));
|
||||||
$from_notice_idx = ($page - 1) * $page_rows;
|
$from_notice_idx = ($page - 1) * $page_rows;
|
||||||
if($from_notice_idx < 0)
|
if ($from_notice_idx < 0)
|
||||||
$from_notice_idx = 0;
|
$from_notice_idx = 0;
|
||||||
$arr_notice = array_filter($arr_notice);
|
$arr_notice = array_filter($arr_notice);
|
||||||
$board_notice_count = count($arr_notice);
|
$board_notice_count = count($arr_notice);
|
||||||
|
|
||||||
if($sst == 'wr_id') {
|
if ($sst == 'wr_id') {
|
||||||
// 전체 목록인 경우, 게시글 개수에서 공지글 제외
|
// 전체 목록인 경우, 게시글 개수에서 공지글 제외
|
||||||
$total_count -= $board_notice_count;
|
$total_count -= $board_notice_count;
|
||||||
}
|
} else if ($board_notice_count > 0) {
|
||||||
else if($board_notice_count > 0) {
|
$pair_str = implode("' or wr_id = '", $arr_notice);
|
||||||
$pair_str = implode("' or wr_id = '", $arr_notice);
|
$pair_str = "wr_id = '" . $pair_str . "'";
|
||||||
$pair_str = "wr_id = '".$pair_str."'";
|
// 페어 목록인 경우, 페어 목록만 추출하고 게시글 개수를 공지글로 한정
|
||||||
// 페어 목록인 경우, 페어 목록만 추출하고 게시글 개수를 공지글로 한정
|
$pair_str = "({$pair_str}) and wr_type = 'pair'";
|
||||||
$pair_str = "({$pair_str}) and wr_type = 'pair'";
|
$total_count = $board_notice_count;
|
||||||
$total_count = $board_notice_count;
|
|
||||||
|
|
||||||
$pair_sql = " select * from {$write_table} where {$pair_str} order by wr_ing desc, wr_subject asc ";
|
$pair_sql = " select * from {$write_table} where {$pair_str} order by wr_ing desc, wr_subject asc ";
|
||||||
$notice_result = sql_query($pair_sql);
|
$notice_result = sql_query($pair_sql);
|
||||||
|
|
||||||
for($k=0; $row = sql_fetch_array($notice_result); $k++) {
|
for ($k = 0; $row = sql_fetch_array($notice_result); $k++) {
|
||||||
if (!$row['wr_id']) continue;
|
if (!$row['wr_id'])
|
||||||
$notice_array[] = $row['wr_id'];
|
continue;
|
||||||
|
$notice_array[] = $row['wr_id'];
|
||||||
|
|
||||||
if($k < $from_notice_idx) continue;
|
if ($k < $from_notice_idx)
|
||||||
if($sst != 'wr_id') {
|
continue;
|
||||||
$list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
|
if ($sst != 'wr_id') {
|
||||||
$list[$i]['is_notice'] = true;
|
$list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
|
||||||
|
$list[$i]['is_notice'] = true;
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
$notice_count++;
|
$notice_count++;
|
||||||
|
|
||||||
if($notice_count >= $list_page_rows)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
if ($notice_count >= $list_page_rows)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$total_page = ceil($total_count / $page_rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $page_rows); // 전체 페이지 계산
|
||||||
$from_record = ($page - 1) * $page_rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $page_rows; // 시작 열을 구함
|
||||||
|
|
||||||
// 공지글이 있으면 변수에 반영
|
// 공지글이 있으면 변수에 반영
|
||||||
if(!empty($notice_array)) {
|
if (!empty($notice_array)) {
|
||||||
$from_record -= count($notice_array);
|
$from_record -= count($notice_array);
|
||||||
|
|
||||||
if($from_record < 0)
|
if ($from_record < 0)
|
||||||
$from_record = 0;
|
$from_record = 0;
|
||||||
|
|
||||||
if($notice_count > 0)
|
if ($notice_count > 0)
|
||||||
$page_rows -= $notice_count;
|
$page_rows -= $notice_count;
|
||||||
|
|
||||||
if($page_rows < 0)
|
if ($page_rows < 0)
|
||||||
$page_rows = $list_page_rows;
|
$page_rows = $list_page_rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 관리자라면 CheckBox 보임
|
// 관리자라면 CheckBox 보임
|
||||||
$is_checkbox = false;
|
$is_checkbox = false;
|
||||||
if ($is_member && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id'] || $board['bo_admin'] == $member['mb_id']))
|
if ($is_member && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id'] || $board['bo_admin'] == $member['mb_id']))
|
||||||
$is_checkbox = true;
|
$is_checkbox = true;
|
||||||
|
|
||||||
// 정렬에 사용하는 QUERY_STRING
|
// 정렬에 사용하는 QUERY_STRING
|
||||||
$qstr2 = 'bo_table='.$bo_table.'&sop='.$sop;
|
$qstr2 = 'bo_table=' . $bo_table . '&sop=' . $sop;
|
||||||
|
|
||||||
// 0 으로 나눌시 오류를 방지하기 위하여 값이 없으면 1 로 설정
|
// 0 으로 나눌시 오류를 방지하기 위하여 값이 없으면 1 로 설정
|
||||||
$bo_gallery_cols = $board['bo_gallery_cols'] ? $board['bo_gallery_cols'] : 1;
|
$bo_gallery_cols = $board['bo_gallery_cols'] ? $board['bo_gallery_cols'] : 1;
|
||||||
$td_width = (int)(100 / $bo_gallery_cols);
|
$td_width = (int) (100 / $bo_gallery_cols);
|
||||||
|
|
||||||
// 정렬
|
// 정렬
|
||||||
$order = "wr_ing desc";
|
$order = "wr_ing desc";
|
||||||
if ($order) {
|
if ($order) {
|
||||||
$sql_order = " order by {$order} ";
|
$sql_order = " order by {$order} ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sca || $stx) {
|
if ($sca || $stx) {
|
||||||
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";
|
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";
|
||||||
if(!empty($notice_array))
|
if (!empty($notice_array))
|
||||||
$sql .= " and wr_parent not in (".implode(', ', $notice_array).") ";
|
$sql .= " and wr_parent not in (" . implode(', ', $notice_array) . ") ";
|
||||||
$sql .= "{$sql_order} limit {$from_record}, $page_rows ";
|
$sql .= "{$sql_order} limit {$from_record}, $page_rows ";
|
||||||
} else {
|
} else {
|
||||||
$sql = " select * from {$write_table} where wr_is_comment = 0 ";
|
$sql = " select * from {$write_table} where wr_is_comment = 0 ";
|
||||||
if(!empty($notice_array))
|
if (!empty($notice_array))
|
||||||
$sql .= " and wr_id not in (".implode(', ', $notice_array).") ";
|
$sql .= " and wr_id not in (" . implode(', ', $notice_array) . ") ";
|
||||||
// 전체 목록인 경우, 캐릭터 게시글만 추출. 페어 목록인 경우, 페어 게시글만 추출
|
// 전체 목록인 경우, 캐릭터 게시글만 추출. 페어 목록인 경우, 페어 게시글만 추출
|
||||||
if($sst=='wr_id' || $board_notice_count < 1)
|
if ($sst == 'wr_id' || $board_notice_count < 1)
|
||||||
$sql .= " and wr_type != 'pair'";
|
$sql .= " and wr_type != 'pair'";
|
||||||
else
|
else
|
||||||
$sql .= " and wr_type = 'pair'";
|
$sql .= " and wr_type = 'pair'";
|
||||||
$sql .= " {$sql_order} limit {$from_record}, $page_rows ";
|
$sql .= " {$sql_order} limit {$from_record}, $page_rows ";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 페이지의 공지개수가 목록수 보다 작을 때만 실행
|
// 페이지의 공지개수가 목록수 보다 작을 때만 실행
|
||||||
if($page_rows > 0) {
|
if ($page_rows > 0) {
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$k = 0;
|
$k = 0;
|
||||||
|
|
||||||
while ($row = sql_fetch_array($result))
|
while ($row = sql_fetch_array($result)) {
|
||||||
{
|
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
|
||||||
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
|
if ($sca || $stx)
|
||||||
if ($sca || $stx)
|
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||||
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");
|
|
||||||
|
|
||||||
$temp_list = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
|
$temp_list = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
|
||||||
|
|
||||||
$list[$i] = $temp_list;
|
$list[$i] = $temp_list;
|
||||||
if (strstr($sfl, 'subject')) {
|
if (strstr($sfl, 'subject')) {
|
||||||
$list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
|
$list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$list_num = $total_count - ($page - 1) * $list_page_rows - $notice_count;
|
|
||||||
$list[$i]['num'] = $list_num - $k;
|
|
||||||
|
|
||||||
$i++;
|
$list_num = $total_count - ($page - 1) * $list_page_rows - $notice_count;
|
||||||
$k++;
|
$list[$i]['num'] = $list_num - $k;
|
||||||
}
|
|
||||||
|
$i++;
|
||||||
|
$k++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './board.php?bo_table='.$bo_table.$qstr.'&page=');
|
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './board.php?bo_table=' . $bo_table . $qstr . '&page=');
|
||||||
|
|
||||||
$list_href = '';
|
$list_href = '';
|
||||||
$prev_part_href = '';
|
$prev_part_href = '';
|
||||||
$next_part_href = '';
|
$next_part_href = '';
|
||||||
if ($sca || $stx) {
|
if ($sca || $stx) {
|
||||||
$list_href = './board.php?bo_table='.$bo_table;
|
$list_href = './board.php?bo_table=' . $bo_table;
|
||||||
|
|
||||||
$patterns = array('#&page=[0-9]*#', '#&spt=[0-9\-]*#');
|
$patterns = array('#&page=[0-9]*#', '#&spt=[0-9\-]*#');
|
||||||
|
|
||||||
//if ($prev_spt >= $min_spt)
|
//if ($prev_spt >= $min_spt)
|
||||||
$prev_spt = $spt - $config['cf_search_part'];
|
$prev_spt = $spt - $config['cf_search_part'];
|
||||||
if (isset($min_spt) && $prev_spt >= $min_spt) {
|
if (isset($min_spt) && $prev_spt >= $min_spt) {
|
||||||
$qstr1 = preg_replace($patterns, '', $qstr);
|
$qstr1 = preg_replace($patterns, '', $qstr);
|
||||||
$prev_part_href = './board.php?bo_table='.$bo_table.$qstr1.'&spt='.$prev_spt.'&page=1';
|
$prev_part_href = './board.php?bo_table=' . $bo_table . $qstr1 . '&spt=' . $prev_spt . '&page=1';
|
||||||
$write_pages = page_insertbefore($write_pages, '<a href="'.$prev_part_href.'" class="pg_page pg_prev">이전검색</a>');
|
$write_pages = page_insertbefore($write_pages, '<a href="' . $prev_part_href . '" class="pg_page pg_prev">이전검색</a>');
|
||||||
}
|
}
|
||||||
|
|
||||||
$next_spt = $spt + $config['cf_search_part'];
|
$next_spt = $spt + $config['cf_search_part'];
|
||||||
if ($next_spt < 0) {
|
if ($next_spt < 0) {
|
||||||
$qstr1 = preg_replace($patterns, '', $qstr);
|
$qstr1 = preg_replace($patterns, '', $qstr);
|
||||||
$next_part_href = './board.php?bo_table='.$bo_table.$qstr1.'&spt='.$next_spt.'&page=1';
|
$next_part_href = './board.php?bo_table=' . $bo_table . $qstr1 . '&spt=' . $next_spt . '&page=1';
|
||||||
$write_pages = page_insertafter($write_pages, '<a href="'.$next_part_href.'" class="pg_page pg_end">다음검색</a>');
|
$write_pages = page_insertafter($write_pages, '<a href="' . $next_part_href . '" class="pg_page pg_end">다음검색</a>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$write_href = '';
|
$write_href = '';
|
||||||
if ($member['mb_level'] >= $board['bo_write_level']) {
|
if ($member['mb_level'] >= $board['bo_write_level']) {
|
||||||
$write_href = './write.php?bo_table='.$bo_table;
|
$write_href = './write.php?bo_table=' . $bo_table;
|
||||||
}
|
}
|
||||||
|
|
||||||
$nobr_begin = $nobr_end = "";
|
$nobr_begin = $nobr_end = "";
|
||||||
if (preg_match("/gecko|firefox/i", $_SERVER['HTTP_USER_AGENT'])) {
|
if (preg_match("/gecko|firefox/i", $_SERVER['HTTP_USER_AGENT'])) {
|
||||||
$nobr_begin = '<nobr>';
|
$nobr_begin = '<nobr>';
|
||||||
$nobr_end = '</nobr>';
|
$nobr_end = '</nobr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// RSS 보기 사용에 체크가 되어 있어야 RSS 보기 가능 061106
|
// RSS 보기 사용에 체크가 되어 있어야 RSS 보기 가능 061106
|
||||||
$rss_href = '';
|
$rss_href = '';
|
||||||
if ($board['bo_use_rss_view']) {
|
if ($board['bo_use_rss_view']) {
|
||||||
$rss_href = './rss.php?bo_table='.$bo_table;
|
$rss_href = './rss.php?bo_table=' . $bo_table;
|
||||||
}
|
}
|
||||||
|
|
||||||
$stx = get_text(stripslashes($stx));
|
$stx = get_text(stripslashes($stx));
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
//-- 리스트 정렬을 임의로 조정 하는 기능을 합니다.
|
//-- 리스트 정렬을 임의로 조정 하는 기능을 합니다.
|
||||||
include_once($board_skin_path.'/_setting.php');
|
include_once $board_skin_path . "/_setting.php";
|
||||||
include_once($board_skin_path.'/list.order.skin.php');
|
include_once $board_skin_path . "/list.order.skin.php";
|
||||||
|
|
||||||
$category_list = get_category_list($bo_table, $sca);
|
$category_list = get_category_list($bo_table, $sca);
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
$color_bak = get_style('color_bak');
|
$color_bak = get_style('color_bak');
|
||||||
$color_bak = hex2rgba($color_bak['cs_value'], $color_bak['cs_etc_1']);
|
$color_bak = hex2rgba($color_bak['cs_value'], $color_bak['cs_etc_1']);
|
||||||
|
|
@ -18,79 +19,88 @@ $is_notice = false;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--thumb-bak:<?=$color_bak?>;
|
--thumb-bak: <?= $color_bak ?>;
|
||||||
--cover-bak:linear-gradient(0deg, <?=$color_bak?> 0%, transparent 100%);
|
--cover-bak: linear-gradient(0deg,
|
||||||
--cover-color:<?=$color_default?>;
|
<?= $color_bak ?>
|
||||||
}
|
0%, transparent 100%);
|
||||||
|
--cover-color: <?= $color_default ?>;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<!-- 게시판 목록 시작 { -->
|
<!-- 게시판 목록 시작 { -->
|
||||||
<div class="charwrap">
|
<div class="charwrap">
|
||||||
|
|
||||||
<?php if($board['bo_content_head']) { ?>
|
|
||||||
<div class="board-notice-box">
|
|
||||||
<?=stripslashes($board['bo_content_head']);?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<!-- 게시판 카테고리 시작 { -->
|
<?php if ($board['bo_content_head']) { ?>
|
||||||
<?php if ($is_category) { ?>
|
<div class="board-notice-box">
|
||||||
<nav class="board-category">
|
<?= stripslashes($board['bo_content_head']); ?>
|
||||||
<ul>
|
</div>
|
||||||
<li><a href="./board.php?bo_table=<?=$bo_table?>" class="ui-btn <?=!$sca || $sca == ''? 'point' : 'etc'?>">ALL</a></li>
|
<?php } ?>
|
||||||
<?php echo $category_list ?>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<?php } ?>
|
|
||||||
<!-- } 게시판 카테고리 끝 -->
|
|
||||||
|
|
||||||
<div class="character-board-wrap">
|
|
||||||
<ul class="character-card-list">
|
|
||||||
<?php
|
|
||||||
$gallery_w = $board['bo_image_width'] == 0 ? 250 : $board['bo_image_width'];
|
|
||||||
$gallery_h = $board['bo_gallery_height'] == 0 ? 150 : $board['bo_gallery_height'];
|
|
||||||
$gallery_rato = $gallery_w == 0 || $gallery_h == 0 ? "140" : $gallery_h/$gallery_w*100;
|
|
||||||
|
|
||||||
for($i=0; $i<count($list); $i++) {
|
|
||||||
|
|
||||||
if($list[$i]['is_notice']) {
|
<!-- 게시판 카테고리 시작 { -->
|
||||||
include($board_skin_path."/list.couple.skin.php");
|
<?php if ($is_category) { ?>
|
||||||
$is_notice = true;
|
<nav class="board-category">
|
||||||
} else {
|
<ul>
|
||||||
if($is_notice) { break; }
|
<li><a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn <?= !$sca || $sca == '' ? 'point' : 'etc' ?>">ALL</a>
|
||||||
include($board_skin_path."/list.character.skin.php");
|
</li>
|
||||||
}
|
<?php echo $category_list ?>
|
||||||
}
|
</ul>
|
||||||
|
</nav>
|
||||||
if (count($list) == 0) { echo "<li class=\"empty_list\">등록된 캐릭터가 없습니다.</li>"; } ?>
|
<?php } ?>
|
||||||
</ul>
|
<!-- } 게시판 카테고리 끝 -->
|
||||||
</div>
|
|
||||||
|
<div class="character-board-wrap">
|
||||||
|
<ul class="character-card-list">
|
||||||
|
<?php
|
||||||
|
$gallery_w = $board['bo_image_width'] == 0 ? 250 : $board['bo_image_width'];
|
||||||
|
$gallery_h = $board['bo_gallery_height'] == 0 ? 150 : $board['bo_gallery_height'];
|
||||||
|
$gallery_rato = $gallery_w == 0 || $gallery_h == 0 ? "140" : $gallery_h / $gallery_w * 100;
|
||||||
|
|
||||||
|
for ($i = 0; $i < count($list); $i++) {
|
||||||
|
|
||||||
|
if ($list[$i]['is_notice']) {
|
||||||
|
include($board_skin_path . "/list.couple.skin.php");
|
||||||
|
$is_notice = true;
|
||||||
|
} else {
|
||||||
|
if ($is_notice) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
include($board_skin_path . "/list.character.skin.php");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count($list) == 0) {
|
||||||
|
echo "<li class=\"empty_list\">등록된 캐릭터가 없습니다.</li>";
|
||||||
|
} ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<?php
|
<?php
|
||||||
if($is_notice || $sst == 'wr_id') {
|
if ($is_notice || $sst == 'wr_id') {
|
||||||
if ($list_href || $sst == 'wr_id') {
|
if ($list_href || $sst == 'wr_id') {
|
||||||
?>
|
?>
|
||||||
<a href="./board.php?bo_table=<?=$bo_table?>" class="ui-btn etc"><i class="material-icons">list</i> 메인</a>
|
<a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn etc"><i class="material-icons">list</i> 메인</a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a href="./board.php?bo_table=<?=$bo_table?>&sst=wr_id" class="ui-btn etc"><i class="material-icons">list</i> 전체 목록</a>
|
<a href="./board.php?bo_table=<?= $bo_table ?>&sst=wr_id" class="ui-btn etc"><i class="material-icons">list</i> 전체
|
||||||
<?php }
|
목록</a>
|
||||||
} else {
|
<?php }
|
||||||
if ($list_href) { ?>
|
} else {
|
||||||
<a href="<?php echo $list_href ?>" class="ui-btn etc"><i class="material-icons">list</i> 목록</a>
|
if ($list_href) { ?>
|
||||||
<?php }
|
<a href="<?php echo $list_href ?>" class="ui-btn etc"><i class="material-icons">list</i> 목록</a>
|
||||||
}
|
<?php }
|
||||||
if ($write_href) { ?>
|
}
|
||||||
<?php if($total_count >= 2) { ?>
|
if ($write_href) { ?>
|
||||||
<a href="<?php echo $write_href ?>&type=pair" class="ui-btn"><i class="material-icons">edit</i> 페어 등록하기</a>
|
<?php if ($total_count >= 2) { ?>
|
||||||
<?php } ?>
|
<a href="<?php echo $write_href ?>&type=pair" class="ui-btn"><i class="material-icons">edit</i> 페어 등록하기</a>
|
||||||
<a href="<?php echo $write_href ?>&sst=<?=$sst?>" class="ui-btn point"><i class="material-icons">edit</i> 캐릭터 등록하기</a>
|
<?php } ?>
|
||||||
<?php } ?>
|
<a href="<?php echo $write_href ?>&sst=<?= $sst ?>" class="ui-btn point"><i class="material-icons">edit</i> 캐릭터
|
||||||
</div>
|
등록하기</a>
|
||||||
|
<?php } ?>
|
||||||
<!-- 페이지 -->
|
</div>
|
||||||
<?php echo $write_pages; ?>
|
|
||||||
|
<!-- 페이지 -->
|
||||||
|
<?php echo $write_pages; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,36 +2,36 @@
|
||||||
include_once "./_common.php";
|
include_once "./_common.php";
|
||||||
|
|
||||||
// 권한 확인
|
// 권한 확인
|
||||||
if(!$is_admin) {
|
if (!$is_admin) {
|
||||||
if($member['mb_id'] && $write['mb_id'] != $member['mb_id']) { // 본인의 게시물이 아닌 경우
|
if ($member['mb_id'] && $write['mb_id'] != $member['mb_id']) { // 본인의 게시물이 아닌 경우
|
||||||
exit;
|
exit;
|
||||||
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$update_href = true;
|
$update_href = true;
|
||||||
|
|
||||||
$sql_article = "";
|
$sql_article = "";
|
||||||
|
|
||||||
if($add_new_body_type == 'file') {
|
if ($add_new_body_type == 'file') {
|
||||||
// -- 전신이미지
|
// -- 전신이미지
|
||||||
if($_FILES['add_new_body_file']['name']) {
|
if ($_FILES['add_new_body_file']['name']) {
|
||||||
// 확장자 따기
|
// 확장자 따기
|
||||||
$exp = explode(".", $_FILES['add_new_body_file']['name']);
|
$exp = explode(".", $_FILES['add_new_body_file']['name']);
|
||||||
$exp = $exp[count($exp)-1];
|
$exp = $exp[count($exp) - 1];
|
||||||
$image_name = "body_{$wr_id}_".time().".".$exp;
|
$image_name = "body_{$wr_id}_" . time() . "." . $exp;
|
||||||
upload_file($_FILES['add_new_body_file']['tmp_name'], $image_name, $character_image_path);
|
upload_file($_FILES['add_new_body_file']['tmp_name'], $image_name, $character_image_path);
|
||||||
$sql_article = "bd_url = '{$character_image_url}/{$image_name}' ";
|
$sql_article = "bd_url = '{$character_image_url}/{$image_name}' ";
|
||||||
}
|
}
|
||||||
} else if($add_new_body_type == 'url' && $add_new_body != "") {
|
} else if ($add_new_body_type == 'url' && $add_new_body != "") {
|
||||||
$sql_article = "bd_url = '{$add_new_body}' ";
|
$sql_article = "bd_url = '{$add_new_body}' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($sql_article != "") {
|
if ($sql_article != "") {
|
||||||
$sql_article = $sql_article.", bo_table = '{$bo_table}', wr_id = '{$wr_id}'";
|
$sql_article = $sql_article . ", bo_table = '{$bo_table}', wr_id = '{$wr_id}'";
|
||||||
$sql = "insert into {$g5['character_body_table']} set {$sql_article}";
|
$sql = "insert into {$g5['character_body_table']} set {$sql_article}";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
include($board_skin_path."/view_body.skin.php");
|
include $board_skin_path . "/view_body.skin.php";
|
||||||
|
|
|
||||||
|
|
@ -2,24 +2,24 @@
|
||||||
include_once "./_common.php";
|
include_once "./_common.php";
|
||||||
|
|
||||||
// 권한 확인
|
// 권한 확인
|
||||||
if(!$is_admin) {
|
if (!$is_admin) {
|
||||||
if($member['mb_id'] && $write['mb_id'] == $member['mb_id']) {
|
if ($member['mb_id'] && $write['mb_id'] == $member['mb_id']) {
|
||||||
exit;
|
exit;
|
||||||
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$update_href = true;
|
$update_href = true;
|
||||||
|
|
||||||
// 삭제 원하는 DB 정보 가져오기
|
// 삭제 원하는 DB 정보 가져오기
|
||||||
$bd = sql_fetch("select * from {$g5['character_body_table']} where bd_id = '{$bd_id}'");
|
$bd = sql_fetch("select * from {$g5['character_body_table']} where bd_id = '{$bd_id}'");
|
||||||
if($bd['bd_url']) {
|
if ($bd['bd_url']) {
|
||||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $bd['bd_url']);
|
$prev_file_path = str_replace(G5_URL, G5_PATH, $bd['bd_url']);
|
||||||
@unlink($prev_file_path);
|
@unlink($prev_file_path);
|
||||||
|
|
||||||
$sql = "delete from {$g5['character_body_table']} where bd_id = '{$bd_id}'";
|
$sql = "delete from {$g5['character_body_table']} where bd_id = '{$bd_id}'";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
include($board_skin_path."/view_body.skin.php");
|
include $board_skin_path . "/view_body.skin.php";
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,24 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
include_once($board_skin_path.'/_setting.php');
|
exit; // 개별 페이지 접근 불가
|
||||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
include_once $board_skin_path . "/_setting.php";
|
||||||
|
include_once G5_LIB_PATH . "/thumbnail.lib.php";
|
||||||
|
|
||||||
if($write['wr_type'] == 'pair') {
|
if ($write['wr_type'] == 'pair') {
|
||||||
goto_url($list_href.$qstr);
|
goto_url($list_href . $qstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/js/css/swiper.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/js/css/swiper.css">', 0);
|
||||||
|
|
||||||
$body_cnt = sql_fetch("select count(*) as cnt from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}'");
|
$body_cnt = sql_fetch("select count(*) as cnt from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}'");
|
||||||
$body_cnt = $body_cnt['cnt'];
|
$body_cnt = $body_cnt['cnt'];
|
||||||
|
|
||||||
$check_body = $write['wr_2'];
|
$check_body = $write['wr_2'];
|
||||||
if($body_cnt > 0) {
|
if ($body_cnt > 0) {
|
||||||
$check_bodys = sql_fetch("select bd_url from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bd_use = '1'");
|
$check_bodys = sql_fetch("select bd_url from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bd_use = '1'");
|
||||||
$check_body = $check_bodys['bd_url'] ? $check_bodys['bd_url'] : $check_body;
|
$check_body = $check_bodys['bd_url'] ? $check_bodys['bd_url'] : $check_body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -30,154 +31,176 @@ $default_font = get_style('default_font');
|
||||||
$default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
$default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
var skin_path = "<?=$board['bo_skin']?>";
|
var skin_path = "<?= $board['bo_skin'] ?>";
|
||||||
var skin_url = g5_url + "/skin/board/" + skin_path;
|
var skin_url = g5_url + "/skin/board/" + skin_path;
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--pannel-line:<?=$color_line_color?>;
|
--pannel-line: <?= $color_line_color ?>;
|
||||||
--pannel-bak:<?=$color_bak_off?>;
|
--pannel-bak: <?= $color_bak_off ?>;
|
||||||
--pannel-bak-over:<?=$color_bak_over?>;
|
--pannel-bak-over: <?= $color_bak_over ?>;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="loading">
|
<div class="loading">
|
||||||
<div>
|
<div>
|
||||||
<div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
|
<div class="lds-roller">
|
||||||
<p>Loading...</p>
|
<div></div>
|
||||||
</div>
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
<p>Loading...</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="characterViewer">
|
<div class="characterViewer">
|
||||||
|
|
||||||
<?php if($write['wr_2']) { ?>
|
|
||||||
<div class="ch-body" onclick="$(this).toggleClass('pop');">
|
|
||||||
<div class="img">
|
|
||||||
<div><em style="background-image:url(<?=$check_body?>);"></em><img src="<?=$check_body?>" alt="" onerror="this.remove();"/></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="extend-icon-links">
|
<?php if ($write['wr_2']) { ?>
|
||||||
<div class="icons-link-box link-box">
|
<div class="ch-body" onclick="$(this).toggleClass('pop');">
|
||||||
<?php
|
<div class="img">
|
||||||
$extend_link_file = [];
|
<div><em style="background-image:url(<?= $check_body ?>);"></em><img src="<?= $check_body ?>" alt=""
|
||||||
$tmp = dir(G5_PATH."/plugin/board");
|
onerror="this.remove();" /></div>
|
||||||
while ($entry = $tmp->read()) {
|
</div>
|
||||||
// php 파일만 include 함
|
</div>
|
||||||
if (preg_match("/(\.php)$/i", $entry))
|
<?php } ?>
|
||||||
$extend_file[] = $entry;
|
|
||||||
}
|
|
||||||
if(!empty($extend_file) && is_array($extend_file)) {
|
|
||||||
natsort($extend_file);
|
|
||||||
foreach($extend_file as $file) {
|
|
||||||
include_once(G5_PATH."/plugin/board/".$file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
unset($extend_file);
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ch-pannel">
|
<div class="extend-icon-links">
|
||||||
<div class="inner">
|
<div class="icons-link-box link-box">
|
||||||
<div class="mid">
|
<?php
|
||||||
<div class="name-box txt-point">
|
$extend_link_file = [];
|
||||||
<?php if($write['wr_3']){?><span><?=$write['wr_3']?></span><?php } ?>
|
$tmp = dir(G5_PATH . "/plugin/board");
|
||||||
<strong><?=$write['wr_subject']?></strong>
|
while ($entry = $tmp->read()) {
|
||||||
</div>
|
// php 파일만 include 함
|
||||||
<?php if($write['wr_content']) { ?>
|
if (preg_match("/(\.php)$/i", $entry))
|
||||||
<div class="info">
|
$extend_file[] = $entry;
|
||||||
<?=$write['wr_content']?>
|
}
|
||||||
</div>
|
if (!empty($extend_file) && is_array($extend_file)) {
|
||||||
<?php } ?>
|
natsort($extend_file);
|
||||||
|
foreach ($extend_file as $file) {
|
||||||
|
include_once(G5_PATH . "/plugin/board/" . $file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
unset($extend_file);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr class="line" />
|
<div class="ch-pannel">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="mid">
|
||||||
|
<div class="name-box txt-point">
|
||||||
|
<?php if ($write['wr_3']) { ?><span><?= $write['wr_3'] ?></span><?php } ?>
|
||||||
|
<strong><?= $write['wr_subject'] ?></strong>
|
||||||
|
</div>
|
||||||
|
<?php if ($write['wr_content']) { ?>
|
||||||
|
<div class="info">
|
||||||
|
<?= $write['wr_content'] ?>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<div class="control">
|
<hr class="line" />
|
||||||
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="ui-btn etc"><i class="material-icons">edit</i> 수정</a><?php } ?>
|
|
||||||
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc" onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
|
|
||||||
<?php if ($update_href && $write['wr_2'] != '') { ?><a href="javascript:$('.body-add-form').toggle();" class="ui-btn point"><i class="material-icons">checkroom</i> 전신추가</a><?php } ?>
|
|
||||||
<a href="<?php echo $list_href ?><?=$qstr?>" class="ui-btn etc"><i class="material-icons">list</i> 목록</a>
|
|
||||||
</div>
|
|
||||||
<?php if ($update_href && $write['wr_2'] != '') { ?>
|
|
||||||
<div class="body-add-form theme-box">
|
|
||||||
<form method="post" id="frm_add_body" enctype="multipart/form-data" autocomplete="off">
|
|
||||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>" />
|
|
||||||
<input type="hidden" name="wr_id" value="<?=$wr_id?>" />
|
|
||||||
|
|
||||||
<input type="radio" name="add_new_body_type" id="add_new_body_type1" value="url" checked/>
|
<div class="control">
|
||||||
<label for="add_new_body_type1">URL등록</label>
|
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="ui-btn etc"><i
|
||||||
|
class="material-icons">edit</i> 수정</a><?php } ?>
|
||||||
|
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc"
|
||||||
|
onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
|
||||||
|
<?php if ($update_href && $write['wr_2'] != '') { ?><a href="javascript:$('.body-add-form').toggle();"
|
||||||
|
class="ui-btn point"><i class="material-icons">checkroom</i> 전신추가</a><?php } ?>
|
||||||
|
<a href="<?php echo $list_href ?><?= $qstr ?>" class="ui-btn etc"><i class="material-icons">list</i> 목록</a>
|
||||||
|
</div>
|
||||||
|
<?php if ($update_href && $write['wr_2'] != '') { ?>
|
||||||
|
<div class="body-add-form theme-box">
|
||||||
|
<form method="post" id="frm_add_body" enctype="multipart/form-data" autocomplete="off">
|
||||||
|
<input type="hidden" name="bo_table" value="<?= $bo_table ?>" />
|
||||||
|
<input type="hidden" name="wr_id" value="<?= $wr_id ?>" />
|
||||||
|
|
||||||
<input type="radio" name="add_new_body_type" id="add_new_body_type2" value="file" />
|
<input type="radio" name="add_new_body_type" id="add_new_body_type1" value="url" checked />
|
||||||
<label for="add_new_body_type2">FILE등록</label>
|
<label for="add_new_body_type1">URL등록</label>
|
||||||
|
|
||||||
<div class="input-box">
|
<input type="radio" name="add_new_body_type" id="add_new_body_type2" value="file" />
|
||||||
<input type="text" name="add_new_body" value="" />
|
<label for="add_new_body_type2">FILE등록</label>
|
||||||
<input type="file" name="add_new_body_file" title="용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" accept="image/*"/>
|
|
||||||
<button type="button" onclick="fn_body_add_form('frm_add_body');" class="ui-btn">등록</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
function fn_body_add_form(frm) {
|
|
||||||
var form = $("#" + frm)[0];
|
|
||||||
var formData = new FormData(form);
|
|
||||||
var url = skin_url;
|
|
||||||
$('.loading').addClass('mask');
|
|
||||||
|
|
||||||
$.ajax({
|
<div class="input-box">
|
||||||
cache : false,
|
<input type="text" name="add_new_body" value="" />
|
||||||
url : url + "/proc/add_body.php", // 요기에
|
<input type="file" name="add_new_body_file" title="용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
|
||||||
type : 'POST',
|
accept="image/*" />
|
||||||
processData: false,
|
<button type="button" onclick="fn_body_add_form('frm_add_body');" class="ui-btn">등록</button>
|
||||||
contentType: false,
|
</div>
|
||||||
data : formData,
|
</form>
|
||||||
success: function(data) {
|
</div>
|
||||||
// Toss
|
<script>
|
||||||
var response = data;
|
function fn_body_add_form(frm) {
|
||||||
$('.char-body-list').empty().append(response);
|
var form = $("#" + frm)[0];
|
||||||
form.reset();
|
var formData = new FormData(form);
|
||||||
},
|
var url = skin_url;
|
||||||
error: function(data, status, err) {
|
$('.loading').addClass('mask');
|
||||||
console.log("error!!");
|
|
||||||
},
|
$.ajax({
|
||||||
complete: function() {
|
cache: false,
|
||||||
// Complete
|
url: url + "/proc/add_body.php", // 요기에
|
||||||
$('.loading').removeClass('mask');
|
type: 'POST',
|
||||||
}
|
processData: false,
|
||||||
});
|
contentType: false,
|
||||||
}
|
data: formData,
|
||||||
</script>
|
success: function (data) {
|
||||||
<?php } ?>
|
// Toss
|
||||||
|
var response = data;
|
||||||
|
$('.char-body-list').empty().append(response);
|
||||||
|
form.reset();
|
||||||
|
},
|
||||||
|
error: function (data, status, err) {
|
||||||
|
console.log("error!!");
|
||||||
|
},
|
||||||
|
complete: function () {
|
||||||
|
// Complete
|
||||||
|
$('.loading').removeClass('mask');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
<hr class="line" />
|
<hr class="line" />
|
||||||
<div class='char-body-list'>
|
<div class='char-body-list'>
|
||||||
<?php if($body_cnt > 0 && $write['wr_2'] != '') {
|
<?php if ($body_cnt > 0 && $write['wr_2'] != '') {
|
||||||
// 전신 리스트 출력 (단, 추가로 등록한 전신이 있을 경우에만)
|
// 전신 리스트 출력 (단, 추가로 등록한 전신이 있을 경우에만)
|
||||||
include_once($board_skin_path."/view_body.skin.php");
|
include_once($board_skin_path . "/view_body.skin.php");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($write['wr_4']) { ?><div class="sub-title txt-default"><?=$write['wr_4']?></div><?php } ?>
|
<?php if ($write['wr_4']) { ?>
|
||||||
<?php if ($write['wr_4_txt']) { ?><div class="descript"><?=nl2br($write['wr_4_txt'])?></div><?php } ?>
|
<div class="sub-title txt-default"><?= $write['wr_4'] ?></div><?php } ?>
|
||||||
|
<?php if ($write['wr_4_txt']) { ?>
|
||||||
|
<div class="descript"><?= nl2br($write['wr_4_txt']) ?></div><?php } ?>
|
||||||
|
|
||||||
<?php if ($write['wr_5']) { ?><div class="sub-title txt-default"><?=$write['wr_5']?></div><?php } ?>
|
<?php if ($write['wr_5']) { ?>
|
||||||
<?php if ($write['wr_5_txt']) { ?><div class="descript"><?=nl2br($write['wr_5_txt'])?></div><?php } ?>
|
<div class="sub-title txt-default"><?= $write['wr_5'] ?></div><?php } ?>
|
||||||
|
<?php if ($write['wr_5_txt']) { ?>
|
||||||
|
<div class="descript"><?= nl2br($write['wr_5_txt']) ?></div><?php } ?>
|
||||||
|
|
||||||
<?php if ($write['wr_6']) { ?><div class="sub-title txt-default"><?=$write['wr_6']?></div><?php } ?>
|
<?php if ($write['wr_6']) { ?>
|
||||||
<?php if ($write['wr_6_txt']) { ?><div class="descript"><?=nl2br($write['wr_6_txt'])?></div><?php } ?>
|
<div class="sub-title txt-default"><?= $write['wr_6'] ?></div><?php } ?>
|
||||||
|
<?php if ($write['wr_6_txt']) { ?>
|
||||||
|
<div class="descript"><?= nl2br($write['wr_6_txt']) ?></div><?php } ?>
|
||||||
|
|
||||||
<?php if ($write['wr_7']) { ?><div class="sub-title txt-default"><?=$write['wr_7']?></div><?php } ?>
|
<?php if ($write['wr_7']) { ?>
|
||||||
<?php if ($write['wr_7_txt']) { ?><div class="descript"><?=nl2br($write['wr_7_txt'])?></div><?php } ?>
|
<div class="sub-title txt-default"><?= $write['wr_7'] ?></div><?php } ?>
|
||||||
|
<?php if ($write['wr_7_txt']) { ?>
|
||||||
|
<div class="descript"><?= nl2br($write['wr_7_txt']) ?></div><?php } ?>
|
||||||
|
|
||||||
<?php if ($write['wr_8']) { ?><div class="sub-title txt-default"><?=$write['wr_8']?></div><?php } ?>
|
<?php if ($write['wr_8']) { ?>
|
||||||
<?php if ($write['wr_8_txt']) { ?><div class="descript"><?=nl2br($write['wr_8_txt'])?></div><?php } ?>
|
<div class="sub-title txt-default"><?= $write['wr_8'] ?></div><?php } ?>
|
||||||
|
<?php if ($write['wr_8_txt']) { ?>
|
||||||
|
<div class="descript"><?= nl2br($write['wr_8_txt']) ?></div><?php } ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,148 +1,151 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$body_cnt = sql_fetch("select count(*) as cnt from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}'");
|
$body_cnt = sql_fetch("select count(*) as cnt from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}'");
|
||||||
$body_cnt = $body_cnt['cnt'];
|
$body_cnt = $body_cnt['cnt'];
|
||||||
|
|
||||||
if($body_cnt > 0) {
|
if ($body_cnt > 0) {
|
||||||
?>
|
?>
|
||||||
<div class="chaBodyList">
|
<div class="chaBodyList">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button type="button" class="prev txt-point"><span class="material-icons">arrow_back_ios</span></button>
|
<button type="button" class="prev txt-point"><span class="material-icons">arrow_back_ios</span></button>
|
||||||
<button type="button" class="next txt-point"><span class="material-icons">arrow_forward_ios</span></button>
|
<button type="button" class="next txt-point"><span class="material-icons">arrow_forward_ios</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="swiper-container">
|
<div class="swiper-container">
|
||||||
<ul class="swiper-wrapper">
|
<ul class="swiper-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$body_list = sql_query("select * from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' order by bd_id asc");
|
$body_list = sql_query("select * from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' order by bd_id asc");
|
||||||
for($i=0; $bd = sql_fetch_array($body_list); $i++) {
|
for ($i = 0; $bd = sql_fetch_array($body_list); $i++) {
|
||||||
if($i==0 && $write['wr_2'] != '') {
|
if ($i == 0 && $write['wr_2'] != '') {
|
||||||
?>
|
?>
|
||||||
<li class="swiper-slide">
|
<li class="swiper-slide">
|
||||||
<a href="#"; onclick="fn_viewer_chBody('', '<?=$write['wr_2']?>', this); return false;" class="theme-box"><img src="<?=$write['wr_2']?>" alt="" /></a>
|
<a href="#" ; onclick="fn_viewer_chBody('', '<?= $write['wr_2'] ?>', this); return false;"
|
||||||
</li>
|
class="theme-box"><img src="<?= $write['wr_2'] ?>" alt="" /></a>
|
||||||
<?php
|
</li>
|
||||||
}
|
<?php
|
||||||
?>
|
}
|
||||||
<li class="swiper-slide">
|
?>
|
||||||
<a href="#"; onclick="fn_viewer_chBody('<?=$bd['bd_id']?>', '<?=$bd['bd_url']?>', this); return false;" class="theme-box"><img src="<?=$bd['bd_url']?>" alt="" /></a>
|
<li class="swiper-slide">
|
||||||
</li>
|
<a href="#" ; onclick="fn_viewer_chBody('<?= $bd['bd_id'] ?>', '<?= $bd['bd_url'] ?>', this); return false;"
|
||||||
<?php
|
class="theme-box"><img src="<?= $bd['bd_url'] ?>" alt="" /></a>
|
||||||
}
|
</li>
|
||||||
?>
|
<?php
|
||||||
</ul>
|
}
|
||||||
</div>
|
?>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<script src="<?php echo $board_skin_url ?>/js/swiper.js"></script>
|
</div>
|
||||||
<script>
|
</div>
|
||||||
fn_slider_chaBodyList();
|
<script src="<?php echo $board_skin_url ?>/js/swiper.js"></script>
|
||||||
var slider_chaBodyList = null;
|
<script>
|
||||||
function fn_slider_chaBodyList() {
|
fn_slider_chaBodyList();
|
||||||
/* 중복 호출될 경우 이전에 생성된 슬라이더를 1회 초기화한 이후에 진행한다.*/
|
var slider_chaBodyList = null;
|
||||||
if(slider_chaBodyList != null) {
|
function fn_slider_chaBodyList() {
|
||||||
slider_chaBodyList.destroy(true, true);
|
/* 중복 호출될 경우 이전에 생성된 슬라이더를 1회 초기화한 이후에 진행한다.*/
|
||||||
slider_chaBodyList = null;
|
if (slider_chaBodyList != null) {
|
||||||
}
|
slider_chaBodyList.destroy(true, true);
|
||||||
|
slider_chaBodyList = null;
|
||||||
|
}
|
||||||
|
|
||||||
/* 슬라이더 생성 : 자세한 옵션은 데모 페이지 확인 */
|
/* 슬라이더 생성 : 자세한 옵션은 데모 페이지 확인 */
|
||||||
slider_chaBodyList = new Swiper('.chaBodyList .slider .swiper-container', {
|
slider_chaBodyList = new Swiper('.chaBodyList .slider .swiper-container', {
|
||||||
slidesPerView: 'auto',
|
slidesPerView: 'auto',
|
||||||
spaceBetween: 10,
|
spaceBetween: 10,
|
||||||
navigation: {
|
navigation: {
|
||||||
prevEl: '.chaBodyList .prev',
|
prevEl: '.chaBodyList .prev',
|
||||||
nextEl: '.chaBodyList .next'
|
nextEl: '.chaBodyList .next'
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php if($update_href) { ?>
|
<?php if ($update_href) { ?>
|
||||||
var control_idx = "";
|
var control_idx = "";
|
||||||
var originam_url = "<?=$write['wr_2']?>";
|
var originam_url = "<?= $write['wr_2'] ?>";
|
||||||
|
|
||||||
function fn_set_chBody(type, bo_table, wr_id) {
|
function fn_set_chBody(type, bo_table, wr_id) {
|
||||||
var url = skin_url;
|
var url = skin_url;
|
||||||
var formData = new FormData();
|
var formData = new FormData();
|
||||||
formData.append("bo_table", bo_table);
|
formData.append("bo_table", bo_table);
|
||||||
formData.append("wr_id", wr_id);
|
formData.append("wr_id", wr_id);
|
||||||
formData.append("bd_id", control_idx);
|
formData.append("bd_id", control_idx);
|
||||||
|
|
||||||
if(type == 'del') {
|
if (type == 'del') {
|
||||||
if(confirm("해당 데이터를 정말 삭제하시겠습니까?")) {
|
if (confirm("해당 데이터를 정말 삭제하시겠습니까?")) {
|
||||||
$('.loading').addClass('mask');
|
$('.loading').addClass('mask');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
cache : false,
|
cache: false,
|
||||||
url : url + "/proc/del_body.php", // 요기에
|
url: url + "/proc/del_body.php", // 요기에
|
||||||
type : 'POST',
|
type: 'POST',
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
data : formData,
|
data: formData,
|
||||||
success: function(data) {
|
success: function (data) {
|
||||||
// Toss
|
// Toss
|
||||||
var response = data;
|
var response = data;
|
||||||
$('.char-body-list').empty().append(response);
|
$('.char-body-list').empty().append(response);
|
||||||
$('.ch-body .img img').attr('src', originam_url);
|
$('.ch-body .img img').attr('src', originam_url);
|
||||||
$('#control_body_box').empty();
|
$('#control_body_box').empty();
|
||||||
},
|
},
|
||||||
error: function(data, status, err) {},
|
error: function (data, status, err) { },
|
||||||
complete: function() {
|
complete: function () {
|
||||||
// Complete
|
// Complete
|
||||||
$('.loading').removeClass('mask');
|
$('.loading').removeClass('mask');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(type == 'set') {
|
if (type == 'set') {
|
||||||
if(confirm("해당 데이터를 기본 전신으로 설정하시겠습니까?")) {
|
if (confirm("해당 데이터를 기본 전신으로 설정하시겠습니까?")) {
|
||||||
$('.loading').addClass('mask');
|
$('.loading').addClass('mask');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
cache : false,
|
cache: false,
|
||||||
url : url + "/proc/set_body.php", // 요기에
|
url: url + "/proc/set_body.php", // 요기에
|
||||||
type : 'POST',
|
type: 'POST',
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
data : formData,
|
data: formData,
|
||||||
success: function(data) {
|
success: function (data) {
|
||||||
$('#control_body_box').empty();
|
$('#control_body_box').empty();
|
||||||
},
|
},
|
||||||
error: function(data, status, err) {},
|
error: function (data, status, err) { },
|
||||||
complete: function() {
|
complete: function () {
|
||||||
// Complete
|
// Complete
|
||||||
$('.loading').removeClass('mask');
|
$('.loading').removeClass('mask');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
function fn_viewer_chBody(idx, img, obj) {
|
function fn_viewer_chBody(idx, img, obj) {
|
||||||
var control_html = '';
|
var control_html = '';
|
||||||
|
|
||||||
<?php if($update_href) { ?>
|
<?php if ($update_href) { ?>
|
||||||
if(idx) {
|
if (idx) {
|
||||||
// 추가된 전신 정보
|
// 추가된 전신 정보
|
||||||
var control_html = '<div class="body-control"><a href="javascript:fn_set_chBody(\'set\', \'<?=$bo_table?>\', \'<?=$wr_id?>\');" class="ui-btn">기본설정</a><a href="javascript:fn_set_chBody(\'del\', \'<?=$bo_table?>\', \'<?=$wr_id?>\');" class="ui-btn etc">삭제</a></div>';
|
var control_html = '<div class="body-control"><a href="javascript:fn_set_chBody(\'set\', \'<?= $bo_table ?>\', \'<?= $wr_id ?>\');" class="ui-btn">기본설정</a><a href="javascript:fn_set_chBody(\'del\', \'<?= $bo_table ?>\', \'<?= $wr_id ?>\');" class="ui-btn etc">삭제</a></div>';
|
||||||
} else {
|
} else {
|
||||||
var control_html = '<div class="body-control"><a href="javascript:fn_set_chBody(\'set\', \'<?=$bo_table?>\', \'<?=$wr_id?>\');" class="ui-btn">기본설정</a></div>';
|
var control_html = '<div class="body-control"><a href="javascript:fn_set_chBody(\'set\', \'<?= $bo_table ?>\', \'<?= $wr_id ?>\');" class="ui-btn">기본설정</a></div>';
|
||||||
}
|
}
|
||||||
control_idx = idx;
|
control_idx = idx;
|
||||||
$('#control_body_box').html(control_html);
|
$('#control_body_box').html(control_html);
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
if(img) {
|
if (img) {
|
||||||
$('.ch-body .img img').attr('src', img);
|
$('.ch-body .img img').attr('src', img);
|
||||||
$('.ch-body .img em').css('background-image', 'url('+img+')');
|
$('.ch-body .img em').css('background-image', 'url(' + img + ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.chaBodyList .checked').removeClass('checked');
|
$('.chaBodyList .checked').removeClass('checked');
|
||||||
$(obj).addClass('checked');
|
$(obj).addClass('checked');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="control_body_box"></div>
|
<div id="control_body_box"></div>
|
||||||
|
|
||||||
<hr class='line' />
|
<hr class='line' />
|
||||||
<?php } ?>
|
<?php }
|
||||||
|
|
|
||||||
|
|
@ -1,324 +1,328 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
$comment_action_url = https_url(G5_BBS_DIR)."/write_comment_update.php";
|
exit; // 개별 페이지 접근 불가
|
||||||
|
$comment_action_url = https_url(G5_BBS_DIR) . "/write_comment_update.php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// 글자수 제한
|
// 글자수 제한
|
||||||
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
||||||
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- 댓글 시작 { -->
|
<!-- 댓글 시작 { -->
|
||||||
<section id="bo_vc">
|
<section id="bo_vc">
|
||||||
<?php
|
<?php
|
||||||
$cmt_amt = count($list);
|
$cmt_amt = count($list);
|
||||||
for ($i=0; $i<$cmt_amt; $i++) {
|
for ($i = 0; $i < $cmt_amt; $i++) {
|
||||||
$comment_id = $list[$i]['wr_id'];
|
$comment_id = $list[$i]['wr_id'];
|
||||||
$cmt_depth = ""; // 댓글단계
|
$cmt_depth = ""; // 댓글단계
|
||||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 10;
|
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 10;
|
||||||
$comment = $list[$i]['content'];
|
$comment = $list[$i]['content'];
|
||||||
/*
|
/*
|
||||||
if (strstr($list[$i]['wr_option'], "secret")) {
|
if (strstr($list[$i]['wr_option'], "secret")) {
|
||||||
$str = $str;
|
$str = $str;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
$comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);
|
$comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);
|
||||||
$cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결
|
$cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>class="is-reply" style="border-left-width:<?php echo $cmt_depth ?>px;"<?php } ?>>
|
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>class="is-reply"
|
||||||
<header style="z-index:<?php echo $cmt_sv; ?>">
|
style="border-left-width:<?php echo $cmt_depth ?>px;" <?php } ?>>
|
||||||
<?php echo $list[$i]['name'] ?>
|
<header style="z-index:<?php echo $cmt_sv; ?>">
|
||||||
<?php if ($is_ip_view) { ?>
|
<?php echo $list[$i]['name'] ?>
|
||||||
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
|
<?php if ($is_ip_view) { ?>
|
||||||
<?php } ?>
|
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
|
||||||
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo date('m/d H:i', strtotime($list[$i]['datetime'])) ?></time></span>
|
<?php } ?>
|
||||||
<?php
|
<span class="bo_vc_hdinfo"><time
|
||||||
include(G5_SNS_PATH.'/view_comment_list.sns.skin.php');
|
datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo date('m/d H:i', strtotime($list[$i]['datetime'])) ?></time></span>
|
||||||
?>
|
<?php
|
||||||
</header>
|
include(G5_SNS_PATH . '/view_comment_list.sns.skin.php');
|
||||||
|
?>
|
||||||
|
</header>
|
||||||
|
|
||||||
<!-- 댓글 출력 -->
|
<!-- 댓글 출력 -->
|
||||||
<p>
|
<p>
|
||||||
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
|
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img
|
||||||
<?php echo $comment ?>
|
src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
|
||||||
</p>
|
<?php echo $comment ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
|
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
|
||||||
<span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 -->
|
<span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 -->
|
||||||
|
|
||||||
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<?php echo $comment_id ?>">
|
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'], "secret") ?>"
|
||||||
<textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
|
id="secret_comment_<?php echo $comment_id ?>">
|
||||||
|
<textarea id="save_comment_<?php echo $comment_id ?>"
|
||||||
|
style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
|
||||||
|
|
||||||
<?php if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
|
<?php if ($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
|
||||||
$query_string = clean_query_string($_SERVER['QUERY_STRING']);
|
$query_string = clean_query_string($_SERVER['QUERY_STRING']);
|
||||||
|
|
||||||
if($w == 'cu') {
|
if ($w == 'cu') {
|
||||||
$sql = " select wr_id, wr_content, mb_id from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
|
$sql = " select wr_id, wr_content, mb_id from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
|
||||||
$cmt = sql_fetch($sql);
|
$cmt = sql_fetch($sql);
|
||||||
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))
|
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))
|
||||||
$cmt['wr_content'] = '';
|
$cmt['wr_content'] = '';
|
||||||
$c_wr_content = $cmt['wr_content'];
|
$c_wr_content = $cmt['wr_content'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w';
|
$c_reply_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=c#bo_vc_w';
|
||||||
$c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w';
|
$c_edit_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=cu#bo_vc_w';
|
||||||
?>
|
?>
|
||||||
<footer>
|
<footer>
|
||||||
<ul class="bo_vc_act">
|
<ul class="bo_vc_act">
|
||||||
<?php if ($list[$i]['is_reply']) { ?><li><a href="<?php echo $c_reply_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;" class="ui-btn small point">답변</a></li><?php } ?>
|
<?php if ($list[$i]['is_reply']) { ?>
|
||||||
<?php if ($list[$i]['is_edit']) { ?><li><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;" class="ui-btn small etc">수정</a></li><?php } ?>
|
<li><a href="<?php echo $c_reply_href; ?>"
|
||||||
<?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();" class="ui-btn small">삭제</a></li><?php } ?>
|
onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;" class="ui-btn small point">답변</a>
|
||||||
</ul>
|
</li><?php } ?>
|
||||||
</footer>
|
<?php if ($list[$i]['is_edit']) { ?>
|
||||||
<?php } ?>
|
<li><a href="<?php echo $c_edit_href; ?>"
|
||||||
</article>
|
onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;" class="ui-btn small etc">수정</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
|
<?php if ($list[$i]['is_del']) { ?>
|
||||||
|
<li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();"
|
||||||
|
class="ui-btn small">삭제</a></li><?php } ?>
|
||||||
|
</ul>
|
||||||
|
</footer>
|
||||||
|
<?php } ?>
|
||||||
|
</article>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if ($i == 0) { //댓글이 없다면 ?>
|
||||||
|
<p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
<!-- } 댓글 끝 -->
|
<!-- } 댓글 끝 -->
|
||||||
|
|
||||||
<?php if ($is_comment_write) {
|
<?php if ($is_comment_write) {
|
||||||
if($w == '')
|
if ($w == '')
|
||||||
$w = 'c';
|
$w = 'c';
|
||||||
?>
|
?>
|
||||||
<!-- 댓글 쓰기 시작 { -->
|
<!-- 댓글 쓰기 시작 { -->
|
||||||
<aside id="bo_vc_w" class="theme-box">
|
<aside id="bo_vc_w" class="theme-box">
|
||||||
<form name="fviewcomment" action="<?php echo $comment_action_url; ?>" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
|
<form name="fviewcomment" action="<?php echo $comment_action_url; ?>" onsubmit="return fviewcomment_submit(this);"
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
method="post" autocomplete="off">
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
<input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id">
|
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
<input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id">
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||||
<input type="hidden" name="is_good" value="">
|
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||||
|
<input type="hidden" name="is_good" value="">
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 80px;" />
|
<col style="width: 80px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if ($is_guest) { ?>
|
<?php if ($is_guest) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only"> 필수</strong></label></th>
|
<th scope="row"><label for="wr_name">이름<strong class="sound_only"> 필수</strong></label></th>
|
||||||
<td><input type="text" name="wr_name" value="<?php echo get_cookie("ck_sns_name"); ?>" id="wr_name" required class="frm_input required" size="5" maxLength="20"></td>
|
<td><input type="text" name="wr_name" value="<?php echo get_cookie("ck_sns_name"); ?>" id="wr_name" required
|
||||||
</tr>
|
class="frm_input required" size="5" maxLength="20"></td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only"> 필수</strong></label></th>
|
<tr>
|
||||||
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td>
|
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only"> 필수</strong></label></th>
|
||||||
</tr>
|
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10"
|
||||||
<?php } ?>
|
maxLength="20"></td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><label for="wr_secret">비밀글</label></th>
|
<?php } ?>
|
||||||
<td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td>
|
<tr>
|
||||||
</tr>
|
<th scope="row"><label for="wr_secret">비밀글</label></th>
|
||||||
<?php if ($is_guest) { ?>
|
<td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row">자동등록방지</th>
|
<?php if ($is_guest) { ?>
|
||||||
<td><?php echo $captcha_html; ?></td>
|
<tr>
|
||||||
</tr>
|
<th scope="row">자동등록방지</th>
|
||||||
<?php } ?>
|
<td><?php echo $captcha_html; ?></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<?php } ?>
|
||||||
<th scope="row">내용</th>
|
|
||||||
<td>
|
|
||||||
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
|
|
||||||
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용"
|
|
||||||
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
|
|
||||||
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
|
||||||
<script>
|
|
||||||
$(document).on( "keyup change", "textarea#wr_content[maxlength]", function(){
|
|
||||||
var str = $(this).val()
|
|
||||||
var mx = parseInt($(this).attr("maxlength"))
|
|
||||||
if (str.length > mx) {
|
|
||||||
$(this).val(str.substr(0, mx));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="btn_confirm">
|
<tr>
|
||||||
<button type="submit" id="btn_submit" class="ui-btn">댓글등록</button>
|
<th scope="row">내용</th>
|
||||||
</div>
|
<td>
|
||||||
|
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span
|
||||||
|
id="char_count"></span>글자</strong><?php } ?>
|
||||||
|
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용" <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');" <?php } ?>><?php echo $c_wr_content; ?></textarea>
|
||||||
|
<?php if ($comment_min || $comment_max) { ?>
|
||||||
|
<script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
||||||
|
<script>
|
||||||
|
$(document).on("keyup change", "textarea#wr_content[maxlength]", function () {
|
||||||
|
var str = $(this).val()
|
||||||
|
var mx = parseInt($(this).attr("maxlength"))
|
||||||
|
if (str.length > mx) {
|
||||||
|
$(this).val(str.substr(0, mx));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
<div class="btn_confirm">
|
||||||
</aside>
|
<button type="submit" id="btn_submit" class="ui-btn">댓글등록</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
</form>
|
||||||
var save_before = '';
|
</aside>
|
||||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
|
||||||
|
|
||||||
function good_and_write()
|
<script>
|
||||||
{
|
var save_before = '';
|
||||||
var f = document.fviewcomment;
|
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
if (fviewcomment_submit(f)) {
|
|
||||||
f.is_good.value = 1;
|
|
||||||
f.submit();
|
|
||||||
} else {
|
|
||||||
f.is_good.value = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function fviewcomment_submit(f)
|
function good_and_write() {
|
||||||
{
|
var f = document.fviewcomment;
|
||||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
if (fviewcomment_submit(f)) {
|
||||||
|
f.is_good.value = 1;
|
||||||
|
f.submit();
|
||||||
|
} else {
|
||||||
|
f.is_good.value = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
f.is_good.value = 0;
|
function fviewcomment_submit(f) {
|
||||||
|
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||||
|
|
||||||
var subject = "";
|
f.is_good.value = 0;
|
||||||
var content = "";
|
|
||||||
$.ajax({
|
|
||||||
url: g5_bbs_url+"/ajax.filter.php",
|
|
||||||
type: "POST",
|
|
||||||
data: {
|
|
||||||
"subject": "",
|
|
||||||
"content": f.wr_content.value
|
|
||||||
},
|
|
||||||
dataType: "json",
|
|
||||||
async: false,
|
|
||||||
cache: false,
|
|
||||||
success: function(data, textStatus) {
|
|
||||||
subject = data.subject;
|
|
||||||
content = data.content;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (content) {
|
var subject = "";
|
||||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
var content = "";
|
||||||
f.wr_content.focus();
|
$.ajax({
|
||||||
return false;
|
url: g5_bbs_url + "/ajax.filter.php",
|
||||||
}
|
type: "POST",
|
||||||
|
data: {
|
||||||
|
"subject": "",
|
||||||
|
"content": f.wr_content.value
|
||||||
|
},
|
||||||
|
dataType: "json",
|
||||||
|
async: false,
|
||||||
|
cache: false,
|
||||||
|
success: function (data, textStatus) {
|
||||||
|
subject = data.subject;
|
||||||
|
content = data.content;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 양쪽 공백 없애기
|
if (content) {
|
||||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
|
||||||
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
f.wr_content.focus();
|
||||||
if (char_min > 0 || char_max > 0)
|
return false;
|
||||||
{
|
}
|
||||||
check_byte('wr_content', 'char_count');
|
|
||||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
|
||||||
if (char_min > 0 && char_min > cnt)
|
|
||||||
{
|
|
||||||
alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
|
||||||
return false;
|
|
||||||
} else if (char_max > 0 && char_max < cnt)
|
|
||||||
{
|
|
||||||
alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (!document.getElementById('wr_content').value)
|
|
||||||
{
|
|
||||||
alert("댓글을 입력하여 주십시오.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof(f.wr_name) != 'undefined')
|
// 양쪽 공백 없애기
|
||||||
{
|
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
||||||
if (f.wr_name.value == '')
|
if (char_min > 0 || char_max > 0) {
|
||||||
{
|
check_byte('wr_content', 'char_count');
|
||||||
alert('이름이 입력되지 않았습니다.');
|
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||||
f.wr_name.focus();
|
if (char_min > 0 && char_min > cnt) {
|
||||||
return false;
|
alert("댓글은 " + char_min + "글자 이상 쓰셔야 합니다.");
|
||||||
}
|
return false;
|
||||||
}
|
} else if (char_max > 0 && char_max < cnt) {
|
||||||
|
alert("댓글은 " + char_max + "글자 이하로 쓰셔야 합니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (!document.getElementById('wr_content').value) {
|
||||||
|
alert("댓글을 입력하여 주십시오.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof(f.wr_password) != 'undefined')
|
if (typeof (f.wr_name) != 'undefined') {
|
||||||
{
|
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
if (f.wr_name.value == '') {
|
||||||
if (f.wr_password.value == '')
|
alert('이름이 입력되지 않았습니다.');
|
||||||
{
|
f.wr_name.focus();
|
||||||
alert('비밀번호가 입력되지 않았습니다.');
|
return false;
|
||||||
f.wr_password.focus();
|
}
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<?php if($is_guest) echo chk_captcha_js(); ?>
|
if (typeof (f.wr_password) != 'undefined') {
|
||||||
|
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||||
|
if (f.wr_password.value == '') {
|
||||||
|
alert('비밀번호가 입력되지 않았습니다.');
|
||||||
|
f.wr_password.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
set_comment_token(f);
|
<?php if ($is_guest)
|
||||||
|
echo chk_captcha_js(); ?>
|
||||||
|
|
||||||
document.getElementById("btn_submit").disabled = "disabled";
|
set_comment_token(f);
|
||||||
|
|
||||||
return true;
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
}
|
|
||||||
|
|
||||||
function comment_box(comment_id, work)
|
return true;
|
||||||
{
|
}
|
||||||
var el_id;
|
|
||||||
// 댓글 아이디가 넘어오면 답변, 수정
|
|
||||||
if (comment_id)
|
|
||||||
{
|
|
||||||
if (work == 'c')
|
|
||||||
el_id = 'reply_' + comment_id;
|
|
||||||
else
|
|
||||||
el_id = 'edit_' + comment_id;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
el_id = 'bo_vc_w';
|
|
||||||
|
|
||||||
if (save_before != el_id)
|
function comment_box(comment_id, work) {
|
||||||
{
|
var el_id;
|
||||||
if (save_before)
|
// 댓글 아이디가 넘어오면 답변, 수정
|
||||||
{
|
if (comment_id) {
|
||||||
document.getElementById(save_before).style.display = 'none';
|
if (work == 'c')
|
||||||
document.getElementById(save_before).innerHTML = '';
|
el_id = 'reply_' + comment_id;
|
||||||
}
|
else
|
||||||
|
el_id = 'edit_' + comment_id;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
el_id = 'bo_vc_w';
|
||||||
|
|
||||||
document.getElementById(el_id).style.display = '';
|
if (save_before != el_id) {
|
||||||
document.getElementById(el_id).innerHTML = save_html;
|
if (save_before) {
|
||||||
// 댓글 수정
|
document.getElementById(save_before).style.display = 'none';
|
||||||
if (work == 'cu')
|
document.getElementById(save_before).innerHTML = '';
|
||||||
{
|
}
|
||||||
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
|
||||||
if (typeof char_count != 'undefined')
|
|
||||||
check_byte('wr_content', 'char_count');
|
|
||||||
if (document.getElementById('secret_comment_'+comment_id).value)
|
|
||||||
document.getElementById('wr_secret').checked = true;
|
|
||||||
else
|
|
||||||
document.getElementById('wr_secret').checked = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
document.getElementById('comment_id').value = comment_id;
|
document.getElementById(el_id).style.display = '';
|
||||||
document.getElementById('w').value = work;
|
document.getElementById(el_id).innerHTML = save_html;
|
||||||
|
// 댓글 수정
|
||||||
|
if (work == 'cu') {
|
||||||
|
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
||||||
|
if (typeof char_count != 'undefined')
|
||||||
|
check_byte('wr_content', 'char_count');
|
||||||
|
if (document.getElementById('secret_comment_' + comment_id).value)
|
||||||
|
document.getElementById('wr_secret').checked = true;
|
||||||
|
else
|
||||||
|
document.getElementById('wr_secret').checked = false;
|
||||||
|
}
|
||||||
|
|
||||||
if(save_before)
|
document.getElementById('comment_id').value = comment_id;
|
||||||
$("#captcha_reload").trigger("click");
|
document.getElementById('w').value = work;
|
||||||
|
|
||||||
save_before = el_id;
|
if (save_before)
|
||||||
}
|
$("#captcha_reload").trigger("click");
|
||||||
}
|
|
||||||
|
|
||||||
function comment_delete()
|
save_before = el_id;
|
||||||
{
|
}
|
||||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
function comment_delete() {
|
||||||
|
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||||
|
}
|
||||||
|
|
||||||
<?php if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
|
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||||
// sns 등록
|
|
||||||
$(function() {
|
<?php if ($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
|
||||||
$("#bo_vc_send_sns").load(
|
// sns 등록
|
||||||
"<?php echo G5_SNS_URL; ?>/view_comment_write.sns.skin.php?bo_table=<?php echo $bo_table; ?>",
|
$(function () {
|
||||||
function() {
|
$("#bo_vc_send_sns").load(
|
||||||
save_html = document.getElementById('bo_vc_w').innerHTML;
|
"<?php echo G5_SNS_URL; ?>/view_comment_write.sns.skin.php?bo_table=<?php echo $bo_table; ?>",
|
||||||
}
|
function () {
|
||||||
);
|
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
<?php } ?>
|
||||||
|
</script>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</script>
|
<!-- } 댓글 쓰기 끝 -->
|
||||||
<?php } ?>
|
|
||||||
<!-- } 댓글 쓰기 끝 -->
|
|
||||||
|
|
|
||||||
|
|
@ -1,112 +1,117 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if($w == '') {
|
if ($w == '') {
|
||||||
$write['wr_4'] = '외관';
|
$write['wr_4'] = '외관';
|
||||||
$write['wr_5'] = '성격';
|
$write['wr_5'] = '성격';
|
||||||
$write['wr_6'] = '특징';
|
$write['wr_6'] = '특징';
|
||||||
$write['wr_7'] = '기타';
|
$write['wr_7'] = '기타';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">캐릭터 이름</th>
|
<th scope="row">캐릭터 이름</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required" size="50" maxlength="255">
|
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required" size="50"
|
||||||
</td>
|
maxlength="255">
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">타이틀</th>
|
<th scope="row">타이틀</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="wr_3" value="<?php echo $write['wr_3'] ?>" class="frm_input" size="30" maxlength="255">
|
<input type="text" name="wr_3" value="<?php echo $write['wr_3'] ?>" class="frm_input" size="30" maxlength="255">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">정렬순서</th>
|
<th scope="row">정렬순서</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="wr_ing" value="<?php echo $write['wr_ing'] ?>" class="frm_input" size="5" maxlength="255">
|
<input type="text" name="wr_ing" value="<?php echo $write['wr_ing'] ?>" class="frm_input" size="5" maxlength="255">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 90px;" />
|
<col style="width: 90px;" />
|
||||||
<col style="width: 80px;" />
|
<col style="width: 80px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2" scope="row">두상</th>
|
<th rowspan="2" scope="row">두상</th>
|
||||||
<td>외부경로</td>
|
<td>외부경로</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="wr_1_prev" value="<?php echo $write['wr_1'] ?>" />
|
<input type="hidden" name="wr_1_prev" value="<?php echo $write['wr_1'] ?>" />
|
||||||
<input type="text" name="wr_1" value="<?php echo $write['wr_1'] ?>" class="frm_input" size="30" maxlength="255">
|
<input type="text" name="wr_1" value="<?php echo $write['wr_1'] ?>" class="frm_input" size="30" maxlength="255">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>업로드</td>
|
<td>업로드</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
|
||||||
</td>
|
class="frm_file frm_input">
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th rowspan="2" scope="row">전신</th>
|
<tr>
|
||||||
<td>외부경로</td>
|
<th rowspan="2" scope="row">전신</th>
|
||||||
<td>
|
<td>외부경로</td>
|
||||||
<input type="hidden" name="wr_2_prev" value="<?php echo $write['wr_2'] ?>" />
|
<td>
|
||||||
<input type="text" name="wr_2" value="<?php echo $write['wr_2'] ?>" class="frm_input" size="30" maxlength="255">
|
<input type="hidden" name="wr_2_prev" value="<?php echo $write['wr_2'] ?>" />
|
||||||
</td>
|
<input type="text" name="wr_2" value="<?php echo $write['wr_2'] ?>" class="frm_input" size="30" maxlength="255">
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td>업로드</td>
|
<tr>
|
||||||
<td>
|
<td>업로드</td>
|
||||||
<input type="file" name="wr_2_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
<td>
|
||||||
</td>
|
<input type="file" name="wr_2_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
|
||||||
</tr>
|
class="frm_file frm_input">
|
||||||
</tbody>
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 90px;" />
|
<col style="width: 90px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">기본정보</th>
|
<th scope="row">기본정보</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="wr_content" placeholder="나이, 성별 등" value="<?php echo $write['wr_content'] ?>" class="frm_input" size="50" maxlength="255">
|
<input type="text" name="wr_content" placeholder="나이, 성별 등" value="<?php echo $write['wr_content'] ?>"
|
||||||
</td>
|
class="frm_input" size="50" maxlength="255">
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input full" /></th>
|
<tr>
|
||||||
<td>
|
<th scope="row"><input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input full" /></th>
|
||||||
<textarea name="wr_4_txt"><?=$write['wr_4_txt']?></textarea>
|
<td>
|
||||||
</td>
|
<textarea name="wr_4_txt"><?= $write['wr_4_txt'] ?></textarea>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input full" /></th>
|
<tr>
|
||||||
<td>
|
<th scope="row"><input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input full" /></th>
|
||||||
<textarea name="wr_5_txt"><?=$write['wr_5_txt']?></textarea>
|
<td>
|
||||||
</td>
|
<textarea name="wr_5_txt"><?= $write['wr_5_txt'] ?></textarea>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><input type="text" name="wr_6" value="<?php echo $write['wr_6'] ?>" class="frm_input full" /></th>
|
<tr>
|
||||||
<td>
|
<th scope="row"><input type="text" name="wr_6" value="<?php echo $write['wr_6'] ?>" class="frm_input full" /></th>
|
||||||
<textarea name="wr_6_txt"><?=$write['wr_6_txt']?></textarea>
|
<td>
|
||||||
</td>
|
<textarea name="wr_6_txt"><?= $write['wr_6_txt'] ?></textarea>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><input type="text" name="wr_7" value="<?php echo $write['wr_7'] ?>" class="frm_input full" /></th>
|
<tr>
|
||||||
<td>
|
<th scope="row"><input type="text" name="wr_7" value="<?php echo $write['wr_7'] ?>" class="frm_input full" /></th>
|
||||||
<textarea name="wr_7_txt"><?=$write['wr_7_txt']?></textarea>
|
<td>
|
||||||
</td>
|
<textarea name="wr_7_txt"><?= $write['wr_7_txt'] ?></textarea>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row"><input type="text" name="wr_8" value="<?php echo $write['wr_8'] ?>" class="frm_input full" /></th>
|
<tr>
|
||||||
<td>
|
<th scope="row"><input type="text" name="wr_8" value="<?php echo $write['wr_8'] ?>" class="frm_input full" /></th>
|
||||||
<textarea name="wr_8_txt"><?=$write['wr_8_txt']?></textarea>
|
<td>
|
||||||
</td>
|
<textarea name="wr_8_txt"><?= $write['wr_8_txt'] ?></textarea>
|
||||||
</tr>
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -1,132 +1,141 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php'); // 달력
|
exit; // 개별 페이지 접근 불가
|
||||||
|
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php'); // 달력
|
||||||
|
|
||||||
// 게시물 목록을 불러온다.
|
// 게시물 목록을 불러온다.
|
||||||
|
|
||||||
$character_list = sql_query("select wr_id, wr_subject from {$write_table} where wr_type != 'pair' and wr_is_comment = 0 order by wr_subject");
|
$character_list = sql_query("select wr_id, wr_subject from {$write_table} where wr_type != 'pair' and wr_is_comment = 0 order by wr_subject");
|
||||||
$character_ids = [];
|
$character_ids = [];
|
||||||
|
|
||||||
for($i=0; $row = sql_fetch_array($character_list); $i++) {
|
for ($i = 0; $row = sql_fetch_array($character_list); $i++) {
|
||||||
$character_ids[$i] = $row;
|
$character_ids[$i] = $row;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<input type="hidden" name="notice" value="1">
|
<input type="hidden" name="notice" value="1">
|
||||||
<input type="hidden" name="ca_name" value="공지">
|
<input type="hidden" name="ca_name" value="공지">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">시작일자</th>
|
<th scope="row">시작일자</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required datepicker" size="12" maxlength="255">
|
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required datepicker"
|
||||||
</td>
|
size="12" maxlength="255">
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">정렬순서</th>
|
<th scope="row">정렬순서</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="wr_ing" value="<?php echo $write['wr_ing'] ?>" class="frm_input" size="5" maxlength="255">
|
<input type="text" name="wr_ing" value="<?php echo $write['wr_ing'] ?>" class="frm_input" size="5" maxlength="255">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
$(function(){
|
$(function () {
|
||||||
$(".datepicker").datepicker({
|
$(".datepicker").datepicker({
|
||||||
dateFormat: "yy-mm-dd",
|
dateFormat: "yy-mm-dd",
|
||||||
onSelect:function(dateText, inst) {
|
onSelect: function (dateText, inst) {
|
||||||
console.log(dateText);
|
console.log(dateText);
|
||||||
console.log(inst);
|
console.log(inst);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//]]>
|
//]]>
|
||||||
</script><!-- 달력 끝 -->
|
</script><!-- 달력 끝 -->
|
||||||
<br />
|
<br />
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 90px;" />
|
<col style="width: 90px;" />
|
||||||
<col style="width: 70px;" />
|
<col style="width: 70px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2">
|
<th rowspan="2">
|
||||||
좌측
|
좌측
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
캐릭터
|
캐릭터
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="wr_2">
|
<select name="wr_2">
|
||||||
<?php
|
<?php
|
||||||
for($i=0; $i < count($character_ids); $i++) {
|
for ($i = 0; $i < count($character_ids); $i++) {
|
||||||
echo "<option value='{$character_ids[$i]['wr_id']}' ";
|
echo "<option value='{$character_ids[$i]['wr_id']}' ";
|
||||||
if($write['wr_2'] == $character_ids[$i]['wr_id']) echo "selected";
|
if ($write['wr_2'] == $character_ids[$i]['wr_id'])
|
||||||
echo ">{$character_ids[$i]['wr_subject']}</option>";
|
echo "selected";
|
||||||
}
|
echo ">{$character_ids[$i]['wr_subject']}</option>";
|
||||||
?>
|
}
|
||||||
</select>
|
?>
|
||||||
</td></tr><tr>
|
</select>
|
||||||
<td>관계명</td>
|
</td>
|
||||||
<td>
|
</tr>
|
||||||
<input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input" size="30" maxlength="255">
|
<tr>
|
||||||
</td>
|
<td>관계명</td>
|
||||||
</tr>
|
<td>
|
||||||
|
<input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input" size="30" maxlength="255">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2">
|
<th rowspan="2">
|
||||||
우측
|
우측
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
캐릭터
|
캐릭터
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="wr_3">
|
<select name="wr_3">
|
||||||
<?php
|
<?php
|
||||||
for($i=0; $i < count($character_ids); $i++) {
|
for ($i = 0; $i < count($character_ids); $i++) {
|
||||||
echo "<option value='{$character_ids[$i]['wr_id']}' ";
|
echo "<option value='{$character_ids[$i]['wr_id']}' ";
|
||||||
if($write['wr_3'] == $character_ids[$i]['wr_id']) echo "selected";
|
if ($write['wr_3'] == $character_ids[$i]['wr_id'])
|
||||||
echo ">{$character_ids[$i]['wr_subject']}</option>";
|
echo "selected";
|
||||||
}
|
echo ">{$character_ids[$i]['wr_subject']}</option>";
|
||||||
?>
|
}
|
||||||
</select>
|
?>
|
||||||
</td></tr><tr>
|
</select>
|
||||||
<td>관계명</td>
|
</td>
|
||||||
<td>
|
</tr>
|
||||||
<input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input" size="30" maxlength="255">
|
<tr>
|
||||||
</td>
|
<td>관계명</td>
|
||||||
</tr>
|
<td>
|
||||||
</tbody>
|
<input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input" size="30" maxlength="255">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 90px;" />
|
<col style="width: 90px;" />
|
||||||
<col style="width: 70px;" />
|
<col style="width: 70px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2" scope="row">배경</th>
|
<th rowspan="2" scope="row">배경</th>
|
||||||
<td>외부경로</td>
|
<td>외부경로</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="wr_1_prev" value="<?php echo $write['wr_1'] ?>" />
|
<input type="hidden" name="wr_1_prev" value="<?php echo $write['wr_1'] ?>" />
|
||||||
<input type="text" name="wr_1" value="<?php echo $write['wr_1'] ?>" class="frm_input" size="30" maxlength="255">
|
<input type="text" name="wr_1" value="<?php echo $write['wr_1'] ?>" class="frm_input" size="30" maxlength="255">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>업로드</td>
|
<td>업로드</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
|
||||||
</td>
|
class="frm_file frm_input">
|
||||||
</tr>
|
</td>
|
||||||
</tbody>
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 90px;" />
|
<col style="width: 90px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -1,191 +1,200 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
include_once($board_skin_path.'/_setting.php');
|
exit; // 개별 페이지 접근 불가
|
||||||
|
include_once($board_skin_path . '/_setting.php');
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
if(!isset($write['wr_1_txt'])) {
|
if (!isset($write['wr_1_txt'])) {
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_1_txt` text NOT NULL AFTER `wr_1` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_1_txt` text NOT NULL AFTER `wr_1` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_2_txt` text NOT NULL AFTER `wr_2` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_2_txt` text NOT NULL AFTER `wr_2` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_3_txt` text NOT NULL AFTER `wr_3` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_3_txt` text NOT NULL AFTER `wr_3` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_4_txt` text NOT NULL AFTER `wr_4` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_4_txt` text NOT NULL AFTER `wr_4` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_5_txt` text NOT NULL AFTER `wr_5` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_5_txt` text NOT NULL AFTER `wr_5` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_6_txt` text NOT NULL AFTER `wr_6` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_6_txt` text NOT NULL AFTER `wr_6` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_7_txt` text NOT NULL AFTER `wr_7` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_7_txt` text NOT NULL AFTER `wr_7` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_8_txt` text NOT NULL AFTER `wr_8` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_8_txt` text NOT NULL AFTER `wr_8` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_9_txt` text NOT NULL AFTER `wr_9` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_9_txt` text NOT NULL AFTER `wr_9` ");
|
||||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_10_txt` text NOT NULL AFTER `wr_10` ");
|
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_10_txt` text NOT NULL AFTER `wr_10` ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if($w==''){
|
if ($w == '') {
|
||||||
$total_count = $board['bo_count_write'];
|
$total_count = $board['bo_count_write'];
|
||||||
if($type == 'pair' && $total_count < 2) {
|
if ($type == 'pair' && $total_count < 2) {
|
||||||
alert("페어로 등록할 수 있는 캐릭터의 수가 적습니다.");
|
alert("페어로 등록할 수 있는 캐릭터의 수가 적습니다.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$type = $write['wr_type'];
|
$type = $write['wr_type'];
|
||||||
|
|
||||||
$delete_href = '';
|
$delete_href = '';
|
||||||
set_session('ss_delete_token', $token = uniqid(time()));
|
set_session('ss_delete_token', $token = uniqid(time()));
|
||||||
$delete_href ='./delete.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&token='.$token.'&page='.$page.urldecode($qstr);
|
$delete_href = './delete.php?bo_table=' . $bo_table . '&wr_id=' . $wr_id . '&token=' . $token . '&page=' . $page . urldecode($qstr);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<section id="bo_w">
|
<section id="bo_w">
|
||||||
|
|
||||||
<?php if($board['bo_content_head']) { ?>
|
|
||||||
<div class="board-notice-box">
|
|
||||||
<?=stripslashes($board['bo_content_head']);?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<!-- 게시물 작성/수정 시작 { -->
|
<?php if ($board['bo_content_head']) { ?>
|
||||||
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
<div class="board-notice-box">
|
||||||
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
<?= stripslashes($board['bo_content_head']); ?>
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
</div>
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<?php } ?>
|
||||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
|
||||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
|
||||||
<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="type" value="<?php echo $type ?>">
|
|
||||||
<?php
|
|
||||||
$option = '';
|
|
||||||
$option_hidden = '';
|
|
||||||
if ($is_html || $is_secret || $is_mail) {
|
|
||||||
$option = '';
|
|
||||||
|
|
||||||
if ($is_html) {
|
|
||||||
if ($is_dhtml_editor) {
|
|
||||||
$option_hidden .= '<input type="hidden" value="html1" name="html">';
|
|
||||||
} else {
|
|
||||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">html</label>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_secret) {
|
<!-- 게시물 작성/수정 시작 { -->
|
||||||
if ($is_admin || $is_secret==1) {
|
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);"
|
||||||
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
|
method="post" enctype="multipart/form-data" autocomplete="off">
|
||||||
} else {
|
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
||||||
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
|
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||||
}
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
}
|
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||||
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
|
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||||
|
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||||
|
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||||
|
<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="type" value="<?php echo $type ?>">
|
||||||
|
<?php
|
||||||
|
$option = '';
|
||||||
|
$option_hidden = '';
|
||||||
|
if ($is_html || $is_secret || $is_mail) {
|
||||||
|
$option = '';
|
||||||
|
|
||||||
if ($is_mail) {
|
if ($is_html) {
|
||||||
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
|
if ($is_dhtml_editor) {
|
||||||
}
|
$option_hidden .= '<input type="hidden" value="html1" name="html">';
|
||||||
}
|
} else {
|
||||||
|
$option .= "\n" . '<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="' . $html_value . '" ' . $html_checked . '>' . "\n" . '<label for="html">html</label>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
echo $option_hidden;
|
if ($is_secret) {
|
||||||
?>
|
if ($is_admin || $is_secret == 1) {
|
||||||
|
$option .= "\n" . '<input type="checkbox" id="secret" name="secret" value="secret" ' . $secret_checked . '>' . "\n" . '<label for="secret">비밀글</label>';
|
||||||
|
} else {
|
||||||
|
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
<table class="theme-form">
|
if ($is_mail) {
|
||||||
<colgroup>
|
$option .= "\n" . '<input type="checkbox" id="mail" name="mail" value="mail" ' . $recv_email_checked . '>' . "\n" . '<label for="mail">답변메일받기</label>';
|
||||||
<col style="width: 90px;" />
|
}
|
||||||
<col />
|
}
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<?php if ($is_name) { ?>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
|
||||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if ($is_password) { ?>
|
echo $option_hidden;
|
||||||
<tr>
|
?>
|
||||||
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
|
|
||||||
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if ($is_email) { ?>
|
<table class="theme-form">
|
||||||
<tr>
|
<colgroup>
|
||||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
<col style="width: 90px;" />
|
||||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
<col />
|
||||||
</tr>
|
</colgroup>
|
||||||
<?php } ?>
|
<tbody>
|
||||||
|
<?php if ($is_name) { ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||||
|
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required
|
||||||
|
class="frm_input required" size="10" maxlength="20"></td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_homepage) { ?>
|
<?php if ($is_password) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
|
||||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
|
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?>
|
||||||
</tr>
|
class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
|
||||||
<?php } ?>
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($option) { ?>
|
<?php if ($is_email) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">옵션</th>
|
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||||
<td><?php echo $option ?></td>
|
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email"
|
||||||
</tr>
|
size="50" maxlength="100"></td>
|
||||||
<?php } ?>
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_category) { ?>
|
<?php if ($is_homepage) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
||||||
<td>
|
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input"
|
||||||
<select name="ca_name" id="ca_name" required class="required" >
|
size="50"></td>
|
||||||
<option value="">선택하세요</option>
|
</tr>
|
||||||
<?php echo $category_option ?>
|
<?php } ?>
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }
|
|
||||||
|
|
||||||
if($type == 'pair') {
|
<?php if ($option) { ?>
|
||||||
include_once($board_skin_path."/write.pair.skin.php");
|
<tr>
|
||||||
} else {
|
<th scope="row">옵션</th>
|
||||||
include_once($board_skin_path."/write.character.skin.php");
|
<td><?php echo $option ?></td>
|
||||||
}
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
if ($is_guest) { //자동등록방지 ?>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">자동등록방지</th>
|
|
||||||
<td>
|
|
||||||
<?php echo $captcha_html ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
</tbody>
|
<?php if ($is_category) { ?>
|
||||||
</table>
|
<tr>
|
||||||
|
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
|
||||||
|
<td>
|
||||||
|
<select name="ca_name" id="ca_name" required class="required">
|
||||||
|
<option value="">선택하세요</option>
|
||||||
|
<?php echo $category_option ?>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php }
|
||||||
|
|
||||||
<div class="btn_confirm">
|
if ($type == 'pair') {
|
||||||
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn point"><i class="material-icons">edit</i> 작성</button>
|
include_once($board_skin_path . "/write.pair.skin.php");
|
||||||
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc" onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
|
} else {
|
||||||
<a href="./board.php?bo_table=<?php echo $bo_table ?>&sst=<?=$sst?>" class="ui-btn"><i class="material-icons">list</i> 목록</a>
|
include_once($board_skin_path . "/write.character.skin.php");
|
||||||
</div>
|
}
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
if ($is_guest) { //자동등록방지 ?>
|
||||||
function fwrite_submit(f) {
|
<tr>
|
||||||
var subject = "";
|
<th scope="row">자동등록방지</th>
|
||||||
var content = "";
|
<td>
|
||||||
$.ajax({
|
<?php echo $captcha_html ?>
|
||||||
url: g5_bbs_url+"/ajax.filter.php",
|
</td>
|
||||||
type: "POST",
|
</tr>
|
||||||
data: {
|
<?php } ?>
|
||||||
"subject": f.wr_subject.value,
|
|
||||||
"content": f.wr_content.value
|
|
||||||
},
|
|
||||||
dataType: "json",
|
|
||||||
async: false,
|
|
||||||
cache: false,
|
|
||||||
success: function(data, textStatus) {
|
|
||||||
subject = data.subject;
|
|
||||||
content = data.content;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
</tbody>
|
||||||
document.getElementById("btn_submit").disabled = "disabled";
|
</table>
|
||||||
return true;
|
|
||||||
}
|
<div class="btn_confirm">
|
||||||
</script>
|
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn point"><i class="material-icons">edit</i>
|
||||||
|
작성</button>
|
||||||
|
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc"
|
||||||
|
onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
|
||||||
|
<a href="./board.php?bo_table=<?php echo $bo_table ?>&sst=<?= $sst ?>" class="ui-btn"><i
|
||||||
|
class="material-icons">list</i> 목록</a>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function fwrite_submit(f) {
|
||||||
|
var subject = "";
|
||||||
|
var content = "";
|
||||||
|
$.ajax({
|
||||||
|
url: g5_bbs_url + "/ajax.filter.php",
|
||||||
|
type: "POST",
|
||||||
|
data: {
|
||||||
|
"subject": f.wr_subject.value,
|
||||||
|
"content": f.wr_content.value
|
||||||
|
},
|
||||||
|
dataType: "json",
|
||||||
|
async: false,
|
||||||
|
cache: false,
|
||||||
|
success: function (data, textStatus) {
|
||||||
|
subject = data.subject;
|
||||||
|
content = data.content;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||||
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</section>
|
</section>
|
||||||
<!-- } 게시물 작성/수정 끝 -->
|
<!-- } 게시물 작성/수정 끝 -->
|
||||||
|
|
|
||||||
|
|
@ -1,75 +1,76 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
include_once($board_skin_path.'/_setting.php');
|
exit; // 개별 페이지 접근 불가
|
||||||
|
include_once $board_skin_path . "/_setting.php";
|
||||||
// 두상 및 전신 저장 처리
|
// 두상 및 전신 저장 처리
|
||||||
|
|
||||||
$sql_article = " wr_ing = '{$wr_ing}',
|
$sql_article = " wr_ing = '{$wr_ing}',
|
||||||
wr_4_txt = '{$wr_4_txt}',
|
wr_4_txt = '{$wr_4_txt}',
|
||||||
wr_5_txt = '{$wr_5_txt}',
|
wr_5_txt = '{$wr_5_txt}',
|
||||||
wr_6_txt = '{$wr_6_txt}',
|
wr_6_txt = '{$wr_6_txt}',
|
||||||
wr_7_txt = '{$wr_7_txt}',
|
wr_7_txt = '{$wr_7_txt}',
|
||||||
wr_8_txt = '{$wr_8_txt}',
|
wr_8_txt = '{$wr_8_txt}',
|
||||||
wr_9_txt = '{$wr_9_txt}',
|
wr_9_txt = '{$wr_9_txt}',
|
||||||
wr_10_txt = '{$wr_10_txt}'";
|
wr_10_txt = '{$wr_10_txt}'";
|
||||||
|
|
||||||
|
|
||||||
if($type == 'pair') {
|
if ($type == 'pair') {
|
||||||
|
|
||||||
$sql_article .= " , wr_type = '{$type}'";
|
$sql_article .= " , wr_type = '{$type}'";
|
||||||
|
|
||||||
// 이미지 등록
|
// 이미지 등록
|
||||||
// -- 배경
|
// -- 배경
|
||||||
if($wr_1 != $wr_1_prev && strpos($wr_1_prev, "{$bo_table}/pair_{$wr_id}_")) {
|
if ($wr_1 != $wr_1_prev && strpos($wr_1_prev, "{$bo_table}/pair_{$wr_id}_")) {
|
||||||
// wr_1 값이 빈 값이 아니고 wr_1이 이전에 직접 등록한 데이터일 경우
|
// wr_1 값이 빈 값이 아니고 wr_1이 이전에 직접 등록한 데이터일 경우
|
||||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_1_prev);
|
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_1_prev);
|
||||||
@unlink($prev_file_path);
|
@unlink($prev_file_path);
|
||||||
}
|
}
|
||||||
if($_FILES['wr_1_file']['name']) {
|
if ($_FILES['wr_1_file']['name']) {
|
||||||
// 확장자 따기
|
// 확장자 따기
|
||||||
$exp = explode(".", $_FILES['wr_1_file']['name']);
|
$exp = explode(".", $_FILES['wr_1_file']['name']);
|
||||||
$exp = $exp[count($exp)-1];
|
$exp = $exp[count($exp) - 1];
|
||||||
|
|
||||||
$image_name = "pair_{$wr_id}_".time().".".$exp;
|
$image_name = "pair_{$wr_id}_" . time() . "." . $exp;
|
||||||
upload_file($_FILES['wr_1_file']['tmp_name'], $image_name, $character_image_path);
|
upload_file($_FILES['wr_1_file']['tmp_name'], $image_name, $character_image_path);
|
||||||
$wr_1 = $character_image_url."/".$image_name;
|
$wr_1 = $character_image_url . "/" . $image_name;
|
||||||
}
|
}
|
||||||
$sql_article .= " , wr_1 = '{$wr_1}'";
|
$sql_article .= " , wr_1 = '{$wr_1}'";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 이미지 등록
|
// 이미지 등록
|
||||||
// -- 두상
|
// -- 두상
|
||||||
if($wr_1 != $wr_1_prev && strpos($wr_1_prev, "{$bo_table}/header_{$wr_id}_")) {
|
if ($wr_1 != $wr_1_prev && strpos($wr_1_prev, "{$bo_table}/header_{$wr_id}_")) {
|
||||||
// wr_1 값이 빈 값이 아니고 wr_1이 이전에 직접 등록한 데이터일 경우
|
// wr_1 값이 빈 값이 아니고 wr_1이 이전에 직접 등록한 데이터일 경우
|
||||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_1_prev);
|
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_1_prev);
|
||||||
@unlink($prev_file_path);
|
@unlink($prev_file_path);
|
||||||
}
|
}
|
||||||
if($_FILES['wr_1_file']['name']) {
|
if ($_FILES['wr_1_file']['name']) {
|
||||||
// 확장자 따기
|
// 확장자 따기
|
||||||
$exp = explode(".", $_FILES['wr_1_file']['name']);
|
$exp = explode(".", $_FILES['wr_1_file']['name']);
|
||||||
$exp = $exp[count($exp)-1];
|
$exp = $exp[count($exp) - 1];
|
||||||
|
|
||||||
$image_name = "header_{$wr_id}_".time().".".$exp;
|
$image_name = "header_{$wr_id}_" . time() . "." . $exp;
|
||||||
upload_file($_FILES['wr_1_file']['tmp_name'], $image_name, $character_image_path);
|
upload_file($_FILES['wr_1_file']['tmp_name'], $image_name, $character_image_path);
|
||||||
$wr_1 = $character_image_url."/".$image_name;
|
$wr_1 = $character_image_url . "/" . $image_name;
|
||||||
}
|
}
|
||||||
$sql_article .= " , wr_1 = '{$wr_1}'";
|
$sql_article .= " , wr_1 = '{$wr_1}'";
|
||||||
|
|
||||||
// -- 전신
|
// -- 전신
|
||||||
if($wr_2 != $wr_2_prev && strpos($wr_2_prev, "{$bo_table}/body_{$wr_id}_")) {
|
if ($wr_2 != $wr_2_prev && strpos($wr_2_prev, "{$bo_table}/body_{$wr_id}_")) {
|
||||||
// wr_2 값이 빈 값이 아니고 wr_2이 이전에 직접 등록한 데이터일 경우
|
// wr_2 값이 빈 값이 아니고 wr_2이 이전에 직접 등록한 데이터일 경우
|
||||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_2_prev);
|
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_2_prev);
|
||||||
@unlink($prev_file_path);
|
@unlink($prev_file_path);
|
||||||
}
|
}
|
||||||
if($_FILES['wr_2_file']['name']) {
|
if ($_FILES['wr_2_file']['name']) {
|
||||||
// 확장자 따기
|
// 확장자 따기
|
||||||
$exp = explode(".", $_FILES['wr_2_file']['name']);
|
$exp = explode(".", $_FILES['wr_2_file']['name']);
|
||||||
$exp = $exp[count($exp)-1];
|
$exp = $exp[count($exp) - 1];
|
||||||
|
|
||||||
$image_name = "body_{$wr_id}_".time().".".$exp;
|
$image_name = "body_{$wr_id}_" . time() . "." . $exp;
|
||||||
upload_file($_FILES['wr_2_file']['tmp_name'], $image_name, $character_image_path);
|
upload_file($_FILES['wr_2_file']['tmp_name'], $image_name, $character_image_path);
|
||||||
$wr_2 = $character_image_url."/".$image_name;
|
$wr_2 = $character_image_url . "/" . $image_name;
|
||||||
}
|
}
|
||||||
$sql_article .= " , wr_2 = '{$wr_2}'";
|
$sql_article .= " , wr_2 = '{$wr_2}'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -77,5 +78,3 @@ $sql = " update {$write_table}
|
||||||
set {$sql_article}
|
set {$sql_article}
|
||||||
where wr_id = '{$wr_id}' ";
|
where wr_id = '{$wr_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
/*
|
/*
|
||||||
LOG HashGuide
|
LOG HashGuide
|
||||||
|
|
@ -17,14 +18,12 @@ $log_type = $data_log[0];
|
||||||
|
|
||||||
$item_log = explode("||", $item_log);
|
$item_log = explode("||", $item_log);
|
||||||
|
|
||||||
if($log_type) {
|
if ($log_type) {
|
||||||
include($board_skin_path."/action/log.{$log_type}.skin.php");
|
include($board_skin_path . "/action/log.{$log_type}.skin.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($item_log[0]) {
|
if ($item_log[0]) {
|
||||||
/** 아이템 사용시 **/
|
/** 아이템 사용시 **/
|
||||||
include($board_skin_path."/action/log.item.skin.php");
|
include($board_skin_path . "/action/log.item.skin.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
goto_url('./board.php?bo_table='.$bo_table.'&'.$qstr.'&#log_'.$write['wr_parent']);
|
exit; // 개별 페이지 접근 불가
|
||||||
?>
|
goto_url('./board.php?bo_table=' . $bo_table . '&' . $qstr . '&#log_' . $write['wr_parent']);
|
||||||
|
|
|
||||||
|
|
@ -6,37 +6,37 @@ include_once "../../../head.sub.php";
|
||||||
$sql = "select * from {$g5['emoticon_table']}";
|
$sql = "select * from {$g5['emoticon_table']}";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.G5_CSS_URL.'/style.emoticon.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/style.emoticon.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="emoticon_page">
|
<div id="emoticon_page">
|
||||||
<div id="emoticon_head"></div>
|
<div id="emoticon_head"></div>
|
||||||
<div id="page_title">
|
<div id="page_title">
|
||||||
이모티콘
|
이모티콘
|
||||||
<i id="emoticon_line"></i>
|
<i id="emoticon_line"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="emoticon_content">
|
<div id="emoticon_content">
|
||||||
<ul>
|
<ul>
|
||||||
<?php for($i=0; $row = sql_fetch_array($result); $i++) { ?>
|
<?php for ($i = 0; $row = sql_fetch_array($result); $i++) { ?>
|
||||||
<li>
|
<li>
|
||||||
<em>
|
<em>
|
||||||
<img src="<?=G5_URL?><?=$row['me_img']?>" alt="" />
|
<img src="<?= G5_URL ?><?= $row['me_img'] ?>" alt="" />
|
||||||
</em>
|
</em>
|
||||||
<span><?=$row['me_text']?></span>
|
<span><?= $row['me_text'] ?></span>
|
||||||
</li>
|
</li>
|
||||||
<?php }
|
<?php }
|
||||||
if($i == 0) {
|
if ($i == 0) {
|
||||||
?>
|
?>
|
||||||
<li class="no-data">
|
<li class="no-data">
|
||||||
등록된 이모티콘이 없습니다.
|
등록된 이모티콘이 없습니다.
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="emoticon_footer"></div>
|
<div id="emoticon_footer"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,41 +1,41 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$update_href = $delete_href = '';
|
$update_href = $delete_href = '';
|
||||||
|
|
||||||
// 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능
|
// 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능
|
||||||
if (($member['mb_id'] && ($member['mb_id'] == $list_item['mb_id'])) || $is_admin) {
|
if (($member['mb_id'] && ($member['mb_id'] == $list_item['mb_id'])) || $is_admin) {
|
||||||
|
|
||||||
$update_href = './write.php?w=u&bo_table='.$bo_table.'&wr_id='.$list_item['wr_id'].'&page='.$page.$qstr;
|
$update_href = './write.php?w=u&bo_table=' . $bo_table . '&wr_id=' . $list_item['wr_id'] . '&page=' . $page . $qstr;
|
||||||
if(!$list_item['wr_log'] || $is_admin) {
|
if (!$list_item['wr_log'] || $is_admin) {
|
||||||
set_session('ss_delete_token', $token = uniqid(time()));
|
set_session('ss_delete_token', $token = uniqid(time()));
|
||||||
$delete_href ='./delete.php?bo_table='.$bo_table.'&wr_id='.$list_item['wr_id'].'&token='.$token.'&page='.$page.urldecode($qstr);
|
$delete_href = './delete.php?bo_table=' . $bo_table . '&wr_id=' . $list_item['wr_id'] . '&token=' . $token . '&page=' . $page . urldecode($qstr);
|
||||||
}
|
}
|
||||||
}
|
} else if (!$list_item['mb_id']) { // 회원이 쓴 글이 아니라면
|
||||||
else if (!$list_item['mb_id']) { // 회원이 쓴 글이 아니라면
|
$update_href = './password.php?w=u&bo_table=' . $bo_table . '&wr_id=' . $list_item['wr_id'] . '&page=' . $page . $qstr;
|
||||||
$update_href = './password.php?w=u&bo_table='.$bo_table.'&wr_id='.$list_item['wr_id'].'&page='.$page.$qstr;
|
$delete_href = './password.php?w=d&bo_table=' . $bo_table . '&wr_id=' . $list_item['wr_id'] . '&page=' . $page . $qstr;
|
||||||
$delete_href = './password.php?w=d&bo_table='.$bo_table.'&wr_id='.$list_item['wr_id'].'&page='.$page.$qstr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 즐겨찾기 (스크랩) 여부 체크
|
// 즐겨찾기 (스크랩) 여부 체크
|
||||||
$is_favorite = sql_fetch("select count(*) as cnt from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' and wr_id = '{$list_item['wr_id']}' and bo_table = '{$bo_table}'");
|
$is_favorite = sql_fetch("select count(*) as cnt from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' and wr_id = '{$list_item['wr_id']}' and bo_table = '{$bo_table}'");
|
||||||
$is_favorite = $is_favorite['cnt'] > 0 ? true : false;
|
$is_favorite = $is_favorite['cnt'] > 0 ? true : false;
|
||||||
|
|
||||||
if($list_item['wr_type'] == 'UPLOAD') {
|
if ($list_item['wr_type'] == 'UPLOAD') {
|
||||||
// Upload 형태로 로그를 등록 하였을 때
|
// Upload 형태로 로그를 등록 하였을 때
|
||||||
$thumb = get_mmb_image($bo_table, $list_item['wr_id']);
|
$thumb = get_mmb_image($bo_table, $list_item['wr_id']);
|
||||||
$image_url = '<img src="'.$thumb['src'].'" />';
|
$image_url = '<img src="' . $thumb['src'] . '" />';
|
||||||
$image_width = $thumb['width'];
|
$image_width = $thumb['width'];
|
||||||
$image_height = $thumb['height'];
|
$image_height = $thumb['height'];
|
||||||
} else if($list_item['wr_type'] == 'URL') {
|
} else if ($list_item['wr_type'] == 'URL') {
|
||||||
// URL 형태로 로그를 등록 하였을 때
|
// URL 형태로 로그를 등록 하였을 때
|
||||||
$image_url = '<img src="'.$list_item['wr_url'].'" />';
|
$image_url = '<img src="' . $list_item['wr_url'] . '" />';
|
||||||
$image_width = $list_item['wr_width'];
|
$image_width = $list_item['wr_width'];
|
||||||
$image_height = $list_item['wr_height'];
|
$image_height = $list_item['wr_height'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$log_class = '';
|
$log_class = '';
|
||||||
$blind_class ='';
|
$blind_class = '';
|
||||||
$h_class = '';
|
$h_class = '';
|
||||||
|
|
||||||
// 멤버공개 데이터일 시
|
// 멤버공개 데이터일 시
|
||||||
|
|
@ -43,45 +43,45 @@ $is_viewer = true;
|
||||||
$data_width = 300;
|
$data_width = 300;
|
||||||
$no_member_class = '';
|
$no_member_class = '';
|
||||||
|
|
||||||
if($list_item['wr_secret'] == '1' && !$is_member) {
|
if ($list_item['wr_secret'] == '1' && !$is_member) {
|
||||||
$is_viewer = false;
|
$is_viewer = false;
|
||||||
$no_member_class = ' empty ';
|
$no_member_class = ' empty ';
|
||||||
} else {
|
} else {
|
||||||
$data_width = $image_width < 300 ? 300 : $image_width;
|
$data_width = $image_width < 300 ? 300 : $image_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($is_viewer) {
|
if ($is_viewer) {
|
||||||
|
|
||||||
// 접기 여부 설정
|
// 접기 여부 설정
|
||||||
if($board['bo_gallery_height'] && ($image_height >= $board['bo_gallery_height'] || $list_item['wr_plip'] == '1')) {
|
if ($board['bo_gallery_height'] && ($image_height >= $board['bo_gallery_height'] || $list_item['wr_plip'] == '1')) {
|
||||||
if(G5_IS_MOBILE) {
|
if (G5_IS_MOBILE) {
|
||||||
$log_class .= "ui-slide-mobile";
|
$log_class .= "ui-slide-mobile";
|
||||||
if($list_item['wr_type'] == 'UPLOAD') {
|
if ($list_item['wr_type'] == 'UPLOAD') {
|
||||||
$thumb = get_list_thumbnail($bo_table, $list_item['wr_id'], $image_width, 200, true, true);
|
$thumb = get_list_thumbnail($bo_table, $list_item['wr_id'], $image_width, 200, true, true);
|
||||||
$ori = explode("/", $thumb['ori']);
|
$ori = explode("/", $thumb['ori']);
|
||||||
$ori = $ori[count($ori) -1];
|
$ori = $ori[count($ori) - 1];
|
||||||
$image_url = '<a href="'.G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&fn='.urlencode($ori).'" target="_blank" class="view_image">';
|
$image_url = '<a href="' . G5_BBS_URL . '/view_image.php?bo_table=' . $board['bo_table'] . '&fn=' . urlencode($ori) . '" target="_blank" class="view_image">';
|
||||||
$image_url .= '<img src="'.$thumb['src'].'" >';
|
$image_url .= '<img src="' . $thumb['src'] . '" >';
|
||||||
$image_url .= '</a>';
|
$image_url .= '</a>';
|
||||||
$image_width = $thumb['width'];
|
$image_width = $thumb['width'];
|
||||||
$image_height = $thumb['height'];
|
$image_height = $thumb['height'];
|
||||||
} else if($list_item['wr_type'] == 'URL') {
|
} else if ($list_item['wr_type'] == 'URL') {
|
||||||
$image_url = '<a href="'.$list_item['wr_url'].'" target="_blank" class="view_image">';
|
$image_url = '<a href="' . $list_item['wr_url'] . '" target="_blank" class="view_image">';
|
||||||
$image_url .= '<img src="'.$list_item['wr_url'].'" >';
|
$image_url .= '<img src="' . $list_item['wr_url'] . '" >';
|
||||||
$image_url .= '</a>';
|
$image_url .= '</a>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$log_class .= "ui-slide";
|
$log_class .= "ui-slide";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 블라인드 (19금 필터링) 여부 설정
|
// 블라인드 (19금 필터링) 여부 설정
|
||||||
if($list_item['wr_adult'] == '1') {
|
if ($list_item['wr_adult'] == '1') {
|
||||||
$blind_class = "ui-blind";
|
$blind_class = "ui-blind";
|
||||||
}
|
}
|
||||||
// 리플 아래로 내리기 여부 설정
|
// 리플 아래로 내리기 여부 설정
|
||||||
if($list_item['wr_wide'] == '1') {
|
if ($list_item['wr_wide'] == '1') {
|
||||||
$h_class = "ui-wrap";
|
$h_class = "ui-wrap";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -92,88 +92,90 @@ if($is_viewer) {
|
||||||
sql_query("update {$g5['call_table']} set bc_check = 1 where re_mb_id = '{$member['mb_id']}' and bo_table ='{$bo_table}' and wr_id = '{$list_item['wr_id']}'");
|
sql_query("update {$g5['call_table']} set bc_check = 1 where re_mb_id = '{$member['mb_id']}' and bo_table ='{$bo_table}' and wr_id = '{$list_item['wr_id']}'");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="item <?=$h_class?>" id="log_<?=$list_item['wr_id']?>">
|
<div class="item <?= $h_class ?>" id="log_<?= $list_item['wr_id'] ?>">
|
||||||
<div class="item-inner">
|
<div class="item-inner">
|
||||||
<!-- 로그 이미지 출력 부분 -->
|
<!-- 로그 이미지 출력 부분 -->
|
||||||
<div class="ui-pic <?=$no_member_class?>" data-width="<?=$data_width?>">
|
<div class="ui-pic <?= $no_member_class ?>" data-width="<?= $data_width ?>">
|
||||||
|
|
||||||
<!-- 로그 상단 영역 -->
|
<!-- 로그 상단 영역 -->
|
||||||
<div class="pic-header">
|
<div class="pic-header">
|
||||||
<p class="no">
|
<p class="no">
|
||||||
|
|
||||||
<?php // 로그 넘버링 출력 ?>
|
|
||||||
No. <?=($list_item['wr_num'] * -1)?>
|
|
||||||
|
|
||||||
<?php if($list_item['ca_name']){
|
<?php // 로그 넘버링 출력 ?>
|
||||||
// 카테고리 출력
|
No. <?= ($list_item['wr_num'] * -1) ?>
|
||||||
?>
|
|
||||||
<span data-category="<?=$list_item['ca_name']?>" class="ico-category">
|
|
||||||
<?=$list_item['ca_name']?>
|
|
||||||
</span>
|
|
||||||
<?php } ?>
|
|
||||||
<?php if($list_item['wr_adult']) {
|
|
||||||
// 19금 필터링 마크
|
|
||||||
?>
|
|
||||||
<span style="color:#d3393d;">■</span>
|
|
||||||
<?php } ?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<?php if($is_viewer) {
|
<?php if ($list_item['ca_name']) {
|
||||||
// 보기 권한이 존재 할 경우 (멤버의 경우)
|
// 카테고리 출력
|
||||||
// -- 버튼 영역 출력
|
?>
|
||||||
if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="del" onclick="del(this.href); return false;">삭제</a><?php } ?>
|
<span data-category="<?= $list_item['ca_name'] ?>" class="ico-category">
|
||||||
<a href="?bo_table=<?=$bo_table?>&log=<?=$list_item['wr_num'] * -1?>&single=Y" target="_blank" class="new">로그링크</a>
|
<?= $list_item['ca_name'] ?>
|
||||||
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="mod">수정</a><?php } ?>
|
</span>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
<?php if ($list_item['wr_adult']) {
|
||||||
<!-- // 로그 상단 영역 -->
|
// 19금 필터링 마크
|
||||||
|
?>
|
||||||
|
<span style="color:#d3393d;">■</span>
|
||||||
|
<?php } ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
<!-- 로그 이미지 -->
|
<?php if ($is_viewer) {
|
||||||
<div class="pic-data <?=$log_class?> <?=!$member['mb_adult'] ? $blind_class : ""?>">
|
// 보기 권한이 존재 할 경우 (멤버의 경우)
|
||||||
<?php if(!$is_viewer) {
|
// -- 버튼 영역 출력
|
||||||
// 비공개 이미지
|
if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="del"
|
||||||
?>
|
onclick="del(this.href); return false;">삭제</a><?php } ?>
|
||||||
<div>
|
<a href="?bo_table=<?= $bo_table ?>&log=<?= $list_item['wr_num'] * -1 ?>&single=Y" target="_blank"
|
||||||
<img src="<?=$board_skin_url?>/img/img_lock.png" alt="비공개" />
|
class="new">로그링크</a>
|
||||||
</div>
|
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="mod">수정</a><?php } ?>
|
||||||
<?php } else { ?>
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
<!-- // 로그 상단 영역 -->
|
||||||
|
|
||||||
<?php if($image_url) { ?>
|
<!-- 로그 이미지 -->
|
||||||
<div data-height="<?=$image_height?>">
|
<div class="pic-data <?= $log_class ?> <?= !$member['mb_adult'] ? $blind_class : "" ?>">
|
||||||
<?=$image_url?>
|
<?php if (!$is_viewer) {
|
||||||
</div>
|
// 비공개 이미지
|
||||||
<?php if($log_class && !G5_IS_MOBILE) {
|
?>
|
||||||
// 접기 기능 (펼치기)
|
<div>
|
||||||
?>
|
<img src="<?= $board_skin_url ?>/img/img_lock.png" alt="비공개" />
|
||||||
<a href="#" class="ui-open-log ui-btn">OPEN</a>
|
</div>
|
||||||
<?php } ?>
|
<?php } else { ?>
|
||||||
<?php if($blind_class) {
|
|
||||||
// 블라인드 (19금 필터링)
|
|
||||||
?>
|
|
||||||
<a href="#" class="ui-remove-blind"><span>해당 로그는 필터 된 로그 입니다.<br />확인을 원하실 경우 클릭해주세요.</span></a>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php } ?>
|
<?php if ($image_url) { ?>
|
||||||
</div>
|
<div data-height="<?= $image_height ?>">
|
||||||
<!-- // 로그 상단 영역 -->
|
<?= $image_url ?>
|
||||||
|
</div>
|
||||||
|
<?php if ($log_class && !G5_IS_MOBILE) {
|
||||||
|
// 접기 기능 (펼치기)
|
||||||
|
?>
|
||||||
|
<a href="#" class="ui-open-log ui-btn">OPEN</a>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if ($blind_class) {
|
||||||
|
// 블라인드 (19금 필터링)
|
||||||
|
?>
|
||||||
|
<a href="#" class="ui-remove-blind"><span>해당 로그는 필터 된 로그 입니다.<br />확인을 원하실 경우 클릭해주세요.</span></a>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</div>
|
<?php } ?>
|
||||||
<!-- // 로그 이미지 출력 부분 -->
|
</div>
|
||||||
|
<!-- // 로그 상단 영역 -->
|
||||||
|
|
||||||
<!-- 로그 코멘트 출력 부분 -->
|
</div>
|
||||||
<div class="ui-comment">
|
<!-- // 로그 이미지 출력 부분 -->
|
||||||
<?php if($is_viewer) { ?>
|
|
||||||
<div class="item-comment-box">
|
<!-- 로그 코멘트 출력 부분 -->
|
||||||
<?php include($board_skin_path."/view_comment.php");?>
|
<div class="ui-comment">
|
||||||
</div>
|
<?php if ($is_viewer) { ?>
|
||||||
<div class="item-comment-form-box">
|
<div class="item-comment-box">
|
||||||
<?php include($board_skin_path."/write_comment.php");?>
|
<?php include($board_skin_path . "/view_comment.php"); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } else { ?>
|
<div class="item-comment-form-box">
|
||||||
멤버 공개용 로그 입니다.
|
<?php include($board_skin_path . "/write_comment.php"); ?>
|
||||||
<?php } ?>
|
</div>
|
||||||
</div>
|
<?php } else { ?>
|
||||||
<!-- // 로그 코멘트 출력 부분 -->
|
멤버 공개용 로그 입니다.
|
||||||
</div>
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
<!-- // 로그 코멘트 출력 부분 -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
exit; // 개별 페이지 접근 불가
|
||||||
include_once($board_skin_path.'/emoticon/_setting.emoticon.php');
|
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
include_once($board_skin_path . '/emoticon/_setting.emoticon.php');
|
||||||
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
set_session('ss_bo_table', $_REQUEST['bo_table']);
|
set_session('ss_bo_table', $_REQUEST['bo_table']);
|
||||||
set_session('ss_wr_id', $_REQUEST['wr_id']);
|
set_session('ss_wr_id', $_REQUEST['wr_id']);
|
||||||
|
|
@ -18,193 +19,192 @@ $owner_behind = $owner_behind['cs_etc_4'];
|
||||||
|
|
||||||
<div id="load_log_board">
|
<div id="load_log_board">
|
||||||
|
|
||||||
<?php if($board['bo_content_head']) { ?>
|
<?php if ($board['bo_content_head']) { ?>
|
||||||
<div class="board-notice-box">
|
<div class="board-notice-box">
|
||||||
<?=stripslashes($board['bo_content_head']);?>
|
<?= stripslashes($board['bo_content_head']); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<!-- 게시판 카테고리 시작 { -->
|
<!-- 게시판 카테고리 시작 { -->
|
||||||
<?php if ($is_category) { ?>
|
<?php if ($is_category) { ?>
|
||||||
<nav class="board-category">
|
<nav class="board-category">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="./board.php?bo_table=<?=$bo_table?>" class="ui-btn <?=!$sca || $sca == ''? 'point' : 'etc'?>">ALL</a></li>
|
<li><a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn <?= !$sca || $sca == '' ? 'point' : 'etc' ?>">ALL</a>
|
||||||
<?php echo $category_list ?>
|
</li>
|
||||||
</ul>
|
<?php echo $category_list ?>
|
||||||
</nav>
|
</ul>
|
||||||
<?php } ?>
|
</nav>
|
||||||
<!-- } 게시판 카테고리 끝 -->
|
<?php } ?>
|
||||||
|
<!-- } 게시판 카테고리 끝 -->
|
||||||
<div class="ui-mmb-button">
|
|
||||||
<?php if ($write_href) { ?>
|
|
||||||
<a href="<?php echo $write_href ?>" class="ui-btn point">등록하기</a>
|
|
||||||
<?php } ?>
|
|
||||||
<a href="<?php echo $list_href ?>" class="ui-btn">새로고침</a>
|
|
||||||
<a href="<?php echo $board_skin_url ?>/emoticon/" class="ui-btn etc new_win">이모티콘</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if($write_pages) { ?><?php echo $write_pages; ?><?php } ?>
|
<div class="ui-mmb-button">
|
||||||
|
<?php if ($write_href) { ?>
|
||||||
|
<a href="<?php echo $write_href ?>" class="ui-btn point">등록하기</a>
|
||||||
|
<?php } ?>
|
||||||
|
<a href="<?php echo $list_href ?>" class="ui-btn">새로고침</a>
|
||||||
|
<a href="<?php echo $board_skin_url ?>/emoticon/" class="ui-btn etc new_win">이모티콘</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ($write_pages) { ?> <?php echo $write_pages; ?><?php } ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- 리스트 시작 -->
|
<!-- 리스트 시작 -->
|
||||||
<div id="log_list" class="none-trans">
|
<div id="log_list" class="none-trans">
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $i<count($list); $i++) {
|
for ($i = 0; $i < count($list); $i++) {
|
||||||
$list_item = $list[$i];
|
$list_item = $list[$i];
|
||||||
include($board_skin_path."/list.log.skin.php");
|
include($board_skin_path . "/list.log.skin.php");
|
||||||
}
|
}
|
||||||
if (count($list) == 0) { echo "<div class=\"empty_list\">등록된 로그가 없습니다.</div>"; }
|
if (count($list) == 0) {
|
||||||
?>
|
echo "<div class=\"empty_list\">등록된 로그가 없습니다.</div>";
|
||||||
</div>
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php if($write_pages) { ?>
|
<?php if ($write_pages) { ?>
|
||||||
<div class="ui-paging">
|
<div class="ui-paging">
|
||||||
<?php echo $write_pages; ?>
|
<?php echo $write_pages; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div class="searc-sub-box">
|
<div class="searc-sub-box">
|
||||||
|
|
||||||
<form name="fsearch" method="get">
|
<form name="fsearch" method="get">
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
<input type="hidden" name="sop" value="and">
|
<input type="hidden" name="sop" value="and">
|
||||||
<input type="hidden" name="hash" value="<?=$hash?>">
|
<input type="hidden" name="hash" value="<?= $hash ?>">
|
||||||
|
|
||||||
<div class="ui-search-box">
|
<div class="ui-search-box">
|
||||||
<fieldset class="sch_category select-box">
|
<fieldset class="sch_category select-box">
|
||||||
<select name="sfl" id="sfl">
|
<select name="sfl" id="sfl">
|
||||||
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>코멘트</option>
|
<option value="wr_content" <?php echo get_selected($sfl, 'wr_content'); ?>>코멘트</option>
|
||||||
<option value="hash"<?php echo get_selected($sfl, 'hash'); ?>>해시</option>
|
<option value="hash" <?php echo get_selected($sfl, 'hash'); ?>>해시</option>
|
||||||
<option value="log"<?php echo get_selected($sfl, 'log'); ?>>번호</option>
|
<option value="log" <?php echo get_selected($sfl, 'log'); ?>>번호</option>
|
||||||
</select>
|
</select>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="sch_text">
|
<fieldset class="sch_text">
|
||||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" class="frm_input" maxlength="20">
|
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" class="frm_input"
|
||||||
</fieldset>
|
maxlength="20">
|
||||||
<fieldset class="sch_button">
|
</fieldset>
|
||||||
<button type="submit" class="ui-btn point">검색</button>
|
<fieldset class="sch_button">
|
||||||
</fieldset>
|
<button type="submit" class="ui-btn point">검색</button>
|
||||||
</div>
|
</fieldset>
|
||||||
|
</div>
|
||||||
</form>
|
|
||||||
</div>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var avo_mb_id = "<?=$member['mb_id']?>";
|
var avo_mb_id = "<?= $member['mb_id'] ?>";
|
||||||
var avo_board_skin_path = "<?=$board_skin_path?>";
|
var avo_board_skin_path = "<?= $board_skin_path ?>";
|
||||||
var avo_board_skin_url = "<?=$board_skin_url?>";
|
var avo_board_skin_url = "<?= $board_skin_url ?>";
|
||||||
|
|
||||||
var save_before = '';
|
var save_before = '';
|
||||||
var save_html = '';
|
var save_html = '';
|
||||||
|
|
||||||
function fviewcomment_submit(f)
|
function fviewcomment_submit(f) {
|
||||||
{
|
set_comment_token(f);
|
||||||
set_comment_token(f);
|
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
|
||||||
|
|
||||||
var content = "";
|
var content = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: g5_bbs_url+"/ajax.filter.php",
|
url: g5_bbs_url + "/ajax.filter.php",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
"content": f.wr_content.value
|
"content": f.wr_content.value
|
||||||
},
|
},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
cache: false,
|
cache: false,
|
||||||
success: function(data, textStatus) {
|
success: function (data, textStatus) {
|
||||||
content = data.content;
|
content = data.content;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (content) {
|
if (content) {
|
||||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
|
||||||
f.wr_content.focus();
|
f.wr_content.focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!f.wr_content.value) {
|
|
||||||
alert("댓글을 입력하여 주십시오.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof(f.wr_name) != 'undefined')
|
if (!f.wr_content.value) {
|
||||||
{
|
alert("댓글을 입력하여 주십시오.");
|
||||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
return false;
|
||||||
if (f.wr_name.value == '')
|
}
|
||||||
{
|
|
||||||
alert('이름이 입력되지 않았습니다.');
|
|
||||||
f.wr_name.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof(f.wr_password) != 'undefined')
|
if (typeof (f.wr_name) != 'undefined') {
|
||||||
{
|
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
if (f.wr_name.value == '') {
|
||||||
if (f.wr_password.value == '')
|
alert('이름이 입력되지 않았습니다.');
|
||||||
{
|
f.wr_name.focus();
|
||||||
alert('비밀번호가 입력되지 않았습니다.');
|
return false;
|
||||||
f.wr_password.focus();
|
}
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
if (typeof (f.wr_password) != 'undefined') {
|
||||||
}
|
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||||
|
if (f.wr_password.value == '') {
|
||||||
|
alert('비밀번호가 입력되지 않았습니다.');
|
||||||
|
f.wr_password.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function comment_delete()
|
return true;
|
||||||
{
|
}
|
||||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
|
||||||
}
|
|
||||||
|
|
||||||
function comment_box(co_id, wr_id) {
|
function comment_delete() {
|
||||||
|
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||||
|
}
|
||||||
|
|
||||||
if($('#c_'+co_id).find('.modify_area').is(':visible')) {
|
function comment_box(co_id, wr_id) {
|
||||||
$('.modify_area').hide();
|
|
||||||
$('.original_comment_area').show();
|
|
||||||
co_id = '';
|
|
||||||
wr_id = '';
|
|
||||||
} else {
|
|
||||||
$('.modify_area').hide();
|
|
||||||
$('.original_comment_area').show();
|
|
||||||
|
|
||||||
$('#c_'+co_id).find('.modify_area').show();
|
if ($('#c_' + co_id).find('.modify_area').is(':visible')) {
|
||||||
$('#c_'+co_id).find('.original_comment_area').hide();
|
$('.modify_area').hide();
|
||||||
$('#save_co_comment_'+co_id).focus();
|
$('.original_comment_area').show();
|
||||||
}
|
co_id = '';
|
||||||
|
wr_id = '';
|
||||||
|
} else {
|
||||||
|
$('.modify_area').hide();
|
||||||
|
$('.original_comment_area').show();
|
||||||
|
|
||||||
var modify_form = document.getElementById('frm_modify_comment');
|
$('#c_' + co_id).find('.modify_area').show();
|
||||||
modify_form.wr_id.value = wr_id;
|
$('#c_' + co_id).find('.original_comment_area').hide();
|
||||||
modify_form.comment_id.value = co_id;
|
$('#save_co_comment_' + co_id).focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function modify_commnet(co_id) {
|
var modify_form = document.getElementById('frm_modify_comment');
|
||||||
var modify_form = document.getElementById('frm_modify_comment');
|
modify_form.wr_id.value = wr_id;
|
||||||
var wr_content = $('#save_co_comment_'+co_id).val();
|
modify_form.comment_id.value = co_id;
|
||||||
|
}
|
||||||
|
|
||||||
modify_form.wr_content.value = wr_content;
|
function modify_commnet(co_id) {
|
||||||
$('#frm_modify_comment').submit();
|
var modify_form = document.getElementById('frm_modify_comment');
|
||||||
}
|
var wr_content = $('#save_co_comment_' + co_id).val();
|
||||||
|
|
||||||
|
modify_form.wr_content.value = wr_content;
|
||||||
|
$('#frm_modify_comment').submit();
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form name="modify_comment" id="frm_modify_comment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
|
<form name="modify_comment" id="frm_modify_comment" action="./write_comment_update.php"
|
||||||
<input type="hidden" name="w" value="cu">
|
onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<input type="hidden" name="w" value="cu">
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||||
|
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||||
|
|
||||||
<input type="hidden" name="comment_id" value="">
|
<input type="hidden" name="comment_id" value="">
|
||||||
<input type="hidden" name="wr_id" value="">
|
<input type="hidden" name="wr_id" value="">
|
||||||
<textarea name="wr_content" style="display: none;"></textarea>
|
<textarea name="wr_content" style="display: none;"></textarea>
|
||||||
<button type="submit" style="display: none;"></button>
|
<button type="submit" style="display: none;"></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script src="<?php echo $board_skin_url ?>/js/load.board.js"></script>
|
<script src="<?php echo $board_skin_url ?>/js/load.board.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
?>
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
|
||||||
|
|
@ -1,115 +1,106 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
|
|
||||||
$comment = [];
|
$comment = [];
|
||||||
|
|
||||||
$is_comment_write = false;
|
$is_comment_write = false;
|
||||||
if ($member['mb_level'] >= $board['bo_comment_level'] && $is_member)
|
if ($member['mb_level'] >= $board['bo_comment_level'] && $is_member)
|
||||||
$is_comment_write = true;
|
$is_comment_write = true;
|
||||||
|
|
||||||
// 코멘트 출력
|
// 코멘트 출력
|
||||||
//$sql = " select * from {$write_table} where wr_parent = '{$wr_id}' and wr_is_comment = 1 order by wr_comment desc, wr_comment_reply ";
|
//$sql = " select * from {$write_table} where wr_parent = '{$wr_id}' and wr_is_comment = 1 order by wr_comment desc, wr_comment_reply ";
|
||||||
$sql = " select * from $write_table where wr_parent = '{$list_item['wr_id']}' and wr_content != '' order by wr_datetime asc ";
|
$sql = " select * from $write_table where wr_parent = '{$list_item['wr_id']}' and wr_content != '' order by wr_datetime asc ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
|
for ($c_i = 0; $c_row = sql_fetch_array($result); $c_i++) {
|
||||||
{
|
$comment[$c_i] = $c_row;
|
||||||
$comment[$c_i] = $c_row;
|
|
||||||
|
|
||||||
//$comment[$c_i]['name'] = get_sideview($c_row['mb_id'], cut_str($c_row['wr_name'], 20, ''), $c_row['wr_email'], $c_row['wr_homepage']);
|
//$comment[$c_i]['name'] = get_sideview($c_row['mb_id'], cut_str($c_row['wr_name'], 20, ''), $c_row['wr_email'], $c_row['wr_homepage']);
|
||||||
|
|
||||||
$tmp_name = get_text(cut_str($c_row['wr_name'], $config['cf_cut_name'])); // 설정된 자리수 만큼만 이름 출력
|
$tmp_name = get_text(cut_str($c_row['wr_name'], $config['cf_cut_name'])); // 설정된 자리수 만큼만 이름 출력
|
||||||
if ($board['bo_use_sideview'])
|
if ($board['bo_use_sideview'])
|
||||||
$comment[$c_i]['name'] = get_sideview($c_row['mb_id'], $tmp_name, $c_row['wr_email'], $c_row['wr_homepage']);
|
$comment[$c_i]['name'] = get_sideview($c_row['mb_id'], $tmp_name, $c_row['wr_email'], $c_row['wr_homepage']);
|
||||||
else
|
else
|
||||||
$comment[$c_i]['name'] = '<span class="'.($c_row['mb_id']?'member':'guest').'">'.$tmp_name.'</span>';
|
$comment[$c_i]['name'] = '<span class="' . ($c_row['mb_id'] ? 'member' : 'guest') . '">' . $tmp_name . '</span>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 공백없이 연속 입력한 문자 자르기 (way 보드 참고. way.co.kr)
|
// 공백없이 연속 입력한 문자 자르기 (way 보드 참고. way.co.kr)
|
||||||
//$comment[$c_i]['content'] = eregi_replace("[^ \n<>]{130}", "\\0\n", $c_row['wr_content']);
|
//$comment[$c_i]['content'] = eregi_replace("[^ \n<>]{130}", "\\0\n", $c_row['wr_content']);
|
||||||
|
|
||||||
$comment[$c_i]['content'] = $comment[$c_i]['content1']= '비밀글 입니다.';
|
$comment[$c_i]['content'] = $comment[$c_i]['content1'] = '비밀글 입니다.';
|
||||||
if (!strstr($c_row['wr_option'], 'secret') ||
|
if (
|
||||||
$is_admin ||
|
!strstr($c_row['wr_option'], 'secret') ||
|
||||||
($write['mb_id']==$member['mb_id'] && $member['mb_id']) ||
|
$is_admin ||
|
||||||
($c_row['mb_id']==$member['mb_id'] && $member['mb_id'])) {
|
($write['mb_id'] == $member['mb_id'] && $member['mb_id']) ||
|
||||||
$comment[$c_i]['content1'] = $c_row['wr_content'];
|
($c_row['mb_id'] == $member['mb_id'] && $member['mb_id'])
|
||||||
$comment[$c_i]['content'] = conv_content($c_row['wr_content'], 0, 'wr_content');
|
) {
|
||||||
$comment[$c_i]['content'] = search_font($stx, $comment[$c_i]['content']);
|
$comment[$c_i]['content1'] = $c_row['wr_content'];
|
||||||
} else {
|
$comment[$c_i]['content'] = conv_content($c_row['wr_content'], 0, 'wr_content');
|
||||||
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$comment[$c_i]['wr_id'];
|
$comment[$c_i]['content'] = search_font($stx, $comment[$c_i]['content']);
|
||||||
|
} else {
|
||||||
|
$ss_name = 'ss_secret_comment_' . $bo_table . '_' . $comment[$c_i]['wr_id'];
|
||||||
|
|
||||||
if(!get_session($ss_name))
|
if (!get_session($ss_name))
|
||||||
$comment[$c_i]['content'] = '<a href="./password.php?w=sc&bo_table='.$bo_table.'&wr_id='.$comment[$c_i]['wr_id'].$qstr.'" class="s_cmt">댓글내용 확인</a>';
|
$comment[$c_i]['content'] = '<a href="./password.php?w=sc&bo_table=' . $bo_table . '&wr_id=' . $comment[$c_i]['wr_id'] . $qstr . '" class="s_cmt">댓글내용 확인</a>';
|
||||||
else {
|
else {
|
||||||
$comment[$c_i]['content'] = conv_content($c_row['wr_content'], 0, 'wr_content');
|
$comment[$c_i]['content'] = conv_content($c_row['wr_content'], 0, 'wr_content');
|
||||||
$comment[$c_i]['content'] = search_font($stx, $comment[$c_i]['content']);
|
$comment[$c_i]['content'] = search_font($stx, $comment[$c_i]['content']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$comment[$c_i]['datetime'] = substr($c_row['wr_datetime'],2,14);
|
$comment[$c_i]['datetime'] = substr($c_row['wr_datetime'], 2, 14);
|
||||||
|
|
||||||
// 관리자가 아니라면 중간 IP 주소를 감춘후 보여줍니다.
|
// 관리자가 아니라면 중간 IP 주소를 감춘후 보여줍니다.
|
||||||
$comment[$c_i]['ip'] = $c_row['wr_ip'];
|
$comment[$c_i]['ip'] = $c_row['wr_ip'];
|
||||||
if (!$is_admin)
|
if (!$is_admin)
|
||||||
$comment[$c_i]['ip'] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $c_row['wr_ip']);
|
$comment[$c_i]['ip'] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $c_row['wr_ip']);
|
||||||
|
|
||||||
$comment[$c_i]['is_reply'] = false;
|
$comment[$c_i]['is_reply'] = false;
|
||||||
$comment[$c_i]['is_edit'] = false;
|
$comment[$c_i]['is_edit'] = false;
|
||||||
$comment[$c_i]['is_del'] = false;
|
$comment[$c_i]['is_del'] = false;
|
||||||
if ($is_comment_write || $is_admin)
|
if ($is_comment_write || $is_admin) {
|
||||||
{
|
$token = '';
|
||||||
$token = '';
|
|
||||||
|
|
||||||
if ($member['mb_id'])
|
if ($member['mb_id']) {
|
||||||
{
|
if ($c_row['mb_id'] == $member['mb_id'] || $is_admin) {
|
||||||
if ($c_row['mb_id'] == $member['mb_id'] || $is_admin)
|
set_session('ss_delete_comment_' . $c_row['wr_id'] . '_token', $token = uniqid(time()));
|
||||||
{
|
$comment[$c_i]['del_link'] = './delete_comment.php?bo_table=' . $bo_table . '&comment_id=' . $c_row['wr_id'] . '&token=' . $token . '&page=' . $page . $qstr;
|
||||||
set_session('ss_delete_comment_'.$c_row['wr_id'].'_token', $token = uniqid(time()));
|
$comment[$c_i]['is_edit'] = true;
|
||||||
$comment[$c_i]['del_link'] = './delete_comment.php?bo_table='.$bo_table.'&comment_id='.$c_row['wr_id'].'&token='.$token.'&page='.$page.$qstr;
|
$comment[$c_i]['is_del'] = true;
|
||||||
$comment[$c_i]['is_edit'] = true;
|
}
|
||||||
$comment[$c_i]['is_del'] = true;
|
} else {
|
||||||
}
|
if (!$c_row['mb_id']) {
|
||||||
}
|
$comment[$c_i]['del_link'] = './password.php?w=x&bo_table=' . $bo_table . '&comment_id=' . $c_row['wr_id'] . '&page=' . $page . $qstr;
|
||||||
else
|
$comment[$c_i]['is_del'] = true;
|
||||||
{
|
}
|
||||||
if (!$c_row['mb_id']) {
|
}
|
||||||
$comment[$c_i]['del_link'] = './password.php?w=x&bo_table='.$bo_table.'&comment_id='.$c_row['wr_id'].'&page='.$page.$qstr;
|
|
||||||
$comment[$c_i]['is_del'] = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strlen($c_row['wr_comment_reply']) < 5)
|
if (strlen($c_row['wr_comment_reply']) < 5)
|
||||||
$comment[$c_i]['is_reply'] = true;
|
$comment[$c_i]['is_reply'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 05.05.22
|
// 05.05.22
|
||||||
// 답변있는 코멘트는 수정, 삭제 불가
|
// 답변있는 코멘트는 수정, 삭제 불가
|
||||||
if ($i > 0 && !$is_admin)
|
if ($i > 0 && !$is_admin) {
|
||||||
{
|
if ($c_row['wr_comment_reply']) {
|
||||||
if ($c_row['wr_comment_reply'])
|
$tmp_comment_reply = substr($c_row['wr_comment_reply'], 0, strlen($c_row['wr_comment_reply']) - 1);
|
||||||
{
|
if ($tmp_comment_reply == $comment[$c_i - 1]['wr_comment_reply']) {
|
||||||
$tmp_comment_reply = substr($c_row['wr_comment_reply'], 0, strlen($c_row['wr_comment_reply']) - 1);
|
$comment[$c_i - 1]['is_edit'] = false;
|
||||||
if ($tmp_comment_reply == $comment[$c_i-1]['wr_comment_reply'])
|
$comment[$c_i - 1]['is_del'] = false;
|
||||||
{
|
}
|
||||||
$comment[$c_i-1]['is_edit'] = false;
|
}
|
||||||
$comment[$c_i-1]['is_del'] = false;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 코멘트수 제한 설정값
|
// 코멘트수 제한 설정값
|
||||||
if ($is_admin)
|
if ($is_admin) {
|
||||||
{
|
$comment_min = $comment_max = 0;
|
||||||
$comment_min = $comment_max = 0;
|
} else {
|
||||||
}
|
$comment_min = (int) $board['bo_comment_min'];
|
||||||
else
|
$comment_max = (int) $board['bo_comment_max'];
|
||||||
{
|
|
||||||
$comment_min = (int)$board['bo_comment_min'];
|
|
||||||
$comment_max = (int)$board['bo_comment_max'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//array_unshift($comment, $list_item);
|
//array_unshift($comment, $list_item);
|
||||||
include($board_skin_path.'/view_comment.skin.php');
|
include($board_skin_path . '/view_comment.skin.php');
|
||||||
|
|
|
||||||
|
|
@ -1,101 +1,105 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
for ($index=0; $index<count($comment); $index++) {
|
for ($index = 0; $index < count($comment); $index++) {
|
||||||
|
|
||||||
$log_comment = $comment[$index];
|
$log_comment = $comment[$index];
|
||||||
$comment_id = $log_comment['wr_id'];
|
$comment_id = $log_comment['wr_id'];
|
||||||
|
|
||||||
$content = $log_comment['content'];
|
$content = $log_comment['content'];
|
||||||
$content = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $content);
|
$content = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $content);
|
||||||
|
|
||||||
if($log_comment['wr_log'] && !$is_admin) {
|
if ($log_comment['wr_log'] && !$is_admin) {
|
||||||
// 로그 (탐색 / 조합 등의 액션 수행)의 흔적이 있을 경우
|
// 로그 (탐색 / 조합 등의 액션 수행)의 흔적이 있을 경우
|
||||||
// 관리자가 아니면 삭제 불가
|
// 관리자가 아니면 삭제 불가
|
||||||
$is_delete = false;
|
$is_delete = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($log_comment['wr_id'] != $log_comment['wr_id'] && ($log_comment['is_reply'] || $log_comment['is_edit'] || $log_comment['is_del'])) {
|
|
||||||
// 답변, 수정, 삭제가 가능할 경우
|
|
||||||
// 또한, 본문의 id와 코멘트의 id가 다를 경우 (같을 경우엔 로그의 상단에 있는 컨트롤을 통해 액션 수행이 가능하다)
|
|
||||||
$query_string = str_replace("&", "&", $_SERVER['QUERY_STRING']);
|
|
||||||
if($w == 'cu') {
|
|
||||||
$sql = " select wr_id, wr_content from $write_table where wr_id = '$indexd' and wr_is_comment = '1' ";
|
|
||||||
$cmt = sql_fetch($sql);
|
|
||||||
$c_wr_content = $cmt['wr_content'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w_'.$list_item['wr_id'];
|
if ($log_comment['wr_id'] != $log_comment['wr_id'] && ($log_comment['is_reply'] || $log_comment['is_edit'] || $log_comment['is_del'])) {
|
||||||
$c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w_'.$list_item['wr_id'];
|
// 답변, 수정, 삭제가 가능할 경우
|
||||||
}
|
// 또한, 본문의 id와 코멘트의 id가 다를 경우 (같을 경우엔 로그의 상단에 있는 컨트롤을 통해 액션 수행이 가능하다)
|
||||||
|
$query_string = str_replace("&", "&", $_SERVER['QUERY_STRING']);
|
||||||
|
if ($w == 'cu') {
|
||||||
|
$sql = " select wr_id, wr_content from $write_table where wr_id = '$indexd' and wr_is_comment = '1' ";
|
||||||
|
$cmt = sql_fetch($sql);
|
||||||
|
$c_wr_content = $cmt['wr_content'];
|
||||||
|
}
|
||||||
|
|
||||||
// 캐릭터 정보 출력
|
$c_reply_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=c#bo_vc_w_' . $list_item['wr_id'];
|
||||||
$is_comment_owner = false;
|
$c_edit_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=cu#bo_vc_w_' . $list_item['wr_id'];
|
||||||
$comment_owner_front = ""; // 자기 로그 접두문자
|
}
|
||||||
$comment_owner_behind = ""; // 자기 로그 접미문자
|
|
||||||
|
|
||||||
if(!$log_comment['wr_noname']) {
|
// 캐릭터 정보 출력
|
||||||
// 오너 정보 출력
|
$is_comment_owner = false;
|
||||||
$log_comment['name'] = $log_comment['wr_name'];
|
$comment_owner_front = ""; // 자기 로그 접두문자
|
||||||
|
$comment_owner_behind = ""; // 자기 로그 접미문자
|
||||||
|
|
||||||
if($list_item['mb_id']!='' && $list_item['mb_id'] == $log_comment['mb_id']) {
|
if (!$log_comment['wr_noname']) {
|
||||||
$is_comment_owner = true;
|
// 오너 정보 출력
|
||||||
$comment_owner_front = $owner_front;
|
$log_comment['name'] = $log_comment['wr_name'];
|
||||||
$comment_owner_behind = $owner_behind;
|
|
||||||
}
|
if ($list_item['mb_id'] != '' && $list_item['mb_id'] == $log_comment['mb_id']) {
|
||||||
} else {
|
$is_comment_owner = true;
|
||||||
$is_comment_owner = false;
|
$comment_owner_front = $owner_front;
|
||||||
}
|
$comment_owner_behind = $owner_behind;
|
||||||
?>
|
}
|
||||||
|
} else {
|
||||||
|
$is_comment_owner = false;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
<div class="item-comment" id="c_<?php echo $comment_id ?>">
|
<div class="item-comment" id="c_<?php echo $comment_id ?>">
|
||||||
<div class="co-header">
|
<div class="co-header">
|
||||||
<?php // 로그 작성자와 코멘트 작성자가 동일할 경우, class='owner' 를 추가한다. ?>
|
<?php // 로그 작성자와 코멘트 작성자가 동일할 경우, class='owner' 를 추가한다. ?>
|
||||||
<p <?=$is_comment_owner ? ' class="owner"' : ''?>>
|
<p <?= $is_comment_owner ? ' class="owner"' : '' ?>>
|
||||||
<?=$comment_owner_front?>
|
<?= $comment_owner_front ?>
|
||||||
<span><?=$log_comment['name']?></span>
|
<span><?= $log_comment['name'] ?></span>
|
||||||
<?=$comment_owner_behind?>
|
<?= $comment_owner_behind ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="co-content">
|
<div class="co-content">
|
||||||
<div class="original_comment_area">
|
<div class="original_comment_area">
|
||||||
<?php
|
<?php
|
||||||
if($log_comment['wr_link1']) {
|
if ($log_comment['wr_link1']) {
|
||||||
// 로그 등록 시 입력한 외부 링크 정보
|
// 로그 등록 시 입력한 외부 링크 정보
|
||||||
?>
|
?>
|
||||||
<span class="link-box">
|
<span class="link-box">
|
||||||
<?php if($log_comment['wr_link1']) { ?>
|
<?php if ($log_comment['wr_link1']) { ?>
|
||||||
<a href="<?=$log_comment['wr_link1']?>" target="_blank" class="link">LINK</a>
|
<a href="<?= $log_comment['wr_link1'] ?>" target="_blank" class="link">LINK</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if($log_comment['wr_link2']) { ?>
|
<?php if ($log_comment['wr_link2']) { ?>
|
||||||
<a href="<?=$log_comment['wr_link2']?>" target="_blank" class="link">LINK</a>
|
<a href="<?= $log_comment['wr_link2'] ?>" target="_blank" class="link">LINK</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</span>
|
</span>
|
||||||
<?php }
|
<?php }
|
||||||
// 코멘트 출력 부분
|
// 코멘트 출력 부분
|
||||||
$log_comment['content'] = autolink($log_comment['content'], $bo_table, $stx); // 자동 링크 및 해시태그, 로그 링크 등 컨트롤 함수
|
$log_comment['content'] = autolink($log_comment['content'], $bo_table, $stx); // 자동 링크 및 해시태그, 로그 링크 등 컨트롤 함수
|
||||||
$log_comment['content'] = emote_ev($log_comment['content']); // 이모티콘 출력 함수
|
$log_comment['content'] = emote_ev($log_comment['content']); // 이모티콘 출력 함수
|
||||||
echo $log_comment['content'];
|
echo $log_comment['content'];
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php if($log_comment['is_edit']) { ?>
|
<?php if ($log_comment['is_edit']) { ?>
|
||||||
<div class="modify_area" id="save_comment_<?php echo $comment_id ?>">
|
<div class="modify_area" id="save_comment_<?php echo $comment_id ?>">
|
||||||
<textarea id="save_co_comment_<?php echo $comment_id ?>"><?php echo get_text($log_comment['content1'], 0) ?></textarea>
|
<textarea
|
||||||
<button type="button" class="mod_comment ui-btn" onclick="modify_commnet('<?php echo $comment_id ?>'); return false;">수정</button>
|
id="save_co_comment_<?php echo $comment_id ?>"><?php echo get_text($log_comment['content1'], 0) ?></textarea>
|
||||||
</div>
|
<button type="button" class="mod_comment ui-btn"
|
||||||
<?php } ?>
|
onclick="modify_commnet('<?php echo $comment_id ?>'); return false;">수정</button>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="co-footer">
|
<div class="co-footer">
|
||||||
<span class="date">
|
<span class="date">
|
||||||
<?=date('Y-m-d H:i:s', strtotime($log_comment['wr_datetime']))?>
|
<?= date('Y-m-d H:i:s', strtotime($log_comment['wr_datetime'])) ?>
|
||||||
</span>
|
</span>
|
||||||
<?php if ($log_comment['is_del']) { ?><a href="<?php echo $log_comment['del_link']; ?>" onclick="return comment_delete();" class="del">삭제</a><?php } ?>
|
<?php if ($log_comment['is_del']) { ?><a href="<?php echo $log_comment['del_link']; ?>"
|
||||||
<?php if ($log_comment['is_edit']) { ?><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', '<?=$list_item['wr_id']?>'); return false;" class="mod">수정</a><?php } ?>
|
onclick="return comment_delete();" class="del">삭제</a><?php } ?>
|
||||||
</div>
|
<?php if ($log_comment['is_edit']) { ?><a href="<?php echo $c_edit_href; ?>"
|
||||||
</div>
|
onclick="comment_box('<?php echo $comment_id ?>', '<?= $list_item['wr_id'] ?>'); return false;"
|
||||||
|
class="mod">수정</a><?php } ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,477 +1,482 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
exit; // 개별 페이지 접근 불가
|
||||||
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
$is_error = false;
|
$is_error = false;
|
||||||
$option = '';
|
$option = '';
|
||||||
$option_hidden = '';
|
$option_hidden = '';
|
||||||
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
||||||
$option = '';
|
$option = '';
|
||||||
if ($is_notice) {
|
if ($is_notice) {
|
||||||
$option .= "\n".'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'."\n".'<label for="notice">공지</label>';
|
$option .= "\n" . '<input type="checkbox" id="notice" name="notice" value="1" ' . $notice_checked . '>' . "\n" . '<label for="notice">공지</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_html) {
|
if ($is_html) {
|
||||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">html</label>';
|
$option .= "\n" . '<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="' . $html_value . '" ' . $html_checked . '>' . "\n" . '<label for="html">html</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_secret) {
|
if ($is_secret) {
|
||||||
if ($is_admin || $is_secret==1) {
|
if ($is_admin || $is_secret == 1) {
|
||||||
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
|
$option .= "\n" . '<input type="checkbox" id="secret" name="secret" value="secret" ' . $secret_checked . '>' . "\n" . '<label for="secret">비밀글</label>';
|
||||||
} else {
|
} else {
|
||||||
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
|
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_mail) {
|
if ($is_mail) {
|
||||||
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
|
$option .= "\n" . '<input type="checkbox" id="mail" name="mail" value="mail" ' . $recv_email_checked . '>' . "\n" . '<label for="mail">답변메일받기</label>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$is_error) {
|
if (!$is_error) {
|
||||||
|
|
||||||
// 카테고리 재정의
|
// 카테고리 재정의
|
||||||
$is_category = false;
|
$is_category = false;
|
||||||
$category_option = '';
|
$category_option = '';
|
||||||
if ($board['bo_use_category']) {
|
if ($board['bo_use_category']) {
|
||||||
$ca_name = "";
|
$ca_name = "";
|
||||||
if (isset($write['ca_name']))
|
if (isset($write['ca_name']))
|
||||||
$ca_name = $write['ca_name'];
|
$ca_name = $write['ca_name'];
|
||||||
|
|
||||||
$categories = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
$categories = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
||||||
$category_option = "";
|
$category_option = "";
|
||||||
for ($i=0; $i<count($categories); $i++) {
|
for ($i = 0; $i < count($categories); $i++) {
|
||||||
$checked = '';
|
$checked = '';
|
||||||
$class = '';
|
$class = '';
|
||||||
$category = trim($categories[$i]);
|
$category = trim($categories[$i]);
|
||||||
if (!$category) continue;
|
if (!$category)
|
||||||
|
continue;
|
||||||
|
|
||||||
if($i==0 && $ca_name == '') {
|
if ($i == 0 && $ca_name == '') {
|
||||||
$ca_name = $category;
|
$ca_name = $category;
|
||||||
}
|
}
|
||||||
if ($category == $ca_name) {
|
if ($category == $ca_name) {
|
||||||
$class = ' class="on"';
|
$class = ' class="on"';
|
||||||
$checked = 'checked';
|
$checked = 'checked';
|
||||||
}
|
}
|
||||||
|
|
||||||
$category_option .= "<li $class>";
|
$category_option .= "<li $class>";
|
||||||
|
|
||||||
$category_option .= "
|
$category_option .= "
|
||||||
<input type='radio' name='ca_name' value='{$category}' id='ca_name_{$i}' {$checked} />
|
<input type='radio' name='ca_name' value='{$category}' id='ca_name_{$i}' {$checked} />
|
||||||
<label for='ca_name_{$i}' data-index='view_{$i}'>$category</label>
|
<label for='ca_name_{$i}' data-index='view_{$i}'>$category</label>
|
||||||
</li>\n";
|
</li>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$is_category = true;
|
$is_category = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$image_url = $board_skin_url."/img/no_image.png";
|
$image_url = $board_skin_url . "/img/no_image.png";
|
||||||
if($w == 'u') {
|
if ($w == 'u') {
|
||||||
if($write['wr_type'] == 'URL') {
|
if ($write['wr_type'] == 'URL') {
|
||||||
$image_url = $write['wr_url'];
|
$image_url = $write['wr_url'];
|
||||||
$img_data = "width : ".$write['wr_width']."px / height : ".$write['wr_height']."px";
|
$img_data = "width : " . $write['wr_width'] . "px / height : " . $write['wr_height'] . "px";
|
||||||
} else if($file[0]['file']) {
|
} else if ($file[0]['file']) {
|
||||||
$image_url = $file[0]['path']."/".$file[0]['file'];
|
$image_url = $file[0]['path'] . "/" . $file[0]['file'];
|
||||||
$img_data = "width : ".$file[0]['wr_width']."px / height : ".$file[0]['wr_height']."px";
|
$img_data = "width : " . $file[0]['wr_width'] . "px / height : " . $file[0]['wr_height'] . "px";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($write['wr_subject'] == "--|UPLOADING|--") {
|
if ($write['wr_subject'] == "--|UPLOADING|--") {
|
||||||
$write['wr_subject'] = $member['mb_name'];
|
$write['wr_subject'] = $member['mb_name'];
|
||||||
if(!$write['wr_subject']) $write['wr_subject'] = 'GUEST';
|
if (!$write['wr_subject'])
|
||||||
}
|
$write['wr_subject'] = 'GUEST';
|
||||||
} else {
|
}
|
||||||
$write['wr_subject'] = $member['mb_name'];
|
} else {
|
||||||
if(!$write['wr_subject']) $write['wr_subject'] = 'GUEST';
|
$write['wr_subject'] = $member['mb_name'];
|
||||||
}
|
if (!$write['wr_subject'])
|
||||||
?>
|
$write['wr_subject'] = 'GUEST';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="load_log_board">
|
<div id="load_log_board">
|
||||||
<section id="bo_w" class="mmb-board">
|
<section id="bo_w" class="mmb-board">
|
||||||
<!-- 게시물 작성/수정 시작 { -->
|
<!-- 게시물 작성/수정 시작 { -->
|
||||||
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);"
|
||||||
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
method="post" enctype="multipart/form-data" autocomplete="off">
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||||
<input type="hidden" name="wr_subject" value="<?=$write['wr_subject']?>" />
|
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||||
<input type="hidden" name="wr_width" id="wr_width" value="<?php echo $write['wr_width']; ?>">
|
<input type="hidden" name="wr_subject" value="<?= $write['wr_subject'] ?>" />
|
||||||
<input type="hidden" name="wr_height" id="wr_height" value="<?php echo $write['wr_height']; ?>">
|
<input type="hidden" name="wr_width" id="wr_width" value="<?php echo $write['wr_width']; ?>">
|
||||||
<?php echo $option_hidden; ?>
|
<input type="hidden" name="wr_height" id="wr_height" value="<?php echo $write['wr_height']; ?>">
|
||||||
|
<?php echo $option_hidden; ?>
|
||||||
<!-- LOG 등록 부분 -->
|
|
||||||
<div id="view_image" class="theme-box">
|
|
||||||
<span><?=$img_data?></span>
|
|
||||||
<em id="view_image_loading">...LOADING...</em>
|
|
||||||
<?php if($image_url) { ?>
|
|
||||||
<img src="<?=$image_url?>" id="prev_view_image" />
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<dl>
|
<!-- LOG 등록 부분 -->
|
||||||
<dt>
|
<div id="view_image" class="theme-box">
|
||||||
<select name="wr_type" onchange="fn_log_type(this.value);">
|
<span><?= $img_data ?></span>
|
||||||
<option value="UPLOAD" <?=$write['wr_type'] == "UPLOAD" ? "selected" : ""?>>UPLOAD</option>
|
<em id="view_image_loading">...LOADING...</em>
|
||||||
<option value="URL" <?=$write['wr_type'] == "URL" ? "selected" : ""?>>URL</option>
|
<?php if ($image_url) { ?>
|
||||||
</select>
|
<img src="<?= $image_url ?>" id="prev_view_image" />
|
||||||
</dt>
|
<?php } ?>
|
||||||
<dd>
|
</div>
|
||||||
<div id="add_UPLOAD" <?=$write['wr_type'] == "URL" ? "style='display: none;'" : ""?>>
|
|
||||||
<input type="file" id="wr_file" name="bf_file[]" title="로그등록 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input view_image_area" />
|
|
||||||
<?php if($w == 'u' && $file[0]['file']) { ?>
|
|
||||||
<input type="checkbox" id="bf_file_del0" name="bf_file_del[0]" value="1"> <label for="bf_file_del0"><?php echo $file[0]['source'].'('.$file[0]['size'].')'; ?> 로그 삭제</label>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
<div id="add_URL" <?=$write['wr_type'] != "URL" ? "style='display: none;'" : ""?>>
|
|
||||||
<input type="text" name="wr_url" value="<?=$write['wr_url']?>" title="이미지 링크를 가져와 주시길 바랍니다." id="wr_url" class="frm_input view_image_area" placeholder="이미지 링크 입력"/>
|
|
||||||
</div>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
<div class="theme-box">
|
|
||||||
<?php if ($is_category) { ?>
|
|
||||||
<ul id="board_category">
|
|
||||||
<?php echo $category_option ?>
|
|
||||||
</ul>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="inner">
|
<dl>
|
||||||
<!-- 일반 커맨드 -->
|
<dt>
|
||||||
<?php
|
<select name="wr_type" onchange="fn_log_type(this.value);">
|
||||||
/******************************************************
|
<option value="UPLOAD" <?= $write['wr_type'] == "UPLOAD" ? "selected" : "" ?>>UPLOAD</option>
|
||||||
* :: 주사위의 경우, 한번 굴린 데이터가 남아 있을 시 수정 불가
|
<option value="URL" <?= $write['wr_type'] == "URL" ? "selected" : "" ?>>URL</option>
|
||||||
* :: 이때, 다른 카테고리의 선택을 할 수 없다.
|
</select>
|
||||||
*******************************************************/
|
</dt>
|
||||||
?>
|
<dd>
|
||||||
<dl>
|
<div id="add_UPLOAD" <?= $write['wr_type'] == "URL" ? "style='display: none;'" : "" ?>>
|
||||||
<dt>
|
<input type="file" id="wr_file" name="bf_file[]"
|
||||||
<i class="icon gear"></i>Option
|
title="로그등록 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
|
||||||
</dt>
|
class="frm_file frm_input view_image_area" />
|
||||||
<dd>
|
<?php if ($w == 'u' && $file[0]['file']) { ?>
|
||||||
<?php if($is_member) { ?>
|
<input type="checkbox" id="bf_file_del0" name="bf_file_del[0]" value="1"> <label
|
||||||
<fieldset>
|
for="bf_file_del0"><?php echo $file[0]['source'] . '(' . $file[0]['size'] . ')'; ?> 로그 삭제</label>
|
||||||
<input type="checkbox" id="wr_secret" name="wr_secret" value="1" <?=$write['wr_secret'] ? "checked" : ""?>/>
|
<?php } ?>
|
||||||
<label for="wr_secret">멤버공개</label>
|
</div>
|
||||||
</fieldset>
|
<div id="add_URL" <?= $write['wr_type'] != "URL" ? "style='display: none;'" : "" ?>>
|
||||||
<fieldset>
|
<input type="text" name="wr_url" value="<?= $write['wr_url'] ?>" title="이미지 링크를 가져와 주시길 바랍니다." id="wr_url"
|
||||||
<input type="checkbox" id="wr_adult" name="wr_adult" value="1" <?=$write['wr_adult'] ? "checked" : ""?>/>
|
class="frm_input view_image_area" placeholder="이미지 링크 입력" />
|
||||||
<label for="wr_adult">19금</label>
|
</div>
|
||||||
</fieldset>
|
</dd>
|
||||||
<?php } ?>
|
</dl>
|
||||||
<fieldset>
|
|
||||||
<input type="checkbox" id="wr_wide" name="wr_wide" value="1" <?=$write['wr_wide'] ? "checked" : ""?>/>
|
|
||||||
<label for="wr_wide">리플창 아래로</label>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset>
|
|
||||||
<input type="checkbox" id="wr_plip" name="wr_plip" value="1" <?=$write['wr_plip'] ? "checked" : ""?>/>
|
|
||||||
<label for="wr_plip">로그접기 (<?=$board['bo_gallery_height']?>px 이상은 자동으로 접힙니다.)</label>
|
|
||||||
</fieldset>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
<?php if ($is_name) { ?>
|
|
||||||
<dl>
|
|
||||||
<dt>
|
|
||||||
<label for="wr_name">이름</label>
|
|
||||||
</dt>
|
|
||||||
<dd>
|
|
||||||
<input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20">
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if ($is_password) { ?>
|
<div class="theme-box">
|
||||||
<dl>
|
<?php if ($is_category) { ?>
|
||||||
<dt>
|
<ul id="board_category">
|
||||||
<label for="wr_password">비밀번호</label>
|
<?php echo $category_option ?>
|
||||||
</dt>
|
</ul>
|
||||||
<dd>
|
<?php } ?>
|
||||||
<input type="password" name="wr_password" id="wr_password" value="<?=$_COOKIE['MMB_PW']?>" class="frm_input" maxlength="20">
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
<div class="inner">
|
||||||
<dl>
|
<!-- 일반 커맨드 -->
|
||||||
<dt>
|
<?php
|
||||||
<label for="wr_link<?php echo $i ?>"><i class="icon link"></i>Link #<?php echo $i ?></label>
|
/******************************************************
|
||||||
</dt>
|
* :: 주사위의 경우, 한번 굴린 데이터가 남아 있을 시 수정 불가
|
||||||
<dd>
|
* :: 이때, 다른 카테고리의 선택을 할 수 없다.
|
||||||
<input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50">
|
*******************************************************/
|
||||||
</dd>
|
?>
|
||||||
</dl>
|
<dl>
|
||||||
<?php } ?>
|
<dt>
|
||||||
|
<i class="icon gear"></i>Option
|
||||||
</div>
|
</dt>
|
||||||
</div>
|
<dd>
|
||||||
|
<?php if ($is_member) { ?>
|
||||||
<hr class="padding small" />
|
<fieldset>
|
||||||
|
<input type="checkbox" id="wr_secret" name="wr_secret" value="1" <?= $write['wr_secret'] ? "checked" : "" ?> />
|
||||||
|
<label for="wr_secret">멤버공개</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset>
|
||||||
|
<input type="checkbox" id="wr_adult" name="wr_adult" value="1" <?= $write['wr_adult'] ? "checked" : "" ?> />
|
||||||
|
<label for="wr_adult">19금</label>
|
||||||
|
</fieldset>
|
||||||
|
<?php } ?>
|
||||||
|
<fieldset>
|
||||||
|
<input type="checkbox" id="wr_wide" name="wr_wide" value="1" <?= $write['wr_wide'] ? "checked" : "" ?> />
|
||||||
|
<label for="wr_wide">리플창 아래로</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset>
|
||||||
|
<input type="checkbox" id="wr_plip" name="wr_plip" value="1" <?= $write['wr_plip'] ? "checked" : "" ?> />
|
||||||
|
<label for="wr_plip">로그접기 (<?= $board['bo_gallery_height'] ?>px 이상은 자동으로 접힙니다.)</label>
|
||||||
|
</fieldset>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
<div class="comments">
|
<?php if ($is_name) { ?>
|
||||||
<textarea name="wr_content" rows="5"><?=$write['wr_content']?></textarea>
|
<dl>
|
||||||
<p class="ui-btn help">해시태그 : #해시태그내용 / 로그링크 : @로그번호</p>
|
<dt>
|
||||||
</div>
|
<label for="wr_name">이름</label>
|
||||||
|
</dt>
|
||||||
<hr class="padding" />
|
<dd>
|
||||||
|
<input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required
|
||||||
|
class="frm_input required" size="10" maxlength="20">
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<div class="txt-center">
|
<?php if ($is_password) { ?>
|
||||||
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn">COMMENT</button>
|
<dl>
|
||||||
<button type="button" onclick="location.href='./board.php?bo_table=<?=$bo_table?>';" class="ui-btn">LIST</button>
|
<dt>
|
||||||
</div>
|
<label for="wr_password">비밀번호</label>
|
||||||
</form>
|
</dt>
|
||||||
</section>
|
<dd>
|
||||||
<!-- } 게시물 작성/수정 끝 -->
|
<input type="password" name="wr_password" id="wr_password" value="<?= $_COOKIE['MMB_PW'] ?>"
|
||||||
</div>
|
class="frm_input" maxlength="20">
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<script>
|
<?php for ($i = 1; $is_link && $i <= G5_LINK_COUNT; $i++) { ?>
|
||||||
<?php if($write_min || $write_max) { ?>
|
<dl>
|
||||||
// 글자수 제한
|
<dt>
|
||||||
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
|
<label for="wr_link<?php echo $i ?>"><i class="icon link"></i>Link #<?php echo $i ?></label>
|
||||||
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
|
</dt>
|
||||||
check_byte("wr_content", "char_count");
|
<dd>
|
||||||
|
<input type="text" name="wr_link<?php echo $i ?>" value="<?php if ($w == "u") {
|
||||||
|
echo $write['wr_link' . $i];
|
||||||
|
} ?>"
|
||||||
|
id="wr_link<?php echo $i ?>" class="frm_input" size="50">
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
$(function() {
|
</div>
|
||||||
$("#wr_content").on("keyup", function() {
|
</div>
|
||||||
check_byte("wr_content", "char_count");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
<?php } ?>
|
|
||||||
function html_auto_br(obj)
|
|
||||||
{
|
|
||||||
if (obj.checked) {
|
|
||||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
|
||||||
if (result)
|
|
||||||
obj.value = "html2";
|
|
||||||
else
|
|
||||||
obj.value = "html1";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
obj.value = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
function fwrite_submit(f)
|
<hr class="padding small" />
|
||||||
{
|
|
||||||
var subject = "";
|
|
||||||
var content = "";
|
|
||||||
$.ajax({
|
|
||||||
url: g5_bbs_url+"/ajax.filter.php",
|
|
||||||
type: "POST",
|
|
||||||
data: {
|
|
||||||
"subject": f.wr_subject.value,
|
|
||||||
"content": f.wr_content.value
|
|
||||||
},
|
|
||||||
dataType: "json",
|
|
||||||
async: false,
|
|
||||||
cache: false,
|
|
||||||
success: function(data, textStatus) {
|
|
||||||
subject = data.subject;
|
|
||||||
content = data.content;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (subject) {
|
<div class="comments">
|
||||||
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
|
<textarea name="wr_content" rows="5"><?= $write['wr_content'] ?></textarea>
|
||||||
f.wr_subject.focus();
|
<p class="ui-btn help">해시태그 : #해시태그내용 / 로그링크 : @로그번호</p>
|
||||||
return false;
|
</div>
|
||||||
}
|
|
||||||
|
|
||||||
if (content) {
|
<hr class="padding" />
|
||||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
|
||||||
if (typeof(ed_wr_content) != "undefined")
|
|
||||||
ed_wr_content.returnFalse();
|
|
||||||
else
|
|
||||||
f.wr_content.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (document.getElementById("char_count")) {
|
<div class="txt-center">
|
||||||
if (char_min > 0 || char_max > 0) {
|
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn">COMMENT</button>
|
||||||
var cnt = parseInt(check_byte("wr_content", "char_count"));
|
<button type="button" onclick="location.href='./board.php?bo_table=<?= $bo_table ?>';"
|
||||||
if (char_min > 0 && char_min > cnt) {
|
class="ui-btn">LIST</button>
|
||||||
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
</div>
|
||||||
return false;
|
</form>
|
||||||
}
|
</section>
|
||||||
else if (char_max > 0 && char_max < cnt) {
|
<!-- } 게시물 작성/수정 끝 -->
|
||||||
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
</div>
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<?php if($w == '') { ?>
|
<script>
|
||||||
if(f.wr_type.value == 'UPLOAD') {
|
<?php if ($write_min || $write_max) { ?>
|
||||||
if(document.getElementById('wr_file').value == '') {
|
// 글자수 제한
|
||||||
alert("업로드할 로그를 등록해 주시길 바랍니다.");
|
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
|
||||||
return false;
|
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
|
||||||
}
|
check_byte("wr_content", "char_count");
|
||||||
} else if(f.wr_type.value == 'URL') {
|
|
||||||
if(document.getElementById('wr_url').value == '') {
|
$(function () {
|
||||||
alert("등록할 로그 URL을 입력해 주시길 바랍니다.");
|
$("#wr_content").on("keyup", function () {
|
||||||
return false;
|
check_byte("wr_content", "char_count");
|
||||||
}
|
});
|
||||||
}
|
});
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
document.getElementById("btn_submit").disabled = "disabled";
|
function html_auto_br(obj) {
|
||||||
return true;
|
if (obj.checked) {
|
||||||
}
|
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||||
|
if (result)
|
||||||
|
obj.value = "html2";
|
||||||
|
else
|
||||||
|
obj.value = "html1";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
obj.value = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
function fwrite_submit(f) {
|
||||||
|
var subject = "";
|
||||||
|
var content = "";
|
||||||
|
$.ajax({
|
||||||
|
url: g5_bbs_url + "/ajax.filter.php",
|
||||||
|
type: "POST",
|
||||||
|
data: {
|
||||||
|
"subject": f.wr_subject.value,
|
||||||
|
"content": f.wr_content.value
|
||||||
|
},
|
||||||
|
dataType: "json",
|
||||||
|
async: false,
|
||||||
|
cache: false,
|
||||||
|
success: function (data, textStatus) {
|
||||||
|
subject = data.subject;
|
||||||
|
content = data.content;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (subject) {
|
||||||
|
alert("제목에 금지단어('" + subject + "')가 포함되어있습니다");
|
||||||
|
f.wr_subject.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (content) {
|
||||||
|
alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
|
||||||
|
if (typeof (ed_wr_content) != "undefined")
|
||||||
|
ed_wr_content.returnFalse();
|
||||||
|
else
|
||||||
|
f.wr_content.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementById("char_count")) {
|
||||||
|
if (char_min > 0 || char_max > 0) {
|
||||||
|
var cnt = parseInt(check_byte("wr_content", "char_count"));
|
||||||
|
if (char_min > 0 && char_min > cnt) {
|
||||||
|
alert("내용은 " + char_min + "글자 이상 쓰셔야 합니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (char_max > 0 && char_max < cnt) {
|
||||||
|
alert("내용은 " + char_max + "글자 이하로 쓰셔야 합니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php if ($w == '') { ?>
|
||||||
|
if (f.wr_type.value == 'UPLOAD') {
|
||||||
|
if (document.getElementById('wr_file').value == '') {
|
||||||
|
alert("업로드할 로그를 등록해 주시길 바랍니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else if (f.wr_type.value == 'URL') {
|
||||||
|
if (document.getElementById('wr_url').value == '') {
|
||||||
|
alert("등록할 로그 URL을 입력해 주시길 바랍니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<?php } ?>
|
||||||
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$('.view_image_area').on('change', function() {
|
$('.view_image_area').on('change', function () {
|
||||||
var image = $(this).val();
|
var image = $(this).val();
|
||||||
var type = $(this).attr('type');
|
var type = $(this).attr('type');
|
||||||
|
|
||||||
if(type == 'file') {
|
if (type == 'file') {
|
||||||
$('#wr_homepage').val('');
|
$('#wr_homepage').val('');
|
||||||
previewImage(this,'view_image');
|
previewImage(this, 'view_image');
|
||||||
} else {
|
} else {
|
||||||
$('#wr_file').replaceWith( $('#wr_file').clone(true) );
|
$('#wr_file').replaceWith($('#wr_file').clone(true));
|
||||||
|
|
||||||
checkImage(image, complete, '', 'view_image');
|
checkImage(image, complete, '', 'view_image');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function reset_image(previewId) {
|
function reset_image(previewId) {
|
||||||
var preview = document.getElementById(previewId);
|
var preview = document.getElementById(previewId);
|
||||||
var prevImg = document.getElementById("prev_" + previewId); //이전에 미리보기가 있다면 삭제
|
var prevImg = document.getElementById("prev_" + previewId); //이전에 미리보기가 있다면 삭제
|
||||||
if (prevImg) {
|
if (prevImg) {
|
||||||
preview.removeChild(prevImg);
|
preview.removeChild(prevImg);
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#wr_width').val('');
|
$('#wr_width').val('');
|
||||||
$('#wr_height').val('');
|
$('#wr_height').val('');
|
||||||
|
|
||||||
$('#view_image > span').text("");
|
$('#view_image > span').text("");
|
||||||
}
|
}
|
||||||
|
|
||||||
function previewImage(targetObj, previewId) {
|
function previewImage(targetObj, previewId) {
|
||||||
var preview = document.getElementById(previewId); //div id
|
var preview = document.getElementById(previewId); //div id
|
||||||
var ua = window.navigator.userAgent;
|
var ua = window.navigator.userAgent;
|
||||||
var files = targetObj.files;
|
var files = targetObj.files;
|
||||||
|
|
||||||
$('#view_image_loading').show();
|
$('#view_image_loading').show();
|
||||||
|
|
||||||
reset_image(previewId);
|
reset_image(previewId);
|
||||||
|
|
||||||
for ( var i = 0; i < files.length; i++) {
|
for (var i = 0; i < files.length; i++) {
|
||||||
|
|
||||||
var file = files[i];
|
var file = files[i];
|
||||||
|
|
||||||
var imageType = /image.*/; //이미지 파일일경우만.. 뿌려준다.
|
var imageType = /image.*/; //이미지 파일일경우만.. 뿌려준다.
|
||||||
if (!file.type.match(imageType)) {
|
if (!file.type.match(imageType)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var img = document.createElement("img");
|
var img = document.createElement("img");
|
||||||
img.id = "prev_" + previewId;
|
img.id = "prev_" + previewId;
|
||||||
img.classList.add("obj");
|
img.classList.add("obj");
|
||||||
img.file = file;
|
img.file = file;
|
||||||
|
|
||||||
if (window.FileReader) { // FireFox, Chrome, Opera 확인.
|
if (window.FileReader) { // FireFox, Chrome, Opera 확인.
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
reader.onloadend = (function(aImg) {
|
reader.onloadend = (function (aImg) {
|
||||||
return function(e) {
|
return function (e) {
|
||||||
aImg.src = e.target.result;
|
aImg.src = e.target.result;
|
||||||
complete('S', aImg.width, aImg.height);
|
complete('S', aImg.width, aImg.height);
|
||||||
$('#view_image_loading').hide();
|
$('#view_image_loading').hide();
|
||||||
preview.appendChild(img);
|
preview.appendChild(img);
|
||||||
};
|
};
|
||||||
})(img);
|
})(img);
|
||||||
reader.readAsDataURL(file);
|
reader.readAsDataURL(file);
|
||||||
} else { // safari is not supported FileReader
|
} else { // safari is not supported FileReader
|
||||||
//alert('not supported FileReader');
|
//alert('not supported FileReader');
|
||||||
if (!document.getElementById("sfr_preview_error_"
|
if (!document.getElementById("sfr_preview_error_"
|
||||||
+ previewId)) {
|
+ previewId)) {
|
||||||
var info = document.createElement("p");
|
var info = document.createElement("p");
|
||||||
info.id = "sfr_preview_error_" + previewId;
|
info.id = "sfr_preview_error_" + previewId;
|
||||||
info.innerHTML = "not supported FileReader";
|
info.innerHTML = "not supported FileReader";
|
||||||
preview.insertBefore(info, null);
|
preview.insertBefore(info, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(i > 0) {
|
if (i > 0) {
|
||||||
|
|
||||||
//preview.style.background="none";
|
//preview.style.background="none";
|
||||||
} else {
|
} else {
|
||||||
complete('F');
|
complete('F');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function checkImage(url, callback, timeout, previewId) {
|
function checkImage(url, callback, timeout, previewId) {
|
||||||
timeout = timeout || 5000;
|
timeout = timeout || 5000;
|
||||||
|
|
||||||
$('#view_image_loading').show();
|
|
||||||
|
|
||||||
var timedOut = false, timer;
|
$('#view_image_loading').show();
|
||||||
var img = new Image();
|
|
||||||
var preview = document.getElementById(previewId);
|
|
||||||
|
|
||||||
reset_image(previewId);
|
var timedOut = false, timer;
|
||||||
|
var img = new Image();
|
||||||
|
var preview = document.getElementById(previewId);
|
||||||
|
|
||||||
img.onerror = img.onabort = function() {
|
reset_image(previewId);
|
||||||
if (!timedOut) {
|
|
||||||
clearTimeout(timer);
|
|
||||||
callback("F");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
img.onload = function() {
|
|
||||||
if (!timedOut) {
|
|
||||||
clearTimeout(timer);
|
|
||||||
img.id = "prev_" + previewId;
|
|
||||||
img.classList.add("obj");
|
|
||||||
callback("S", img.width, img.height);
|
|
||||||
preview.appendChild(img);
|
|
||||||
$('#view_image_loading').hide();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
img.src = url;
|
|
||||||
|
|
||||||
timer = setTimeout(function() {
|
img.onerror = img.onabort = function () {
|
||||||
timedOut = true;
|
if (!timedOut) {
|
||||||
callback("F");
|
clearTimeout(timer);
|
||||||
}, timeout);
|
callback("F");
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
img.onload = function () {
|
||||||
|
if (!timedOut) {
|
||||||
|
clearTimeout(timer);
|
||||||
|
img.id = "prev_" + previewId;
|
||||||
|
img.classList.add("obj");
|
||||||
|
callback("S", img.width, img.height);
|
||||||
|
preview.appendChild(img);
|
||||||
|
$('#view_image_loading').hide();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
img.src = url;
|
||||||
|
|
||||||
function complete(message, w, h) {
|
timer = setTimeout(function () {
|
||||||
if(message == 'S') {
|
timedOut = true;
|
||||||
$('#wr_width').val(w);
|
callback("F");
|
||||||
$('#wr_height').val(h);
|
}, timeout);
|
||||||
$('#view_image > span').text("width : " + w + "px / height : " + h + "px");
|
}
|
||||||
} else {
|
|
||||||
$('#view_image > span').text("");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function fn_log_type(type) {
|
function complete(message, w, h) {
|
||||||
$('#add_'+type).siblings().hide();
|
if (message == 'S') {
|
||||||
$('#add_'+type).show();
|
$('#wr_width').val(w);
|
||||||
|
$('#wr_height').val(h);
|
||||||
$('#wr_url').val('');
|
$('#view_image > span').text("width : " + w + "px / height : " + h + "px");
|
||||||
$('#wr_file').replaceWith( $('#wr_file').clone(true) );
|
} else {
|
||||||
|
$('#view_image > span').text("");
|
||||||
reset_image('view_image');
|
}
|
||||||
}
|
}
|
||||||
</script>
|
function fn_log_type(type) {
|
||||||
|
$('#add_' + type).siblings().hide();
|
||||||
<script>
|
$('#add_' + type).show();
|
||||||
|
$('#wr_url').val('');
|
||||||
$('#fwrite select').change(function() {
|
$('#wr_file').replaceWith($('#wr_file').clone(true));
|
||||||
$('#fwrite select').find("option").attr('disabled', false);
|
reset_image('view_image');
|
||||||
$('#fwrite select').each(function() {
|
}
|
||||||
if($(this).val()) {
|
</script>
|
||||||
$('#fwrite select').not(this).find("option[value="+ $(this).val() + "]").attr('disabled', true);
|
<script>
|
||||||
}
|
$('#fwrite select').change(function () {
|
||||||
});
|
$('#fwrite select').find("option").attr('disabled', false);
|
||||||
});
|
$('#fwrite select').each(function () {
|
||||||
|
if ($(this).val()) {
|
||||||
|
$('#fwrite select').not(this).find("option[value=" + $(this).val() + "]").attr('disabled', true);
|
||||||
</script>
|
}
|
||||||
|
});
|
||||||
<?php } ?>
|
});
|
||||||
|
</script>
|
||||||
|
<?php }
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,34 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if ($is_comment_write) {
|
if ($is_comment_write) {
|
||||||
if($w == '') $w = 'c';
|
if ($w == '')
|
||||||
?>
|
$w = 'c';
|
||||||
<!-- 댓글 쓰기 시작 { -->
|
?>
|
||||||
<aside class="bo_vc_w" id="bo_vc_w_<?=$list_item['wr_id']?>">
|
<!-- 댓글 쓰기 시작 { -->
|
||||||
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
|
<aside class="bo_vc_w" id="bo_vc_w_<?= $list_item['wr_id'] ?>">
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);"
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
method="post" autocomplete="off">
|
||||||
<input type="hidden" name="wr_id" value="<?php echo $list_item['wr_id'] ?>">
|
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
<input type="hidden" name="wr_id" value="<?php echo $list_item['wr_id'] ?>">
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||||
|
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||||
|
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||||
|
|
||||||
<input type="hidden" name="wr_subject" value="<?=$member['mb_name'] ? $member['mb_name'] : "GUEST"?>" />
|
<input type="hidden" name="wr_subject" value="<?= $member['mb_name'] ? $member['mb_name'] : "GUEST" ?>" />
|
||||||
|
|
||||||
<div class="input-comment">
|
<div class="input-comment">
|
||||||
<textarea name="wr_content" required class="required" title="내용"></textarea>
|
<textarea name="wr_content" required class="required" title="내용"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<button type="submit" class="ui-comment-submit ui-btn">입력</button>
|
<button type="submit" class="ui-comment-submit ui-btn">입력</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</aside>
|
</aside>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,40 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$it = [];
|
$it = [];
|
||||||
$customer_sql = "";
|
$customer_sql = "";
|
||||||
$temp_wr_id = $comment_id;
|
$temp_wr_id = $comment_id;
|
||||||
$wr_num = $wr['wr_num'];
|
$wr_num = $wr['wr_num'];
|
||||||
if(!$wr_num) $wr_num = $comment['wr_num'];
|
if (!$wr_num)
|
||||||
|
$wr_num = $comment['wr_num'];
|
||||||
|
|
||||||
include_once($board_skin_path.'/write_update.inc.php');
|
include_once($board_skin_path . '/write_update.inc.php');
|
||||||
|
|
||||||
if($w != 'cu') {
|
if ($w != 'cu') {
|
||||||
$sql = " update {$write_table}
|
$sql = " update {$write_table}
|
||||||
set wr_subject = '{$wr_subject}'
|
set wr_subject = '{$wr_subject}'
|
||||||
{$customer_sql}
|
{$customer_sql}
|
||||||
where wr_id = '{$comment_id}' ";
|
where wr_id = '{$comment_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
} else {
|
} else {
|
||||||
$sql = " update {$write_table}
|
$sql = " update {$write_table}
|
||||||
set wr_id = '{$comment_id}'
|
set wr_id = '{$comment_id}'
|
||||||
{$memo_custom_sql}
|
{$memo_custom_sql}
|
||||||
where wr_id = '{$comment_id}' ";
|
where wr_id = '{$comment_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$original_write = sql_fetch("select mb_id, wr_subject from $write_table where wr_id = '$wr_id' ");
|
$original_write = sql_fetch("select mb_id, wr_subject from $write_table where wr_id = '$wr_id' ");
|
||||||
|
|
||||||
if($original_write['mb_id'] == $member['mb_id'] && ($original_write['wr_subject'] == '--|UPLOADING|--' || $original_write['wr_subject'] == '')) {
|
if ($original_write['mb_id'] == $member['mb_id'] && ($original_write['wr_subject'] == '--|UPLOADING|--' || $original_write['wr_subject'] == '')) {
|
||||||
// 췩 상태가 해제가 안되었을 때
|
// 췩 상태가 해제가 안되었을 때
|
||||||
$sql = " update {$write_table}
|
$sql = " update {$write_table}
|
||||||
set wr_subject = '{$character['ch_name']}', wr_ing = '0', wr_datetime = '".date('Y-m-d H:i:s')."'
|
set wr_subject = '{$character['ch_name']}', wr_ing = '0', wr_datetime = '" . date('Y-m-d H:i:s') . "'
|
||||||
where wr_id = '{$wr_id}' ";
|
where wr_id = '{$wr_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
goto_url('./board.php?bo_table='.$bo_table.'&'.$qstr.'&#c_'.$comment_id);
|
goto_url('./board.php?bo_table=' . $bo_table . '&' . $qstr . '&#c_' . $comment_id);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if($w != 'cu') {
|
if ($w != 'cu') {
|
||||||
|
$log = "";
|
||||||
$log = "";
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
@ -1,23 +1,24 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$customer_sql = "";
|
$customer_sql = "";
|
||||||
$temp_wr_id = $wr_id;
|
$temp_wr_id = $wr_id;
|
||||||
if(!$wr_num) $wr_num = $write['wr_num'];
|
if (!$wr_num)
|
||||||
|
$wr_num = $write['wr_num'];
|
||||||
|
|
||||||
|
|
||||||
if($w == 'u') {
|
if ($w == 'u') {
|
||||||
include_once($board_skin_path.'/write_update.inc.php');
|
include_once($board_skin_path . '/write_update.inc.php');
|
||||||
$sql = " update {$write_table}
|
$sql = " update {$write_table}
|
||||||
set wr_id = '{$wr_id}'
|
set wr_id = '{$wr_id}'
|
||||||
{$customer_sql}
|
{$customer_sql}
|
||||||
where wr_id = '{$wr_id}' ";
|
where wr_id = '{$wr_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($file_upload_msg) {
|
if ($file_upload_msg) {
|
||||||
alert($file_upload_msg, G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table);
|
alert($file_upload_msg, G5_HTTP_BBS_URL . '/board.php?bo_table=' . $bo_table);
|
||||||
} else {
|
} else {
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.$qstr."#log_".$wr_id);
|
goto_url(G5_HTTP_BBS_URL . '/board.php?bo_table=' . $bo_table . $qstr . "#log_" . $wr_id);
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
// 회원수는 $row['mb_cnt'];
|
// 회원수는 $row['mb_cnt'];
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $connect_skin_url . '/style.css">', 0);
|
||||||
?>
|
|
||||||
|
|
||||||
<?php echo $row['total_cnt'] ?>
|
echo $row['total_cnt'];
|
||||||
|
|
|
||||||
|
|
@ -1,46 +1,49 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $connect_skin_url . '/style.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 현재접속자 목록 시작 { -->
|
<!-- 현재접속자 목록 시작 { -->
|
||||||
<div class="tbl_head01 tbl_wrap">
|
<div class="tbl_head01 tbl_wrap">
|
||||||
<table id="current_connect_tbl" class="theme-list">
|
<table id="current_connect_tbl" class="theme-list">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 80px;" />
|
<col style="width: 80px;" />
|
||||||
<col style="width: 120px;" />
|
<col style="width: 120px;" />
|
||||||
<col />
|
<col />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">번호</th>
|
<th scope="col">번호</th>
|
||||||
<th scope="col">이름</th>
|
<th scope="col">이름</th>
|
||||||
<th scope="col">위치</th>
|
<th scope="col">위치</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $i<count($list); $i++) {
|
for ($i = 0; $i < count($list); $i++) {
|
||||||
//$location = conv_content($list[$i]['lo_location'], 0);
|
//$location = conv_content($list[$i]['lo_location'], 0);
|
||||||
$location = $list[$i]['lo_location'];
|
$location = $list[$i]['lo_location'];
|
||||||
// 최고관리자에게만 허용
|
// 최고관리자에게만 허용
|
||||||
// 이 조건문은 가능한 변경하지 마십시오.
|
// 이 조건문은 가능한 변경하지 마십시오.
|
||||||
if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "<a href=\"".$list[$i]['lo_url']."\">".$location."</a>";
|
if ($list[$i]['lo_url'] && $is_admin == 'super')
|
||||||
else $display_location = $location;
|
$display_location = "<a href=\"" . $list[$i]['lo_url'] . "\">" . $location . "</a>";
|
||||||
?>
|
else
|
||||||
<tr>
|
$display_location = $location;
|
||||||
<td class="td_num txt-center"><?php echo $list[$i]['num'] ?></td>
|
?>
|
||||||
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
|
<tr>
|
||||||
<td><?php echo $display_location ?></td>
|
<td class="td_num txt-center"><?php echo $list[$i]['num'] ?></td>
|
||||||
</tr>
|
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
|
||||||
<?php
|
<td><?php echo $display_location ?></td>
|
||||||
}
|
</tr>
|
||||||
if ($i == 0)
|
<?php
|
||||||
echo "<tr><td colspan=\"3\" class=\"empty_table\">현재 접속자가 없습니다.</td></tr>";
|
}
|
||||||
?>
|
if ($i == 0)
|
||||||
</tbody>
|
echo "<tr><td colspan=\"3\" class=\"empty_table\">현재 접속자가 없습니다.</td></tr>";
|
||||||
</table>
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<!-- } 현재접속자 목록 끝 -->
|
<!-- } 현재접속자 목록 끝 -->
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$content_skin_url.'/style.css">', 0);
|
exit; // 개별 페이지 접근 불가
|
||||||
?>
|
add_stylesheet('<link rel="stylesheet" href="' . $content_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
<?php echo $str; ?>
|
echo $str;
|
||||||
|
|
|
||||||
|
|
@ -1,136 +1,137 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$faq_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $faq_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
if ($admin_href)
|
if ($admin_href)
|
||||||
echo '<div class="faq_admin"><a href="'.$admin_href.'" class="btn_admin">FAQ 수정</a></div>';
|
echo '<div class="faq_admin"><a href="' . $admin_href . '" class="btn_admin">FAQ 수정</a></div>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- FAQ 시작 { -->
|
<!-- FAQ 시작 { -->
|
||||||
<?php
|
<?php
|
||||||
if ($himg_src)
|
if ($himg_src)
|
||||||
echo '<div id="faq_himg" class="faq_img"><img src="'.$himg_src.'" alt=""></div>';
|
echo '<div id="faq_himg" class="faq_img"><img src="' . $himg_src . '" alt=""></div>';
|
||||||
|
|
||||||
// 상단 HTML
|
// 상단 HTML
|
||||||
echo '<div id="faq_hhtml">'.conv_content($fm['fm_head_html'], 1).'</div>';
|
echo '<div id="faq_hhtml">' . conv_content($fm['fm_head_html'], 1) . '</div>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if( count($faq_master_list) ){
|
if (count($faq_master_list)) {
|
||||||
?>
|
?>
|
||||||
<nav id="bo_cate">
|
<nav id="bo_cate">
|
||||||
<h2>자주하시는질문 분류</h2>
|
<h2>자주하시는질문 분류</h2>
|
||||||
<ul id="bo_cate_ul">
|
<ul id="bo_cate_ul">
|
||||||
<?php
|
<?php
|
||||||
foreach( $faq_master_list as $v ){
|
foreach ($faq_master_list as $v) {
|
||||||
$category_msg = '';
|
$category_msg = '';
|
||||||
$category_option = '';
|
$category_option = '';
|
||||||
if($v['fm_id'] == $fm_id){ // 현재 선택된 카테고리라면
|
if ($v['fm_id'] == $fm_id) { // 현재 선택된 카테고리라면
|
||||||
$category_option = ' id="bo_cate_on"';
|
$category_option = ' id="bo_cate_on"';
|
||||||
$category_msg = '<span class="sound_only">열린 분류 </span>';
|
$category_msg = '<span class="sound_only">열린 분류 </span>';
|
||||||
}
|
|
||||||
?>
|
|
||||||
<li><a href="<?php echo $category_href;?>?fm_id=<?php echo $v['fm_id'];?>" <?php echo $category_option;?> ><?php echo $category_msg.$v['fm_subject'];?></a></li>
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<li><a href="<?php echo $category_href; ?>?fm_id=<?php echo $v['fm_id']; ?>" <?php echo $category_option; ?>><?php echo $category_msg . $v['fm_subject']; ?></a></li>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="faq_wrap" class="faq_<?php echo $fm_id; ?>">
|
<div id="faq_wrap" class="faq_<?php echo $fm_id; ?>">
|
||||||
<?php // FAQ 내용
|
<?php // FAQ 내용
|
||||||
if( count($faq_list) ){
|
if (count($faq_list)) {
|
||||||
?>
|
?>
|
||||||
<section id="faq_con">
|
<section id="faq_con">
|
||||||
<h2><?php echo $g5['title']; ?> 목록</h2>
|
<h2><?php echo $g5['title']; ?> 목록</h2>
|
||||||
<ol>
|
<ol>
|
||||||
<?php
|
<?php
|
||||||
foreach($faq_list as $key=>$v){
|
foreach ($faq_list as $key => $v) {
|
||||||
if(empty($v))
|
if (empty($v))
|
||||||
continue;
|
continue;
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<h3><a href="#none" onclick="return faq_open(this);"><?php echo conv_content($v['fa_subject'], 1); ?></a></h3>
|
<h3><a href="#none" onclick="return faq_open(this);"><?php echo conv_content($v['fa_subject'], 1); ?></a></h3>
|
||||||
<div class="con_inner">
|
<div class="con_inner">
|
||||||
<?php echo conv_content($v['fa_content'], 1); ?>
|
<?php echo conv_content($v['fa_content'], 1); ?>
|
||||||
<div class="con_closer"><button type="button" class="closer_btn">닫기</button></div>
|
<div class="con_closer"><button type="button" class="closer_btn">닫기</button></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if ($stx) {
|
||||||
|
echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';
|
||||||
} else {
|
} else {
|
||||||
if($stx){
|
echo '<div class="empty_list">등록된 FAQ가 없습니다.';
|
||||||
echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';
|
if ($is_admin)
|
||||||
} else {
|
echo '<br><a href="' . G5_ADMIN_URL . '/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
|
||||||
echo '<div class="empty_list">등록된 FAQ가 없습니다.';
|
echo '</div>';
|
||||||
if($is_admin)
|
|
||||||
echo '<br><a href="'.G5_ADMIN_URL.'/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php echo get_paging($page_rows, $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr.'&page='); ?>
|
<?php echo get_paging($page_rows, $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&page='); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 하단 HTML
|
// 하단 HTML
|
||||||
echo '<div id="faq_thtml">'.conv_content($fm['fm_tail_html'], 1).'</div>';
|
echo '<div id="faq_thtml">' . conv_content($fm['fm_tail_html'], 1) . '</div>';
|
||||||
|
|
||||||
if ($timg_src)
|
if ($timg_src)
|
||||||
echo '<div id="faq_timg" class="faq_img"><img src="'.$timg_src.'" alt=""></div>';
|
echo '<div id="faq_timg" class="faq_img"><img src="' . $timg_src . '" alt=""></div>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<fieldset id="faq_sch">
|
<fieldset id="faq_sch">
|
||||||
<legend>FAQ 검색</legend>
|
<legend>FAQ 검색</legend>
|
||||||
|
|
||||||
<form name="faq_search_form" method="get">
|
<form name="faq_search_form" method="get">
|
||||||
<input type="hidden" name="fm_id" value="<?php echo $fm_id;?>">
|
<input type="hidden" name="fm_id" value="<?php echo $fm_id; ?>">
|
||||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||||
<input type="text" name="stx" value="<?php echo $stx;?>" required id="stx" class="frm_input required" size="15" maxlength="15">
|
<input type="text" name="stx" value="<?php echo $stx; ?>" required id="stx" class="frm_input required" size="15"
|
||||||
|
maxlength="15">
|
||||||
<input type="submit" value="검색" class="btn_submit">
|
<input type="submit" value="검색" class="btn_submit">
|
||||||
</form>
|
</form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!-- } FAQ 끝 -->
|
<!-- } FAQ 끝 -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($admin_href)
|
if ($admin_href)
|
||||||
echo '<div class="faq_admin"><a href="'.$admin_href.'" class="btn_admin">FAQ 수정</a></div>';
|
echo '<div class="faq_admin"><a href="' . $admin_href . '" class="btn_admin">FAQ 수정</a></div>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function () {
|
||||||
$(".closer_btn").on("click", function() {
|
$(".closer_btn").on("click", function () {
|
||||||
$(this).closest(".con_inner").slideToggle();
|
$(this).closest(".con_inner").slideToggle();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function faq_open(el)
|
function faq_open(el) {
|
||||||
{
|
|
||||||
var $con = $(el).closest("li").find(".con_inner");
|
var $con = $(el).closest("li").find(".con_inner");
|
||||||
|
|
||||||
if($con.is(":visible")) {
|
if ($con.is(":visible")) {
|
||||||
$con.slideUp();
|
$con.slideUp();
|
||||||
} else {
|
} else {
|
||||||
$("#faq_con .con_inner:visible").css("display", "none");
|
$("#faq_con .con_inner:visible").css("display", "none");
|
||||||
|
|
||||||
$con.slideDown(
|
$con.slideDown(
|
||||||
function() {
|
function () {
|
||||||
// 이미지 리사이즈
|
// 이미지 리사이즈
|
||||||
$con.viewimageresize2();
|
$con.viewimageresize2();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,52 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
|
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
|
||||||
<div class="lt">
|
<div class="lt">
|
||||||
<strong class="lt_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
|
<strong class="lt_title"><a
|
||||||
<ul>
|
href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
|
||||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
<ul>
|
||||||
<li>
|
<?php for ($i = 0; $i < count($list); $i++) { ?>
|
||||||
<?php
|
<li>
|
||||||
//echo $list[$i]['icon_reply']." ";
|
<?php
|
||||||
echo "<a href=\"".$list[$i]['href']."\">";
|
//echo $list[$i]['icon_reply']." ";
|
||||||
if ($list[$i]['is_notice'])
|
echo "<a href=\"" . $list[$i]['href'] . "\">";
|
||||||
echo "<strong>".$list[$i]['subject']."</strong>";
|
if ($list[$i]['is_notice'])
|
||||||
else
|
echo "<strong>" . $list[$i]['subject'] . "</strong>";
|
||||||
echo $list[$i]['subject'];
|
else
|
||||||
|
echo $list[$i]['subject'];
|
||||||
|
|
||||||
if ($list[$i]['comment_cnt'])
|
if ($list[$i]['comment_cnt'])
|
||||||
echo $list[$i]['comment_cnt'];
|
echo $list[$i]['comment_cnt'];
|
||||||
|
|
||||||
echo "</a>";
|
echo "</a>";
|
||||||
|
|
||||||
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
||||||
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||||
|
|
||||||
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
|
if (isset($list[$i]['icon_new']))
|
||||||
if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
|
echo " " . $list[$i]['icon_new'];
|
||||||
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
|
if (isset($list[$i]['icon_hot']))
|
||||||
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
|
echo " " . $list[$i]['icon_hot'];
|
||||||
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
|
if (isset($list[$i]['icon_file']))
|
||||||
?>
|
echo " " . $list[$i]['icon_file'];
|
||||||
</li>
|
if (isset($list[$i]['icon_link']))
|
||||||
<?php } ?>
|
echo " " . $list[$i]['icon_link'];
|
||||||
|
if (isset($list[$i]['icon_secret']))
|
||||||
|
echo " " . $list[$i]['icon_secret'];
|
||||||
|
?>
|
||||||
|
</li>
|
||||||
|
<?php } ?>
|
||||||
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
|
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
|
||||||
<li>게시물이 없습니다.</li>
|
<li>게시물이 없습니다.</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
|
<div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span
|
||||||
|
class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->
|
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,49 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="rolling-latest">
|
<div class="rolling-latest">
|
||||||
<div class="title">NOTICE : </div>
|
<div class="title">NOTICE : </div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<ul>
|
<ul>
|
||||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
<?php for ($i = 0; $i < count($list); $i++) { ?>
|
||||||
<li>
|
<li>
|
||||||
<?php
|
<?php
|
||||||
//echo $list[$i]['icon_reply']." ";
|
//echo $list[$i]['icon_reply']." ";
|
||||||
echo "<a href=\"".$list[$i]['href']."\">";
|
echo "<a href=\"" . $list[$i]['href'] . "\">";
|
||||||
if ($list[$i]['is_notice'])
|
if ($list[$i]['is_notice'])
|
||||||
echo "<strong>".$list[$i]['subject']."</strong>";
|
echo "<strong>" . $list[$i]['subject'] . "</strong>";
|
||||||
else
|
else
|
||||||
echo $list[$i]['subject'];
|
echo $list[$i]['subject'];
|
||||||
|
|
||||||
if ($list[$i]['comment_cnt'])
|
if ($list[$i]['comment_cnt'])
|
||||||
echo $list[$i]['comment_cnt'];
|
echo $list[$i]['comment_cnt'];
|
||||||
|
|
||||||
echo "</a>";
|
echo "</a>";
|
||||||
|
|
||||||
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
||||||
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||||
|
|
||||||
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
|
if (isset($list[$i]['icon_new']))
|
||||||
if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
|
echo " " . $list[$i]['icon_new'];
|
||||||
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
|
if (isset($list[$i]['icon_hot']))
|
||||||
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
|
echo " " . $list[$i]['icon_hot'];
|
||||||
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
|
if (isset($list[$i]['icon_file']))
|
||||||
?>
|
echo " " . $list[$i]['icon_file'];
|
||||||
</li>
|
if (isset($list[$i]['icon_link']))
|
||||||
<?php } ?>
|
echo " " . $list[$i]['icon_link'];
|
||||||
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
|
if (isset($list[$i]['icon_secret']))
|
||||||
<li>Comming Soon...</li>
|
echo " " . $list[$i]['icon_secret'];
|
||||||
<?php } ?>
|
?>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
<?php } ?>
|
||||||
</div>
|
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
|
||||||
|
<li>Comming Soon...</li>
|
||||||
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,217 +1,239 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
//include_once($board_skin_path."/moonday.php"); // 석봉운님의 음력날짜 함수
|
//include_once($board_skin_path."/moonday.php"); // 석봉운님의 음력날짜 함수
|
||||||
|
|
||||||
if (preg_match('/%/', $width)) {
|
if (preg_match('/%/', $width)) {
|
||||||
$col_width = "14%"; //표의 가로 폭이 100보다 크면 픽셀값입력
|
$col_width = "14%"; //표의 가로 폭이 100보다 크면 픽셀값입력
|
||||||
} else{
|
} else {
|
||||||
$col_width = round($width/7); //표의 가로 폭이 100보다 작거나 같으면 백분율 값을 입력
|
$col_width = round($width / 7); //표의 가로 폭이 100보다 작거나 같으면 백분율 값을 입력
|
||||||
}
|
}
|
||||||
$col_height= 30 ;//내용 들어갈 사각공간의 세로길이를 가로 폭과 같도록
|
$col_height = 30;//내용 들어갈 사각공간의 세로길이를 가로 폭과 같도록
|
||||||
$today = getdate();
|
$today = getdate();
|
||||||
$b_mon = $today['mon'];
|
$b_mon = $today['mon'];
|
||||||
$b_day = $today['mday'];
|
$b_day = $today['mday'];
|
||||||
$b_year = $today['year'];
|
$b_year = $today['year'];
|
||||||
if ($year < 1) { // 오늘의 달력 일때
|
if ($year < 1) { // 오늘의 달력 일때
|
||||||
$month = $b_mon;
|
$month = $b_mon;
|
||||||
$mday = $b_day;
|
$mday = $b_day;
|
||||||
$year = $b_year;
|
$year = $b_year;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$year) $year = date("Y");
|
if (!$year)
|
||||||
$file_index = $board_skin_path."/day"; ### 기념일 폴더 위치 지정
|
$year = date("Y");
|
||||||
|
$file_index = $board_skin_path . "/day"; ### 기념일 폴더 위치 지정
|
||||||
|
|
||||||
### 양력 기념일 파일 지정 : 해당년도 파일이 없으면 기본파일(solar.txt)을 불러온다
|
### 양력 기념일 파일 지정 : 해당년도 파일이 없으면 기본파일(solar.txt)을 불러온다
|
||||||
//$dayfile = file($file_index."/solar.txt");
|
//$dayfile = file($file_index."/solar.txt");
|
||||||
|
|
||||||
$lastday=array(0,31,28,31,30,31,30,31,31,30,31,30,31);
|
$lastday = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
|
||||||
if ($year%4 == 0) $lastday[2] = 29;
|
if ($year % 4 == 0)
|
||||||
$dayoftheweek = date("w", mktime (0,0,0,$month,1,$year));
|
$lastday[2] = 29;
|
||||||
|
$dayoftheweek = date("w", mktime(0, 0, 0, $month, 1, $year));
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
|
||||||
if($month=="1")$month_m="January";
|
if ($month == "1")
|
||||||
if($month=="2")$month_m="February";
|
$month_m = "January";
|
||||||
if($month=="3")$month_m="March";
|
if ($month == "2")
|
||||||
if($month=="4")$month_m="April";
|
$month_m = "February";
|
||||||
if($month=="5")$month_m="May";
|
if ($month == "3")
|
||||||
if($month=="6")$month_m="June";
|
$month_m = "March";
|
||||||
if($month=="7")$month_m="July";
|
if ($month == "4")
|
||||||
if($month=="8")$month_m="August";
|
$month_m = "April";
|
||||||
if($month=="9")$month_m="September";
|
if ($month == "5")
|
||||||
if($month=="10")$month_m="October";
|
$month_m = "May";
|
||||||
if($month=="11")$month_m="November";
|
if ($month == "6")
|
||||||
if($month=="12")$month_m="December";
|
$month_m = "June";
|
||||||
?>
|
if ($month == "7")
|
||||||
|
$month_m = "July";
|
||||||
|
if ($month == "8")
|
||||||
|
$month_m = "August";
|
||||||
|
if ($month == "9")
|
||||||
|
$month_m = "September";
|
||||||
|
if ($month == "10")
|
||||||
|
$month_m = "October";
|
||||||
|
if ($month == "11")
|
||||||
|
$month_m = "November";
|
||||||
|
if ($month == "12")
|
||||||
|
$month_m = "December";
|
||||||
|
?>
|
||||||
<div id="bo_list">
|
<div id="bo_list">
|
||||||
<div class="theme-box cal-nav">
|
<div class="theme-box cal-nav">
|
||||||
<h2>
|
<h2>
|
||||||
<a href="<?php echo G5_BBS_URL."/board.php?bo_table=".$bo_table; ?>" onfocus="this.blur()"><span title="<?php echo $year ?>년 <?php echo $month ?>월"><?=$month_m?></span>
|
<a href="<?php echo G5_BBS_URL . "/board.php?bo_table=" . $bo_table; ?>" onfocus="this.blur()"><span
|
||||||
</a>
|
title="<?php echo $year ?>년 <?php echo $month ?>월"><?= $month_m ?></span>
|
||||||
</h2>
|
</a>
|
||||||
</div>
|
</h2>
|
||||||
<table border="0" cellspacing="1" class="theme-list">
|
</div>
|
||||||
<thead>
|
<table border="0" cellspacing="1" class="theme-list">
|
||||||
<tr align="center">
|
<thead>
|
||||||
<th class="sun">S</th>
|
<tr align="center">
|
||||||
<th>M</th>
|
<th class="sun">S</th>
|
||||||
<th>T</th>
|
<th>M</th>
|
||||||
<th>W</th>
|
<th>T</th>
|
||||||
<th>T</th>
|
<th>W</th>
|
||||||
<th>F</th>
|
<th>T</th>
|
||||||
<th class="sat">S</th>
|
<th>F</th>
|
||||||
</tr>
|
<th class="sat">S</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
<?php
|
<tbody>
|
||||||
$cday = 1;
|
<?php
|
||||||
$sel_mon = sprintf("%02d",$month);
|
$cday = 1;
|
||||||
$table_name="avo_write_".$bo_table;
|
$sel_mon = sprintf("%02d", $month);
|
||||||
$query = "SELECT * FROM $table_name WHERE left(wr_1,6) <= '$year$sel_mon' and left(wr_2,6) >= '$year$sel_mon' ORDER BY wr_id ASC";
|
$table_name = "avo_write_" . $bo_table;
|
||||||
$result = sql_query($query);
|
$query = "SELECT * FROM $table_name WHERE left(wr_1,6) <= '$year$sel_mon' and left(wr_2,6) >= '$year$sel_mon' ORDER BY wr_id ASC";
|
||||||
$j=0; // layer id
|
$result = sql_query($query);
|
||||||
|
$j = 0; // layer id
|
||||||
// 내용을 보여주는 부분
|
// 내용을 보여주는 부분
|
||||||
while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자열 만들기..
|
while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자열 만들기..
|
||||||
if( substr($row[wr_1],0,6) < $year.$sel_mon ) {
|
if (substr($row[wr_1], 0, 6) < $year . $sel_mon) {
|
||||||
$start_day =1;
|
$start_day = 1;
|
||||||
$start_day= (int)$start_day;
|
$start_day = (int) $start_day;
|
||||||
} else {
|
} else {
|
||||||
$start_day = substr($row[wr_1],6,2);
|
$start_day = substr($row[wr_1], 6, 2);
|
||||||
$start_day= (int)$start_day;
|
$start_day = (int) $start_day;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( substr($row[wr_2],0,6) > $year.$sel_mon ) {
|
if (substr($row[wr_2], 0, 6) > $year . $sel_mon) {
|
||||||
$end_day = $lastday[$month];
|
$end_day = $lastday[$month];
|
||||||
$end_day= (int)$end_day;
|
$end_day = (int) $end_day;
|
||||||
} else {
|
} else {
|
||||||
$end_day = substr($row[wr_2],6,2);
|
$end_day = substr($row[wr_2], 6, 2);
|
||||||
$end_day= (int)$end_day;
|
$end_day = (int) $end_day;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 아이디에 따라 다른 아이콘이미지 출력 하고 싶을때 ///주석을 해제
|
// 아이디에 따라 다른 아이콘이미지 출력 하고 싶을때 ///주석을 해제
|
||||||
$imgown = 'icon';
|
$imgown = 'icon';
|
||||||
|
|
||||||
for ($i = $start_day ; $i <= $end_day; $i++) {
|
for ($i = $start_day; $i <= $end_day; $i++) {
|
||||||
if (strlen($row[wr_3]) > 0) { // 입력된 아이콘 값이 있을 때
|
if (strlen($row[wr_3]) > 0) { // 입력된 아이콘 값이 있을 때
|
||||||
$imgown = $row[wr_3] ;
|
$imgown = $row[wr_3];
|
||||||
}
|
}
|
||||||
|
|
||||||
$j++; // layer ID
|
$j++; // layer ID
|
||||||
|
|
||||||
|
// subject length cut
|
||||||
|
|
||||||
|
$showLayer = " onmouseover=\"PopupShow('" . $j . "')\" onmouseout=\"PopupHide('" . $j . "')\" ";
|
||||||
|
$html_day[$i] .= "<a style='display:block;' class='txt-default " . $imgown . "'href='" . G5_BBS_URL . "/board.php?bo_table=$bo_table&year=$year&month=$month&wr_id=$row[wr_id]&sc_no=$sc_no' id='subject_" . $j . "' " . $showLayer . ">" . $i . "</a>";
|
||||||
|
?>
|
||||||
|
<!-- 뷰 팝업레이어 -->
|
||||||
|
<div id="popup_<?php echo $j ?>" class="popup_layer">
|
||||||
|
<?php
|
||||||
|
$html = 0;
|
||||||
|
if (strstr($row[wr_option], "html1"))
|
||||||
|
$html = 1;
|
||||||
|
else if (strstr($row[wr_option], "html2"))
|
||||||
|
$html = 2;
|
||||||
|
|
||||||
// subject length cut
|
$viewlist = cut_str(conv_content($row[wr_content], $html), 200, "…");
|
||||||
|
echo "<p class='popup_title'>" . $row['wr_subject'] . "</p><p class='popup_cont'>" . $viewlist . "</p>";
|
||||||
$showLayer=" onmouseover=\"PopupShow('".$j."')\" onmouseout=\"PopupHide('".$j."')\" ";
|
?>
|
||||||
$html_day[$i].= "<a style='display:block;' class='txt-default ".$imgown."'href='".G5_BBS_URL."/board.php?bo_table=$bo_table&year=$year&month=$month&wr_id=$row[wr_id]&sc_no=$sc_no' id='subject_".$j."' ".$showLayer.">".$i."</a>";
|
</div>
|
||||||
?>
|
<?php
|
||||||
<!-- 뷰 팝업레이어 -->
|
$sc_id = $row[wr_id];
|
||||||
<div id="popup_<?php echo $j ?>" class="popup_layer">
|
}
|
||||||
<?php
|
}
|
||||||
$html = 0;
|
|
||||||
if (strstr($row[wr_option], "html1"))
|
|
||||||
$html = 1;
|
|
||||||
else if (strstr($row[wr_option], "html2"))
|
|
||||||
$html = 2;
|
|
||||||
|
|
||||||
$viewlist = cut_str(conv_content($row[wr_content], $html),200,"…");
|
// 달력의 틀을 보여주는 부분
|
||||||
echo "<p class='popup_title'>".$row['wr_subject']."</p><p class='popup_cont'>".$viewlist."</p>";
|
|
||||||
?>
|
$temp = 7 - (($lastday[$month] + $dayoftheweek) % 7);
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
$sc_id = $row[wr_id];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 달력의 틀을 보여주는 부분
|
if ($temp == 7)
|
||||||
|
$temp = 0;
|
||||||
|
$lastcount = $lastday[$month] + $dayoftheweek + $temp;
|
||||||
|
|
||||||
$temp = 7- (($lastday[$month]+$dayoftheweek)%7);
|
for ($iz = 1; $iz <= $lastcount; $iz++) { // 42번을 칠하게 된다.
|
||||||
|
$bgcolor = "days"; // 쭉 흰색으로 칠하고
|
||||||
|
if ($b_year == $year && $b_mon == $month && $b_day == $cday)
|
||||||
|
$bgcolor = "today"; // "#DFFDDF"; // 오늘날짜 연두색으로 표기
|
||||||
|
if (($iz % 7) == 1)
|
||||||
|
echo ("<tr>"); // 주당 7개씩 한쎌씩을 쌓는다.
|
||||||
|
if ($dayoftheweek < $iz && $iz <= $lastday[$month] + $dayoftheweek) {
|
||||||
|
// 전체 루프안에서 숫자가 들어가는 셀들만 해당됨
|
||||||
|
// 즉 11월 달에서 1일부터 30 일까지만 해당
|
||||||
|
$daytext = "$cday"; // $cday 는 숫자 예> 11월달은 1~ 30일 까지
|
||||||
|
//$daytext 은 셀에 써질 날짜 숫자 넣을 공간
|
||||||
|
|
||||||
|
// 여기까지 숫자와 들어갈 내용에 대한 변수들의 세팅이 끝나고
|
||||||
|
// 이제 여기 부터 직접 셀이 그려지면서 그 안에 내용이 들어 간다.
|
||||||
|
echo ("<td width=$col_width height=$col_height class='$bgcolor' valign='top'>");
|
||||||
|
|
||||||
if ($temp == 7) $temp = 0;
|
$fr_date = $year . sprintf("%02d", $month) . sprintf("%02d", $cday);
|
||||||
$lastcount = $lastday[$month]+$dayoftheweek + $temp;
|
|
||||||
|
|
||||||
for ($iz = 1; $iz <= $lastcount; $iz++) { // 42번을 칠하게 된다.
|
// 기념일 파일 내용 비교위한 변수 선언, 월과 일을 두자리 포맷으로 고정
|
||||||
$bgcolor = "days"; // 쭉 흰색으로 칠하고
|
if (strlen($month) == 1) {
|
||||||
if ($b_year==$year && $b_mon==$month && $b_day==$cday) $bgcolor = "today"; // "#DFFDDF"; // 오늘날짜 연두색으로 표기
|
$monthp = "0" . $month;
|
||||||
if (($iz%7) == 1) echo ("<tr>"); // 주당 7개씩 한쎌씩을 쌓는다.
|
} else {
|
||||||
if ($dayoftheweek < $iz && $iz <= $lastday[$month]+$dayoftheweek) {
|
$monthp = $month;
|
||||||
// 전체 루프안에서 숫자가 들어가는 셀들만 해당됨
|
}
|
||||||
// 즉 11월 달에서 1일부터 30 일까지만 해당
|
if (strlen($cday) == 1) {
|
||||||
$daytext = "$cday"; // $cday 는 숫자 예> 11월달은 1~ 30일 까지
|
$cdayp = "0" . $cday;
|
||||||
//$daytext 은 셀에 써질 날짜 숫자 넣을 공간
|
} else {
|
||||||
|
$cdayp = $cday;
|
||||||
|
}
|
||||||
|
$memday = $year . $monthp . $cdayp;
|
||||||
|
$daycont = "";
|
||||||
|
|
||||||
// 여기까지 숫자와 들어갈 내용에 대한 변수들의 세팅이 끝나고
|
// 기념일(양력) 표시
|
||||||
// 이제 여기 부터 직접 셀이 그려지면서 그 안에 내용이 들어 간다.
|
/*
|
||||||
echo ("<td width=$col_width height=$col_height class='$bgcolor' valign='top'>");
|
for($i=0 ; $i < sizeof($dayfile) ; $i++) { // 파일 첫 행부터 끝행까지 루프
|
||||||
|
$arrDay = explode("|", $dayfile[$i]);
|
||||||
|
if($memday == $year.$arrDay[0]) {
|
||||||
|
$daycont = $arrDay[1];
|
||||||
|
$daycontcolor = $arrDay[2];
|
||||||
|
if(substr($arrDay[2],0,3)=="red") $daycolor = "red"; // 공휴일은 날짜를 빨간색으로 표시
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
// 석봉운님의 음력날짜 변수선언
|
||||||
|
$myarray = soltolun($year,$month,$cday);
|
||||||
|
if ($myarray[day]==1 || $myarray[day]==11 || $myarray[day]==21) {
|
||||||
|
$moonday ="<font color='gray'> (음)$myarray[month].$myarray[day]$myarray[leap]</font>";
|
||||||
|
} else {
|
||||||
|
$moonday="";
|
||||||
|
}
|
||||||
|
|
||||||
|
include($file_index."/lunar.txt"); ### 음력 기념일 파일 지정
|
||||||
|
|
||||||
$fr_date = $year.sprintf("%02d",$month).sprintf("%02d",$cday);
|
if ($annivmoonday&&$daycont) $blank="<br />"; // 음력절기와 양력기념일이 동시에 있으면 한칸 띔
|
||||||
|
else $blank="";
|
||||||
|
*/
|
||||||
|
if (!$html_day[$cday]) {
|
||||||
|
echo $daytext;
|
||||||
|
}
|
||||||
|
echo $html_day[$cday];
|
||||||
|
echo ("</td>"); // 한칸을 마무리
|
||||||
|
$cday++; // 날짜를 카운팅
|
||||||
|
}
|
||||||
|
// 유효날짜가 아니면 그냥 회색을 칠한다.
|
||||||
|
else {
|
||||||
|
echo (" <td width=$col_width height=$col_height class='noday'> </td>");
|
||||||
|
}
|
||||||
|
if (($iz % 7) == 0)
|
||||||
|
echo (" </tr>");
|
||||||
|
|
||||||
// 기념일 파일 내용 비교위한 변수 선언, 월과 일을 두자리 포맷으로 고정
|
} // 반복구문이 끝남
|
||||||
if (strlen($month) == 1) {
|
?>
|
||||||
$monthp = "0".$month ;
|
</tbody>
|
||||||
} else {
|
</table>
|
||||||
$monthp = $month ;
|
</div>
|
||||||
}
|
|
||||||
if (strlen($cday) == 1) {
|
|
||||||
$cdayp = "0".$cday ;
|
|
||||||
} else {
|
|
||||||
$cdayp = $cday ;
|
|
||||||
}
|
|
||||||
$memday = $year.$monthp.$cdayp;
|
|
||||||
$daycont = "" ;
|
|
||||||
|
|
||||||
// 기념일(양력) 표시
|
|
||||||
/*
|
|
||||||
for($i=0 ; $i < sizeof($dayfile) ; $i++) { // 파일 첫 행부터 끝행까지 루프
|
|
||||||
$arrDay = explode("|", $dayfile[$i]);
|
|
||||||
if($memday == $year.$arrDay[0]) {
|
|
||||||
$daycont = $arrDay[1];
|
|
||||||
$daycontcolor = $arrDay[2];
|
|
||||||
if(substr($arrDay[2],0,3)=="red") $daycolor = "red"; // 공휴일은 날짜를 빨간색으로 표시
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
// 석봉운님의 음력날짜 변수선언
|
|
||||||
$myarray = soltolun($year,$month,$cday);
|
|
||||||
if ($myarray[day]==1 || $myarray[day]==11 || $myarray[day]==21) {
|
|
||||||
$moonday ="<font color='gray'> (음)$myarray[month].$myarray[day]$myarray[leap]</font>";
|
|
||||||
} else {
|
|
||||||
$moonday="";
|
|
||||||
}
|
|
||||||
|
|
||||||
include($file_index."/lunar.txt"); ### 음력 기념일 파일 지정
|
|
||||||
|
|
||||||
if ($annivmoonday&&$daycont) $blank="<br />"; // 음력절기와 양력기념일이 동시에 있으면 한칸 띔
|
|
||||||
else $blank="";
|
|
||||||
*/
|
|
||||||
if (!$html_day[$cday]) {
|
|
||||||
echo $daytext;
|
|
||||||
}
|
|
||||||
echo $html_day[$cday];
|
|
||||||
echo ("</td>"); // 한칸을 마무리
|
|
||||||
$cday++; // 날짜를 카운팅
|
|
||||||
}
|
|
||||||
// 유효날짜가 아니면 그냥 회색을 칠한다.
|
|
||||||
else { echo (" <td width=$col_width height=$col_height class='noday'> </td>"); }
|
|
||||||
if (($iz%7) == 0) echo (" </tr>");
|
|
||||||
|
|
||||||
} // 반복구문이 끝남
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script language="JavaScript">
|
<script language="JavaScript">
|
||||||
<!--
|
<!--
|
||||||
// 미리보기 팝업 보이기
|
// 미리보기 팝업 보이기
|
||||||
function PopupShow(n) {
|
function PopupShow(n) {
|
||||||
var position = $("#subject_"+n).position();
|
var position = $("#subject_"+n).position();
|
||||||
$("#popup_"+n).animate({left:position.left-10+"px", top:position.top+30+"px"},0);
|
$("#popup_"+n).animate({left:position.left-10+"px", top:position.top+30+"px"},0);
|
||||||
$("#popup_"+n).show();
|
$("#popup_"+n).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 미리보기 팝업 숨기기
|
// 미리보기 팝업 숨기기
|
||||||
function PopupHide(n) {
|
function PopupHide(n) {
|
||||||
$("#popup_"+n).hide();
|
$("#popup_"+n).hide();
|
||||||
}
|
}
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,4 @@ if (!defined('_GNUBOARD_')) exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css">', 0);
|
||||||
@include_once($menu_skin_path.'/menu.L.inc.php');
|
include_once $menu_skin_path . "/menu.L.inc.php";
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,95 +1,100 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<ul class="gnbWrap">
|
<ul class="gnbWrap">
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_URL?>/main.php" class="change-link">
|
<a href="<?= G5_URL ?>/main.php" class="change-link">
|
||||||
<span class="icons"><span><i class="material-icons">home</i></span></span>
|
<span class="icons"><span><i class="material-icons">home</i></span></span>
|
||||||
<span class="tooltips">HOME</span>
|
<span class="tooltips">HOME</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?
|
<?
|
||||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||||
$menu = sql_query($menu_sql);
|
$menu = sql_query($menu_sql);
|
||||||
|
|
||||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||||
$target = "";
|
$target = "";
|
||||||
if($me['me_target'] == 'self') {
|
if ($me['me_target'] == 'self') {
|
||||||
$me['me_target'] = '';
|
$me['me_target'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($me['me_name'] == '구분선') {
|
if ($me['me_name'] == '구분선') {
|
||||||
echo "<li class='line'></li>";
|
echo "<li class='line'></li>";
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $me['me_link']?>" <? if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<? } ?> class="change-link">
|
<a href="<?php echo $me['me_link'] ?>" <? if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <? } ?>
|
||||||
<span class="icons"><span><i class="material-icons"><?=$me['me_icon']?></i></span></span>
|
class="change-link">
|
||||||
<span class="tooltips"><?=$me['me_name']?></span>
|
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
|
||||||
</a>
|
<span class="tooltips"><?= $me['me_name'] ?></span>
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<? }} ?>
|
<? }
|
||||||
|
} ?>
|
||||||
|
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<? if(!$is_member) { //멤버가 아닐 경우 ?>
|
<? if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/login.php">
|
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||||
<span class="icons"><span><i class="material-icons">login</i></span></span>
|
<span class="icons"><span><i class="material-icons">login</i></span></span>
|
||||||
<span class="tooltips">LOGIN</span>
|
<span class="tooltips">LOGIN</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<? if($is_add_register) { //회원가입이 가능한 경우 ?>
|
<? if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||||
<span class="icons"><span><i class="material-icons">person_add</i></span></span>
|
<span class="icons"><span><i class="material-icons">person_add</i></span></span>
|
||||||
<span class="tooltips">JOIN</span>
|
<span class="tooltips">JOIN</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? } else { //멤버일 경우 ?>
|
<? } else { //멤버일 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||||
<span class="icons"><span><i class="material-icons">logout</i></span></span>
|
<span class="icons"><span><i class="material-icons">logout</i></span></span>
|
||||||
<span class="tooltips">LOGOUT</span>
|
<span class="tooltips">LOGOUT</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<? if($is_admin) { ?>
|
<? if ($is_admin) { ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||||
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
||||||
<span class="tooltips">ADMIN</span>
|
<span class="tooltips">ADMIN</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<? } else { ?>
|
<? } else { ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/member_confirm.php?url=register_form.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||||
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
||||||
<span class="tooltips">정보수정</span>
|
<span class="tooltips">정보수정</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<? if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
<? if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||||
<li class="bgm-btn">
|
<li class="bgm-btn">
|
||||||
<div id="site_bgm_box">
|
<div id="site_bgm_box">
|
||||||
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0"
|
||||||
</div>
|
marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
|
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||||
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
class="control-bgm-play" style="display:none;">
|
||||||
<span class="tooltips">BGM ON</span>
|
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
||||||
</a>
|
<span class="tooltips">BGM ON</span>
|
||||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
</a>
|
||||||
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||||
<span class="tooltips">BGM OFF</span>
|
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
||||||
</a>
|
<span class="tooltips">BGM OFF</span>
|
||||||
</li>
|
</a>
|
||||||
<? } ?>
|
</li>
|
||||||
</ul>
|
<? } ?>
|
||||||
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
|
||||||
@include_once($menu_skin_path.'/menu.L.inc.php');
|
include_once $menu_skin_path . "/menu.L.inc.php";
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
|
||||||
@include_once($menu_skin_path.'/menu.L.inc.php');
|
include_once $menu_skin_path . "/menu.L.inc.php";
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
/* ******************************************************************************
|
/* ******************************************************************************
|
||||||
※ 관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
|
※ 관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
|
||||||
|
|
@ -12,200 +13,254 @@ if (!defined('_GNUBOARD_')) exit;
|
||||||
|
|
||||||
<h3>박스 프레임 설정</h3>
|
<h3>박스 프레임 설정</h3>
|
||||||
<table>
|
<table>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 140px;">
|
<col style="width: 140px;">
|
||||||
<col style="width: 140px;">
|
<col style="width: 140px;">
|
||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" rowspan="3">
|
<th scope="row" rowspan="3">
|
||||||
<em><?=$css_index?></em>프레임 크기
|
<em><?= $css_index ?></em>프레임 크기
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_size" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="box_frame_size" readonly size="15" />
|
||||||
</th>
|
</th>
|
||||||
<td class="bo-right txt-center">크기</td>
|
<td class="bo-right txt-center">크기</td>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help('전체 페이지를 감쌀 가로 세로 사이즈를 지정해 주세요.') ?>
|
<?php echo help('전체 페이지를 감쌀 가로 세로 사이즈를 지정해 주세요.') ?>
|
||||||
가로 : <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_value'] ?>" size="5"/> px
|
가로 : <input type="text" name="cs_value[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_value'] ?>"
|
||||||
|
size="5" /> px
|
||||||
세로 : <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_1'] ?>" size="5"/> px
|
|
||||||
</td></tr><tr>
|
세로 : <input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_1'] ?>"
|
||||||
<td class="bo-right txt-center">PC 여백</td>
|
size="5" /> px
|
||||||
<td>
|
</td>
|
||||||
상 : <input type="text" name="cs_etc_2[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_2'] ?>" size="5"/> px
|
</tr>
|
||||||
|
<tr>
|
||||||
하 : <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_3'] ?>" size="5"/> px
|
<td class="bo-right txt-center">PC 여백</td>
|
||||||
|
<td>
|
||||||
좌 : <input type="text" name="cs_etc_4[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_4'] ?>" size="5"/> px
|
상 : <input type="text" name="cs_etc_2[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_2'] ?>"
|
||||||
|
size="5" /> px
|
||||||
우 : <input type="text" name="cs_etc_5[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_5'] ?>" size="5"/> px
|
|
||||||
</td></tr><tr>
|
하 : <input type="text" name="cs_etc_3[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_3'] ?>"
|
||||||
<td class="bo-right txt-center">모바일 여백</td>
|
size="5" /> px
|
||||||
<td>
|
|
||||||
상 : <input type="text" name="cs_etc_6[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_6'] ?>" size="5"/> px
|
좌 : <input type="text" name="cs_etc_4[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_4'] ?>"
|
||||||
|
size="5" /> px
|
||||||
하 : <input type="text" name="cs_etc_7[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_7'] ?>" size="5"/> px
|
|
||||||
|
우 : <input type="text" name="cs_etc_5[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_5'] ?>"
|
||||||
좌 : <input type="text" name="cs_etc_8[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_8'] ?>" size="5"/> px
|
size="5" /> px
|
||||||
|
</td>
|
||||||
우 : <input type="text" name="cs_etc_9[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_9'] ?>" size="5"/> px
|
</tr>
|
||||||
</td></tr>
|
<tr>
|
||||||
</tr <?php $css_index++; ?>>
|
<td class="bo-right txt-center">모바일 여백</td>
|
||||||
|
<td>
|
||||||
|
상 : <input type="text" name="cs_etc_6[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_6'] ?>"
|
||||||
|
size="5" /> px
|
||||||
|
|
||||||
|
하 : <input type="text" name="cs_etc_7[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_7'] ?>"
|
||||||
|
size="5" /> px
|
||||||
|
|
||||||
|
좌 : <input type="text" name="cs_etc_8[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_8'] ?>"
|
||||||
|
size="5" /> px
|
||||||
|
|
||||||
|
우 : <input type="text" name="cs_etc_9[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_9'] ?>"
|
||||||
|
size="5" /> px
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="4" scope="row">
|
<th rowspan="4" scope="row">
|
||||||
<em><?=$css_index?></em>테두리 : 이미지
|
<em><?= $css_index ?></em>테두리 : 이미지
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_img" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="box_frame_img" readonly size="15" />
|
||||||
|
|
||||||
<a href="https://webcode.tools/generators/css/border-image" target="_blank">참고예제</a>
|
<a href="https://webcode.tools/generators/css/border-image" target="_blank">참고예제</a>
|
||||||
</th>
|
</th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<div class="single-info">
|
<div class="single-info">
|
||||||
<?php echo help('이미지로 설정된 테두리가 우선적으로 적용됩니다. 단순 테두리를 사용하고 싶으실 경우, 이미지 경로를 제거해주세요.') ?>
|
<?php echo help('이미지로 설정된 테두리가 우선적으로 적용됩니다. 단순 테두리를 사용하고 싶으실 경우, 이미지 경로를 제거해주세요.') ?>
|
||||||
|
|
||||||
</div>
|
|
||||||
</td></tr><tr>
|
|
||||||
<td rowspan="3" class="bo-right bo-left txt-center">
|
|
||||||
<?php if($de['box_frame_img']['cs_value']) { ?>
|
|
||||||
<img src="<?=$de['box_frame_img']['cs_value']?>" class="prev_thumb"/>
|
|
||||||
<?php } else { ?>
|
|
||||||
이미지 미등록
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
직접등록 <input type="file" name="cs_value_file[<?=$css_index?>]" value="" size="50">
|
|
||||||
</td></tr><tr>
|
|
||||||
<td>
|
|
||||||
외부경로 <input type="text" name="cs_value[<?=$css_index?>]" value="<?=$de['box_frame_img']['cs_value']?>" size="50"/>
|
|
||||||
</td></tr><tr>
|
|
||||||
<td>
|
|
||||||
조각크기 <span style="color:#ff4742; font-weight:600;">(Slice)</span> <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['box_frame_img']['cs_etc_1'] ?>" size="5" maxlength="255" /> px
|
|
||||||
|
|
||||||
|
|
||||||
반복속성 <span style="color:#ff4742; font-weight:600;">(Repeat)</span>
|
</div>
|
||||||
<select name="cs_etc_2[<?=$css_index?>]">
|
</td>
|
||||||
<option value="stretch">늘이기</option>
|
</tr>
|
||||||
<option value="repeat" <?=$de['box_frame_img']['cs_etc_2'] == 'repeat' ? "selected" : ""?>>반복하기</option>
|
<tr>
|
||||||
<option value="round" <?=$de['box_frame_img']['cs_etc_2'] == 'round' ? "selected" : ""?>>이어지기</option>
|
<td rowspan="3" class="bo-right bo-left txt-center">
|
||||||
<option value="space" <?=$de['box_frame_img']['cs_etc_2'] == 'space' ? "selected" : ""?>>간격두고 이어지기</option>
|
<?php if ($de['box_frame_img']['cs_value']) { ?>
|
||||||
</select>
|
<img src="<?= $de['box_frame_img']['cs_value'] ?>" class="prev_thumb" />
|
||||||
|
<?php } else { ?>
|
||||||
|
이미지 미등록
|
||||||
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
직접등록 <input type="file" name="cs_value_file[<?= $css_index ?>]" value="" size="50">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['box_frame_img']['cs_value'] ?>" size="50" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
조각크기 <span style="color:#ff4742; font-weight:600;">(Slice)</span> <input type="text"
|
||||||
|
name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['box_frame_img']['cs_etc_1'] ?>" size="5"
|
||||||
|
maxlength="255" /> px
|
||||||
|
|
||||||
|
|
||||||
확장영역 <span style="color:#ff4742; font-weight:600;">(Outset)</span>
|
반복속성 <span style="color:#ff4742; font-weight:600;">(Repeat)</span>
|
||||||
<input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?php echo $de['box_frame_img']['cs_etc_3'] ?>" size="5" maxlength="255" /> px
|
<select name="cs_etc_2[<?= $css_index ?>]">
|
||||||
|
<option value="stretch">늘이기</option>
|
||||||
</td>
|
<option value="repeat" <?= $de['box_frame_img']['cs_etc_2'] == 'repeat' ? "selected" : "" ?>>반복하기</option>
|
||||||
</tr <?php $css_index++; ?>>
|
<option value="round" <?= $de['box_frame_img']['cs_etc_2'] == 'round' ? "selected" : "" ?>>이어지기</option>
|
||||||
|
<option value="space" <?= $de['box_frame_img']['cs_etc_2'] == 'space' ? "selected" : "" ?>>간격두고 이어지기</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
확장영역 <span style="color:#ff4742; font-weight:600;">(Outset)</span>
|
||||||
<th rowspan="2" scope="row">
|
<input type="text" name="cs_etc_3[<?= $css_index ?>]" value="<?php echo $de['box_frame_img']['cs_etc_3'] ?>"
|
||||||
<em><?=$css_index?></em>테두리 : 일반
|
size="5" maxlength="255" /> px
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_line" readonly size="15"/>
|
|
||||||
</th>
|
</td>
|
||||||
<td class="bo-right bo-left txt-center">
|
</tr <?php $css_index++; ?>>
|
||||||
라인
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
라인색상 <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['box_frame_line']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_1']?>" placeholder="0" title="투명도" style="width:45px;"/>%
|
|
||||||
|
|
||||||
|
|
||||||
라인타입
|
<tr>
|
||||||
<select name="cs_etc_2[<?=$css_index?>]" style="width: 84px;">
|
<th rowspan="2" scope="row">
|
||||||
<option value="">라인없음</option>
|
<em><?= $css_index ?></em>테두리 : 일반
|
||||||
<option value="solid" <?=$de['box_frame_line']['cs_etc_2'] == 'solid' ? "selected" : ""?>>실선</option>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="box_frame_line" readonly size="15" />
|
||||||
<option value="dotted" <?=$de['box_frame_line']['cs_etc_2'] == 'dotted' ? "selected" : ""?>>점선</option>
|
</th>
|
||||||
<option value="dashed" <?=$de['box_frame_line']['cs_etc_2'] == 'dashed' ? "selected" : ""?>>대쉬선</option>
|
<td class="bo-right bo-left txt-center">
|
||||||
<option value="double" <?=$de['box_frame_line']['cs_etc_2'] == 'double' ? "selected" : ""?>>이중선</option>
|
라인
|
||||||
</select>
|
</td>
|
||||||
|
<td>
|
||||||
|
라인색상 <input type="text" name="cs_value[<?= $css_index ?>]"
|
||||||
|
value="<?php echo $de['box_frame_line']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||||
|
placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['box_frame_line']['cs_etc_1'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||||
|
|
||||||
|
|
||||||
라인굵기 <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_3']?>" size="5"/> px
|
라인타입
|
||||||
|
<select name="cs_etc_2[<?= $css_index ?>]" style="width: 84px;">
|
||||||
|
<option value="">라인없음</option>
|
||||||
|
<option value="solid" <?= $de['box_frame_line']['cs_etc_2'] == 'solid' ? "selected" : "" ?>>실선</option>
|
||||||
|
<option value="dotted" <?= $de['box_frame_line']['cs_etc_2'] == 'dotted' ? "selected" : "" ?>>점선</option>
|
||||||
|
<option value="dashed" <?= $de['box_frame_line']['cs_etc_2'] == 'dashed' ? "selected" : "" ?>>대쉬선</option>
|
||||||
|
<option value="double" <?= $de['box_frame_line']['cs_etc_2'] == 'double' ? "selected" : "" ?>>이중선</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_1_box_frame_line" value="top" <?=strstr($de['box_frame_line']['cs_etc_4'], 'top') ? "checked" : ""?> />
|
라인굵기 <input type="text" name="cs_etc_3[<?= $css_index ?>]"
|
||||||
<label for="cs_etc_4_1_box_frame_line">상 </label>
|
value="<?= $de['box_frame_line']['cs_etc_3'] ?>" size="5" /> px
|
||||||
|
|
||||||
|
|
||||||
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_2_box_frame_line" value="bottom" <?=strstr($de['box_frame_line']['cs_etc_4'], 'bottom') ? "checked" : ""?> />
|
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_1_box_frame_line" value="top"
|
||||||
<label for="cs_etc_4_2_box_frame_line">하 </label>
|
<?= strstr($de['box_frame_line']['cs_etc_4'], 'top') ? "checked" : "" ?> />
|
||||||
|
<label for="cs_etc_4_1_box_frame_line">상 </label>
|
||||||
|
|
||||||
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_3_box_frame_line" value="left" <?=strstr($de['box_frame_line']['cs_etc_4'], 'left') ? "checked" : ""?> />
|
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_2_box_frame_line" value="bottom"
|
||||||
<label for="cs_etc_4_3_box_frame_line">좌 </label>
|
<?= strstr($de['box_frame_line']['cs_etc_4'], 'bottom') ? "checked" : "" ?> />
|
||||||
|
<label for="cs_etc_4_2_box_frame_line">하 </label>
|
||||||
|
|
||||||
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_4_box_frame_line" value="right" <?=strstr($de['box_frame_line']['cs_etc_4'], 'right') ? "checked" : ""?> />
|
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_3_box_frame_line" value="left"
|
||||||
<label for="cs_etc_4_4_mmb_list_item">우</label>
|
<?= strstr($de['box_frame_line']['cs_etc_4'], 'left') ? "checked" : "" ?> />
|
||||||
|
<label for="cs_etc_4_3_box_frame_line">좌 </label>
|
||||||
</td></tr><tr>
|
|
||||||
<td class="bo-right txt-center">
|
|
||||||
모서리 라운드
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
좌측상단 <input type="text" name="cs_etc_5[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_5']?>" size="3"/> px
|
|
||||||
|
|
||||||
우측상단 <input type="text" name="cs_etc_6[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_6']?>" size="3"/> px
|
|
||||||
|
|
||||||
우측하단 <input type="text" name="cs_etc_7[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_7']?>" size="3"/> px
|
|
||||||
|
|
||||||
좌측하단 <input type="text" name="cs_etc_8[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_8']?>" size="3"/> px
|
|
||||||
</td>
|
|
||||||
</tr <?php $css_index++; ?>>
|
|
||||||
|
|
||||||
<tr>
|
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_4_box_frame_line" value="right"
|
||||||
<th rowspan="3" scope="row">
|
<?= strstr($de['box_frame_line']['cs_etc_4'], 'right') ? "checked" : "" ?> />
|
||||||
<em><?=$css_index?></em>프레임 배경
|
<label for="cs_etc_4_4_mmb_list_item">우</label>
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_bak" readonly size="15"/>
|
|
||||||
</th>
|
|
||||||
<td rowspan="3" class="bo-right bo-left txt-center">
|
|
||||||
<?php if($de['box_frame_bak']['cs_value']) { ?>
|
|
||||||
<img src="<?=$de['box_frame_bak']['cs_value']?>" class="prev_thumb"/>
|
|
||||||
<?php } else { ?>
|
|
||||||
이미지 미등록
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
직접등록 <input type="file" name="cs_value_file[<?=$css_index?>]" value="" size="50">
|
|
||||||
</td></tr><tr>
|
|
||||||
<td>
|
|
||||||
외부경로 <input type="text" name="cs_value[<?=$css_index?>]" value="<?=$de['box_frame_bak']['cs_value']?>" size="50"/>
|
|
||||||
</td></tr><tr>
|
|
||||||
<td>
|
|
||||||
배경색상 <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['box_frame_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?=$css_index?>]" value="<?=$de['box_frame_bak']['cs_etc_2']?>" placeholder="0" title="투명도" style="width:45px;"/>%
|
|
||||||
|
|
||||||
|
|
||||||
배경반복
|
</td>
|
||||||
<select name="cs_etc_3[<?=$css_index?>]">
|
</tr>
|
||||||
<option value="">반복</option>
|
<tr>
|
||||||
<option value="no-repeat" <?=$de['box_frame_bak']['cs_etc_3'] == 'no-repeat' ? "selected" : ""?>>반복없음</option>
|
<td class="bo-right txt-center">
|
||||||
<option value="repeat-x" <?=$de['box_frame_bak']['cs_etc_3'] == 'repeat-x' ? "selected" : ""?>>가로반복</option>
|
모서리 라운드
|
||||||
<option value="repeat-y" <?=$de['box_frame_bak']['cs_etc_3'] == 'repeat-y' ? "selected" : ""?>>세로반복</option>
|
</td>
|
||||||
</select>
|
<td>
|
||||||
|
좌측상단 <input type="text" name="cs_etc_5[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_5'] ?>"
|
||||||
|
size="3" /> px
|
||||||
|
|
||||||
|
우측상단 <input type="text" name="cs_etc_6[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_6'] ?>"
|
||||||
|
size="3" /> px
|
||||||
|
|
||||||
|
우측하단 <input type="text" name="cs_etc_7[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_7'] ?>"
|
||||||
|
size="3" /> px
|
||||||
|
|
||||||
|
좌측하단 <input type="text" name="cs_etc_8[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_8'] ?>"
|
||||||
|
size="3" /> px
|
||||||
|
</td>
|
||||||
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
배경위치
|
<tr>
|
||||||
<select name="cs_etc_4[<?=$css_index?>]">
|
<th rowspan="3" scope="row">
|
||||||
<option value="">왼쪽 상단</option>
|
<em><?= $css_index ?></em>프레임 배경
|
||||||
<option value="left middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'left middle' ? "selected" : ""?>>왼쪽 중단</option>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="box_frame_bak" readonly size="15" />
|
||||||
<option value="left bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'left bottom' ? "selected" : ""?>>왼쪽 하단</option>
|
</th>
|
||||||
|
<td rowspan="3" class="bo-right bo-left txt-center">
|
||||||
|
<?php if ($de['box_frame_bak']['cs_value']) { ?>
|
||||||
|
<img src="<?= $de['box_frame_bak']['cs_value'] ?>" class="prev_thumb" />
|
||||||
|
<?php } else { ?>
|
||||||
|
이미지 미등록
|
||||||
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
직접등록 <input type="file" name="cs_value_file[<?= $css_index ?>]" value="" size="50">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['box_frame_bak']['cs_value'] ?>" size="50" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
배경색상 <input type="text" name="cs_etc_1[<?= $css_index ?>]"
|
||||||
|
value="<?php echo $de['box_frame_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||||
|
placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['box_frame_bak']['cs_etc_2'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||||
|
|
||||||
|
|
||||||
<option value="center top" <?=$de['box_frame_bak']['cs_etc_4'] == 'center top' ? "selected" : ""?>>중간 상단</option>
|
배경반복
|
||||||
<option value="center middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'center middle' ? "selected" : ""?>>중간 중단</option>
|
<select name="cs_etc_3[<?= $css_index ?>]">
|
||||||
<option value="center bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'center bottom' ? "selected" : ""?>>중간 하단</option>
|
<option value="">반복</option>
|
||||||
|
<option value="no-repeat" <?= $de['box_frame_bak']['cs_etc_3'] == 'no-repeat' ? "selected" : "" ?>>반복없음</option>
|
||||||
|
<option value="repeat-x" <?= $de['box_frame_bak']['cs_etc_3'] == 'repeat-x' ? "selected" : "" ?>>가로반복</option>
|
||||||
|
<option value="repeat-y" <?= $de['box_frame_bak']['cs_etc_3'] == 'repeat-y' ? "selected" : "" ?>>세로반복</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<option value="right top" <?=$de['box_frame_bak']['cs_etc_4'] == 'right top' ? "selected" : ""?>>오른쪽 상단</option>
|
배경위치
|
||||||
<option value="right middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'right middle' ? "selected" : ""?>>오른쪽 중단</option>
|
<select name="cs_etc_4[<?= $css_index ?>]">
|
||||||
<option value="right bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'right bottom' ? "selected" : ""?>>오른쪽 하단</option>
|
<option value="">왼쪽 상단</option>
|
||||||
</select>
|
<option value="left middle" <?= $de['box_frame_bak']['cs_etc_4'] == 'left middle' ? "selected" : "" ?>>왼쪽 중단
|
||||||
|
</option>
|
||||||
|
<option value="left bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>왼쪽 하단
|
||||||
|
</option>
|
||||||
|
|
||||||
배경크기
|
<option value="center top" <?= $de['box_frame_bak']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간 상단
|
||||||
<select name="cs_etc_5[<?=$css_index?>]">
|
</option>
|
||||||
<option value="">원본크기</option>
|
<option value="center middle" <?= $de['box_frame_bak']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간 중단
|
||||||
<option value="contain" <?=$de['box_frame_bak']['cs_etc_5'] == 'contain' ? "selected" : ""?>>맞춤</option>
|
</option>
|
||||||
<option value="cover" <?=$de['box_frame_bak']['cs_etc_5'] == 'cover' ? "selected" : ""?>>꽉참</option>
|
<option value="center bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단
|
||||||
<option value="100% 100%" <?=$de['box_frame_bak']['cs_etc_5'] == '100% 100%' ? "selected" : ""?>>늘이기</option>
|
</option>
|
||||||
</select>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr <?php $css_index++; ?>>
|
|
||||||
|
|
||||||
</tbody>
|
<option value="right top" <?= $de['box_frame_bak']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단</option>
|
||||||
|
<option value="right middle" <?= $de['box_frame_bak']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>오른쪽 중단
|
||||||
|
</option>
|
||||||
|
<option value="right bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'right bottom' ? "selected" : "" ?>>오른쪽 하단
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
배경크기
|
||||||
|
<select name="cs_etc_5[<?= $css_index ?>]">
|
||||||
|
<option value="">원본크기</option>
|
||||||
|
<option value="contain" <?= $de['box_frame_bak']['cs_etc_5'] == 'contain' ? "selected" : "" ?>>맞춤</option>
|
||||||
|
<option value="cover" <?= $de['box_frame_bak']['cs_etc_5'] == 'cover' ? "selected" : "" ?>>꽉참</option>
|
||||||
|
<option value="100% 100%" <?= $de['box_frame_bak']['cs_etc_5'] == '100% 100%' ? "selected" : "" ?>>늘이기</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
$box_f_size = get_style("box_frame_size");
|
$box_f_size = get_style("box_frame_size");
|
||||||
$box_f_img = get_style("box_frame_img");
|
$box_f_img = get_style("box_frame_img");
|
||||||
|
|
@ -29,64 +30,142 @@ $f_img_out = $box_f_img['cs_etc_3'] != "" ? $box_f_img['cs_etc_3'] : 0;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
<?php
|
<?php
|
||||||
/**************************************************
|
/**************************************************
|
||||||
Design Setting
|
Design Setting
|
||||||
--------------------------------
|
--------------------------------
|
||||||
#design_frameBox:before 이미지 테두리 프레임
|
#design_frameBox:before 이미지 테두리 프레임
|
||||||
#design_frameBox:after 일반 테두리 프레임
|
#design_frameBox:after 일반 테두리 프레임
|
||||||
**************************************************/
|
**************************************************/
|
||||||
?>
|
?> @media all and (min-width:1025px) {
|
||||||
|
html.single #header {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (min-width:1025px) {html.single #header {display:block !important;}}
|
#design_frameBox {
|
||||||
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
z-index: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
#design_frameBox {display:block; position:fixed; top:50%; left:50%; z-index:0; box-sizing:border-box;}
|
#design_frameBox:before {
|
||||||
#design_frameBox:before {content:""; display:block; position:absolute; top:0; left:0; right:0; bottom:0; z-index:-1;}
|
content: "";
|
||||||
#design_frameBox:after {content:""; display:block; position:absolute; top:0; left:0; right:0; bottom:0; z-index:-2;}
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
#body {display:block; position:relative; width:100%; height:100% !important; overflow:auto; box-sizing:border-box;}
|
#design_frameBox:after {
|
||||||
#body > .fix-layout > .mid-layout {padding:10px !important;}
|
content: "";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: -2;
|
||||||
|
}
|
||||||
|
|
||||||
<?php
|
#body {
|
||||||
/**************************************************
|
display: block;
|
||||||
설정값에 따른 변동 부분
|
position: relative;
|
||||||
**************************************************/
|
width: 100%;
|
||||||
?>
|
height: 100% !important;
|
||||||
|
overflow: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
#design_frameBox {<?php echo "width:{$b_w}px; height:{$b_h}px; margin-left:-".($b_w/2)."px; margin-top:-".($b_h/2)."px; padding:{$p_t}px {$p_r}px {$p_b}px {$p_l}px;"; ?>}
|
#body>.fix-layout>.mid-layout {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (max-width:<?=($b_w+20)?>px) {#design_frameBox {left:10px; right:10px; width:auto; margin-left:0;}}
|
<?php
|
||||||
@media all and (max-height:<?=($b_h+20)?>px) {#design_frameBox {top:10px; bottom:10px; height:auto; margin-top:0;}}
|
/**************************************************
|
||||||
@media all and (max-width:1024px) { #design_frameBox {<?php echo "padding:{$mp_t}px {$mp_r}px {$mp_b}px {$mp_l}px;"; ?>}}
|
설정값에 따른 변동 부분
|
||||||
|
**************************************************/
|
||||||
|
?> #design_frameBox {
|
||||||
|
<?php echo "width:{$b_w}px; height:{$b_h}px; margin-left:-" . ($b_w / 2) . "px; margin-top:-" . ($b_h / 2) . "px; padding:{$p_t}px {$p_r}px {$p_b}px {$p_l}px;"; ?>
|
||||||
|
}
|
||||||
|
|
||||||
<?php if($f_img_url) { // 이미지 테두리가 적용되어 있을 경우 ?>
|
@media all and (max-width:<?= ($b_w + 20) ?>px) {
|
||||||
#design_frameBox:before {<?php
|
#design_frameBox {
|
||||||
echo "border:{$f_img_sli}px solid;";
|
left: 10px;
|
||||||
echo "border-image:url({$f_img_url}) {$f_img_sli} / {$f_img_sli}px / {$f_img_out}px {$f_img_rep};";
|
right: 10px;
|
||||||
?>}
|
width: auto;
|
||||||
#design_frameBox:after {border:none !important;}
|
margin-left: 0;
|
||||||
<?php } ?>
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#design_frameBox:after {<?php
|
@media all and (max-height:<?= ($b_h + 20) ?>px) {
|
||||||
if($box_f_line['cs_value']) echo "border-color:".hex2rgba($box_f_line['cs_value'], $box_f_line['cs_etc_1'])."; ";
|
#design_frameBox {
|
||||||
$box_f_line['border'] = explode("||", $box_f_line['cs_etc_4']);
|
top: 10px;
|
||||||
for($i=0; $i < count($box_f_line['border']); $i++) {
|
bottom: 10px;
|
||||||
if($box_f_line['border'][$i]) {
|
height: auto;
|
||||||
if($box_f_line['cs_etc_2']) echo "border-{$box_f_line['border'][$i]}-style:{$box_f_line['cs_etc_2']}; ";
|
margin-top: 0;
|
||||||
if($box_f_line['cs_etc_3']) echo "border-{$box_f_line['border'][$i]}-width:{$box_f_line['cs_etc_3']}px; ";
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if($box_f_line['cs_etc_5']) echo "border-top-left-radius:{$box_f_line['cs_etc_5']}px; ";
|
|
||||||
if($box_f_line['cs_etc_6']) echo "border-top-right-radius:{$box_f_line['cs_etc_6']}px; ";
|
|
||||||
if($box_f_line['cs_etc_7']) echo "border-bottom-right-radius:{$box_f_line['cs_etc_7']}px; ";
|
|
||||||
if($box_f_line['cs_etc_8']) echo "border-bottom-left-radius:{$box_f_line['cs_etc_8']}px; ";
|
|
||||||
|
|
||||||
if($box_f_bak['cs_value']) echo "background-image:url('{$box_f_bak['cs_value']}'); ";
|
@media all and (max-width:1024px) {
|
||||||
if($box_f_bak['cs_etc_1']) echo "background-color:".hex2rgba($box_f_bak['cs_etc_1'], $box_f_bak['cs_etc_2'])."; ";
|
#design_frameBox {
|
||||||
if($box_f_bak['cs_etc_3']) echo "background-repeat:{$box_f_bak['cs_etc_3']}; ";
|
<?php echo "padding:{$mp_t}px {$mp_r}px {$mp_b}px {$mp_l}px;"; ?>
|
||||||
if($box_f_bak['cs_etc_4']) echo "background-position:{$box_f_bak['cs_etc_4']}; ";
|
}
|
||||||
if($box_f_bak['cs_etc_5']) echo "background-size:{$box_f_bak['cs_etc_5']}; ";
|
}
|
||||||
?>}
|
|
||||||
|
<?php if ($f_img_url) { // 이미지 테두리가 적용되어 있을 경우 ?>
|
||||||
|
#design_frameBox:before {
|
||||||
|
<?php
|
||||||
|
echo "border:{$f_img_sli}px solid;";
|
||||||
|
echo "border-image:url({$f_img_url}) {$f_img_sli} / {$f_img_sli}px / {$f_img_out}px {$f_img_rep};";
|
||||||
|
?>}
|
||||||
|
#design_frameBox:after
|
||||||
|
{border:none !important;}
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#design_frameBox:after {<?php
|
||||||
|
if ($box_f_line['cs_value'])
|
||||||
|
echo "border-color:" . hex2rgba($box_f_line['cs_value'], $box_f_line['cs_etc_1']) . "; ";
|
||||||
|
$box_f_line['border'] = explode("||", $box_f_line['cs_etc_4']);
|
||||||
|
for ($i = 0; $i < count($box_f_line['border']); $i++) {
|
||||||
|
if ($box_f_line['border'][$i]) {
|
||||||
|
if ($box_f_line['cs_etc_2'])
|
||||||
|
echo "border-{$box_f_line['border'][$i]}-style:{$box_f_line['cs_etc_2']}; ";
|
||||||
|
if ($box_f_line['cs_etc_3'])
|
||||||
|
echo "border-{$box_f_line['border'][$i]}-width:{$box_f_line['cs_etc_3']}px; ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($box_f_line['cs_etc_5'])
|
||||||
|
echo "border-top-left-radius:{$box_f_line['cs_etc_5']}px; ";
|
||||||
|
if ($box_f_line['cs_etc_6'])
|
||||||
|
echo "border-top-right-radius:{$box_f_line['cs_etc_6']}px; ";
|
||||||
|
if ($box_f_line['cs_etc_7'])
|
||||||
|
echo "border-bottom-right-radius:{$box_f_line['cs_etc_7']}px; ";
|
||||||
|
if ($box_f_line['cs_etc_8'])
|
||||||
|
echo "border-bottom-left-radius:{$box_f_line['cs_etc_8']}px; ";
|
||||||
|
|
||||||
|
if ($box_f_bak['cs_value'])
|
||||||
|
echo "background-image:url('{$box_f_bak['cs_value']}'); ";
|
||||||
|
if ($box_f_bak['cs_etc_1'])
|
||||||
|
echo "background-color:" . hex2rgba($box_f_bak['cs_etc_1'], $box_f_bak['cs_etc_2']) . "; ";
|
||||||
|
if ($box_f_bak['cs_etc_3'])
|
||||||
|
echo "background-repeat:{$box_f_bak['cs_etc_3']}; ";
|
||||||
|
if ($box_f_bak['cs_etc_4'])
|
||||||
|
echo "background-position:{$box_f_bak['cs_etc_4']}; ";
|
||||||
|
if ($box_f_bak['cs_etc_5'])
|
||||||
|
echo "background-size:{$box_f_bak['cs_etc_5']}; ";
|
||||||
|
?>}
|
||||||
|
|
||||||
#design_frameBox .characterViewer {position:relative; height:100%;}
|
#design_frameBox .characterViewer {position:relative; height:100%;}
|
||||||
#design_frameBox .characterViewer .ch-body {position:absolute; overflow:hidden;}
|
#design_frameBox .characterViewer .ch-body {position:absolute; overflow:hidden;}
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,36 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
//if (defined('_INDEX_')) return;
|
//if (defined('_INDEX_')) return;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 좌측 메뉴 스타일 ::
|
:: 좌측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.B.css">', 0);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
<?php if($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
||||||
@media all and (min-width:1025px) { #header {<?php echo "bottom:50%; margin-bottom:-".(($b_h/2) - 20)."px;"; ?>}}
|
@media all and (min-width:1025px) {
|
||||||
@media all and (max-height:<?=($b_h+20)?>px) and (min-width:1025px) { #header {bottom:20px; margin-bottom:0px;}}
|
#header {
|
||||||
<?php } ?>
|
<?php echo "bottom:50%; margin-bottom:-" . (($b_h / 2) - 20) . "px;"; ?>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (max-height:<?= ($b_h + 20) ?>px) and (min-width:1025px) {
|
||||||
|
#header {
|
||||||
|
bottom: 20px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,36 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
//if (defined('_INDEX_')) return;
|
//if (defined('_INDEX_')) return;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 좌측 메뉴 스타일 ::
|
:: 좌측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.css">', 0);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
<?php if($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
||||||
@media all and (min-width:1025px) { #header {<?php echo "left:50%; margin-left:-".(($b_w/2) - 20)."px;"; ?>}}
|
@media all and (min-width:1025px) {
|
||||||
@media all and (max-width:<?=($b_w+20)?>px) and (min-width:1025px) { #header {left:20px; margin-left:0px;}}
|
#header {
|
||||||
<?php } ?>
|
<?php echo "left:50%; margin-left:-" . (($b_w / 2) - 20) . "px;"; ?>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (max-width:<?= ($b_w + 20) ?>px) and (min-width:1025px) {
|
||||||
|
#header {
|
||||||
|
left: 20px;
|
||||||
|
margin-left: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,36 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
//if (defined('_INDEX_')) return;
|
//if (defined('_INDEX_')) return;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 좌측 메뉴 스타일 ::
|
:: 좌측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
<?php if($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
||||||
@media all and (min-width:1025px) { #header {<?php echo "right:50%; margin-right:-".(($b_w/2) - 20)."px;"; ?>}}
|
@media all and (min-width:1025px) {
|
||||||
@media all and (max-width:<?=($b_w+20)?>px) and (min-width:1025px) { #header {right:20px; margin-right:0px;}}
|
#header {
|
||||||
<?php } ?>
|
<?php echo "right:50%; margin-right:-" . (($b_w / 2) - 20) . "px;"; ?>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (max-width:<?= ($b_w + 20) ?>px) and (min-width:1025px) {
|
||||||
|
#header {
|
||||||
|
right: 20px;
|
||||||
|
margin-right: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,36 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
//if (defined('_INDEX_')) return;
|
//if (defined('_INDEX_')) return;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 좌측 메뉴 스타일 ::
|
:: 좌측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
<?php if($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
|
||||||
@media all and (min-width:1025px) { #header {<?php echo "top:50%; margin-top:-".(($b_h/2) - 20)."px;"; ?>}}
|
@media all and (min-width:1025px) {
|
||||||
@media all and (max-height:<?=($b_h+20)?>px) and (min-width:1025px) { #header {top:20px; margin-top:0px;}}
|
#header {
|
||||||
<?php } ?>
|
<?php echo "top:50%; margin-top:-" . (($b_h / 2) - 20) . "px;"; ?>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (max-height:<?= ($b_h + 20) ?>px) and (min-width:1025px) {
|
||||||
|
#header {
|
||||||
|
top: 20px;
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||||
|
|
|
||||||
|
|
@ -1,92 +1,97 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<ul class="gnbWrap">
|
<ul class="gnbWrap">
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_URL?>/main.php" class="change-link">
|
<a href="<?= G5_URL ?>/main.php" class="change-link">
|
||||||
<span class="icons"><span><i class="material-icons">home</i></span></span>
|
<span class="icons"><span><i class="material-icons">home</i></span></span>
|
||||||
<span class="tooltips">HOME</span>
|
<span class="tooltips">HOME</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?php
|
<?php
|
||||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||||
$menu = sql_query($menu_sql);
|
$menu = sql_query($menu_sql);
|
||||||
|
|
||||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||||
$target = "";
|
$target = "";
|
||||||
if($me['me_target'] == 'self') {
|
if ($me['me_target'] == 'self') {
|
||||||
$me['me_target'] = '';
|
$me['me_target'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($me['me_name'] == '구분선') {
|
if ($me['me_name'] == '구분선') {
|
||||||
echo "<li class='line'></li>";
|
echo "<li class='line'></li>";
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||||
<span class="icons"><span><i class="material-icons"><?=$me['me_icon']?></i></span></span>
|
class="change-link">
|
||||||
<span class="tooltips"><?=$me['me_name']?></span>
|
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
|
||||||
</a>
|
<span class="tooltips"><?= $me['me_name'] ?></span>
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php }
|
||||||
|
} ?>
|
||||||
|
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/login.php">
|
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||||
<span class="icons"><span><i class="material-icons">login</i></span></span>
|
<span class="icons"><span><i class="material-icons">login</i></span></span>
|
||||||
<span class="tooltips">LOGIN</span>
|
<span class="tooltips">LOGIN</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||||
<span class="icons"><span><i class="material-icons">person_add</i></span></span>
|
<span class="icons"><span><i class="material-icons">person_add</i></span></span>
|
||||||
<span class="tooltips">JOIN</span>
|
<span class="tooltips">JOIN</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } else { //멤버일 경우 ?>
|
<?php } else { //멤버일 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||||
<span class="icons"><span><i class="material-icons">logout</i></span></span>
|
<span class="icons"><span><i class="material-icons">logout</i></span></span>
|
||||||
<span class="tooltips">LOGOUT</span>
|
<span class="tooltips">LOGOUT</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if($is_admin) { ?>
|
<?php if ($is_admin) { ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||||
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
||||||
<span class="tooltips">ADMIN</span>
|
<span class="tooltips">ADMIN</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/member_confirm.php?url=register_form.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||||
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
<span class="icons"><span><i class="material-icons">settings</i></span></span>
|
||||||
<span class="tooltips">정보수정</span>
|
<span class="tooltips">정보수정</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||||
<li class="bgm-btn">
|
<li class="bgm-btn">
|
||||||
<div id="site_bgm_box">
|
<div id="site_bgm_box">
|
||||||
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0"
|
||||||
</div>
|
marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
|
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||||
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
class="control-bgm-play" style="display:none;">
|
||||||
<span class="tooltips">BGM ON</span>
|
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
||||||
</a>
|
<span class="tooltips">BGM ON</span>
|
||||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
</a>
|
||||||
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||||
<span class="tooltips">BGM OFF</span>
|
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
||||||
</a>
|
<span class="tooltips">BGM OFF</span>
|
||||||
</li>
|
</a>
|
||||||
<?php } ?>
|
</li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
/* ******************************************************************************
|
/* ******************************************************************************
|
||||||
※ 관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
|
※ 관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
|
||||||
|
|
@ -12,109 +13,134 @@ if (!defined('_GNUBOARD_')) exit;
|
||||||
|
|
||||||
<h3>자유 배경 메뉴 설정</h3>
|
<h3>자유 배경 메뉴 설정</h3>
|
||||||
<table>
|
<table>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 140px;">
|
<col style="width: 140px;">
|
||||||
<col style="width: 140px;">
|
<col style="width: 140px;">
|
||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">
|
<th scope="row">
|
||||||
<em><?=$css_index?></em>크기설정
|
<em><?= $css_index ?></em>크기설정
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_size" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_size" readonly size="15" />
|
||||||
</th>
|
</th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<?php echo help('가로 사이즈는 좌측/우측 메뉴일 경우 적용됩니다. 세로 사이즈는 상단/하단 메뉴일 경우 적용됩니다.') ?>
|
<?php echo help('가로 사이즈는 좌측/우측 메뉴일 경우 적용됩니다. 세로 사이즈는 상단/하단 메뉴일 경우 적용됩니다.') ?>
|
||||||
|
|
||||||
가로 : <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_value'] ?>" size="5"/>px
|
가로 : <input type="text" name="cs_value[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_value'] ?>"
|
||||||
|
size="5" />px
|
||||||
세로 : <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>" size="5"/>px
|
|
||||||
</td>
|
세로 : <input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>"
|
||||||
|
size="5" />px
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr <?php $css_index++; ?>>
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="3" scope="row">
|
<th rowspan="3" scope="row">
|
||||||
<em><?=$css_index?></em>메뉴 배경
|
<em><?= $css_index ?></em>메뉴 배경
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_bak" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_bak" readonly size="15" />
|
||||||
</th>
|
</th>
|
||||||
<td rowspan="3" class="bo-right bo-left txt-center">
|
<td rowspan="3" class="bo-right bo-left txt-center">
|
||||||
<?php if($de['menu_bak']['cs_value']) { ?>
|
<?php if ($de['menu_bak']['cs_value']) { ?>
|
||||||
<img src="<?=$de['menu_bak']['cs_value']?>" class="prev_thumb"/>
|
<img src="<?= $de['menu_bak']['cs_value'] ?>" class="prev_thumb" />
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
이미지 미등록
|
이미지 미등록
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
직접등록 <input type="file" name="cs_value_file[<?=$css_index?>]" value="" size="50">
|
직접등록 <input type="file" name="cs_value_file[<?= $css_index ?>]" value="" size="50">
|
||||||
</td></tr><tr>
|
</td>
|
||||||
<td>
|
</tr>
|
||||||
외부경로 <input type="text" name="cs_value[<?=$css_index?>]" value="<?=$de['menu_bak']['cs_value']?>" size="50"/>
|
<tr>
|
||||||
</td></tr><tr>
|
<td>
|
||||||
<td>
|
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]" value="<?= $de['menu_bak']['cs_value'] ?>"
|
||||||
배경색상 <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['menu_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?=$css_index?>]" value="<?=$de['menu_bak']['cs_etc_2']?>" placeholder="0" title="투명도" style="width:45px;"/>%
|
size="50" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
배경색상 <input type="text" name="cs_etc_1[<?= $css_index ?>]"
|
||||||
|
value="<?php echo $de['menu_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||||
|
placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['menu_bak']['cs_etc_2'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||||
|
|
||||||
|
|
||||||
배경반복
|
배경반복
|
||||||
<select name="cs_etc_3[<?=$css_index?>]">
|
<select name="cs_etc_3[<?= $css_index ?>]">
|
||||||
<option value="">반복</option>
|
<option value="">반복</option>
|
||||||
<option value="no-repeat" <?=$de['menu_bak']['cs_etc_3'] == 'no-repeat' ? "selected" : ""?>>반복없음</option>
|
<option value="no-repeat" <?= $de['menu_bak']['cs_etc_3'] == 'no-repeat' ? "selected" : "" ?>>반복없음</option>
|
||||||
<option value="repeat-x" <?=$de['menu_bak']['cs_etc_3'] == 'repeat-x' ? "selected" : ""?>>가로반복</option>
|
<option value="repeat-x" <?= $de['menu_bak']['cs_etc_3'] == 'repeat-x' ? "selected" : "" ?>>가로반복</option>
|
||||||
<option value="repeat-y" <?=$de['menu_bak']['cs_etc_3'] == 'repeat-y' ? "selected" : ""?>>세로반복</option>
|
<option value="repeat-y" <?= $de['menu_bak']['cs_etc_3'] == 'repeat-y' ? "selected" : "" ?>>세로반복</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
배경위치
|
배경위치
|
||||||
<select name="cs_etc_4[<?=$css_index?>]">
|
<select name="cs_etc_4[<?= $css_index ?>]">
|
||||||
<option value="">왼쪽 상단</option>
|
<option value="">왼쪽 상단</option>
|
||||||
<option value="left middle" <?=$de['menu_bak']['cs_etc_4'] == 'left middle' ? "selected" : ""?>>왼쪽 중단</option>
|
<option value="left middle" <?= $de['menu_bak']['cs_etc_4'] == 'left middle' ? "selected" : "" ?>>왼쪽 중단</option>
|
||||||
<option value="left bottom" <?=$de['menu_bak']['cs_etc_4'] == 'left bottom' ? "selected" : ""?>>왼쪽 하단</option>
|
<option value="left bottom" <?= $de['menu_bak']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>왼쪽 하단</option>
|
||||||
|
|
||||||
<option value="center top" <?=$de['menu_bak']['cs_etc_4'] == 'center top' ? "selected" : ""?>>중간 상단</option>
|
<option value="center top" <?= $de['menu_bak']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간 상단</option>
|
||||||
<option value="center middle" <?=$de['menu_bak']['cs_etc_4'] == 'center middle' ? "selected" : ""?>>중간 중단</option>
|
<option value="center middle" <?= $de['menu_bak']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간 중단
|
||||||
<option value="center bottom" <?=$de['menu_bak']['cs_etc_4'] == 'center bottom' ? "selected" : ""?>>중간 하단</option>
|
</option>
|
||||||
|
<option value="center bottom" <?= $de['menu_bak']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단
|
||||||
|
</option>
|
||||||
|
|
||||||
<option value="right top" <?=$de['menu_bak']['cs_etc_4'] == 'right top' ? "selected" : ""?>>오른쪽 상단</option>
|
<option value="right top" <?= $de['menu_bak']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단</option>
|
||||||
<option value="right middle" <?=$de['menu_bak']['cs_etc_4'] == 'right middle' ? "selected" : ""?>>오른쪽 중단</option>
|
<option value="right middle" <?= $de['menu_bak']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>오른쪽 중단
|
||||||
<option value="right bottom" <?=$de['menu_bak']['cs_etc_4'] == 'right bottom' ? "selected" : ""?>>오른쪽 하단</option>
|
</option>
|
||||||
</select>
|
<option value="right bottom" <?= $de['menu_bak']['cs_etc_4'] == 'right bottom' ? "selected" : "" ?>>오른쪽 하단
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
배경크기
|
배경크기
|
||||||
<select name="cs_etc_5[<?=$css_index?>]">
|
<select name="cs_etc_5[<?= $css_index ?>]">
|
||||||
<option value="">원본크기</option>
|
<option value="">원본크기</option>
|
||||||
<option value="contain" <?=$de['menu_bak']['cs_etc_5'] == 'contain' ? "selected" : ""?>>맞춤</option>
|
<option value="contain" <?= $de['menu_bak']['cs_etc_5'] == 'contain' ? "selected" : "" ?>>맞춤</option>
|
||||||
<option value="cover" <?=$de['menu_bak']['cs_etc_5'] == 'cover' ? "selected" : ""?>>꽉참</option>
|
<option value="cover" <?= $de['menu_bak']['cs_etc_5'] == 'cover' ? "selected" : "" ?>>꽉참</option>
|
||||||
<option value="100% 100%" <?=$de['menu_bak']['cs_etc_5'] == '100% 100%' ? "selected" : ""?>>늘이기</option>
|
<option value="100% 100%" <?= $de['menu_bak']['cs_etc_5'] == '100% 100%' ? "selected" : "" ?>>늘이기</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr <?php $css_index++; ?>>
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="3" scope="row">
|
<th rowspan="3" scope="row">
|
||||||
<em><?=$css_index?></em>메뉴텍스트
|
<em><?= $css_index ?></em>메뉴텍스트
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_text_link" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_text_link" readonly size="15" />
|
||||||
</th>
|
</th>
|
||||||
<td class="bo-right bo-left txt-center">
|
<td class="bo-right bo-left txt-center">
|
||||||
일반상태
|
일반상태
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
글자색상 <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['menu_text_link']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?=$css_index?>]" value="<?=$de['cs_etc_1']['cs_etc_3']?>" placeholder="0" title="투명도" style="width:45px;"/>%
|
글자색상 <input type="text" name="cs_value[<?= $css_index ?>]"
|
||||||
|
value="<?php echo $de['menu_text_link']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||||
글자크기 <input type="text" name="cs_etc_2[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_2']?>" size="5"/> px
|
placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['cs_etc_1']['cs_etc_3'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||||
글자모양 <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_3']?>" size="30">
|
|
||||||
</td></tr><tr>
|
글자크기 <input type="text" name="cs_etc_2[<?= $css_index ?>]"
|
||||||
<td class="bo-right bo-left txt-center">
|
value="<?= $de['menu_text_link']['cs_etc_2'] ?>" size="5" /> px
|
||||||
마우스 오버
|
|
||||||
</td>
|
글자모양 <input type="text" name="cs_etc_3[<?= $css_index ?>]"
|
||||||
<td>
|
value="<?= $de['menu_text_link']['cs_etc_3'] ?>" size="30">
|
||||||
글자색상 <input type="text" name="cs_etc_4[<?=$css_index?>]" value="<?php echo $de['menu_text_link']['cs_etc_4'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_5[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_5']?>" placeholder="0" title="투명도" style="width:45px;"/>%
|
</td>
|
||||||
|
</tr>
|
||||||
글자크기 <input type="text" name="cs_etc_6[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_6']?>" size="5"/> px
|
<tr>
|
||||||
</td>
|
<td class="bo-right bo-left txt-center">
|
||||||
</tr <?php $css_index++; ?>>
|
마우스 오버
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
글자색상 <input type="text" name="cs_etc_4[<?= $css_index ?>]"
|
||||||
|
value="<?php echo $de['menu_text_link']['cs_etc_4'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||||
|
placeholder="#색상코드" /><input type="number" name="cs_etc_5[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['menu_text_link']['cs_etc_5'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||||
|
|
||||||
|
글자크기 <input type="text" name="cs_etc_6[<?= $css_index ?>]"
|
||||||
|
value="<?= $de['menu_text_link']['cs_etc_6'] ?>" size="5" /> px
|
||||||
|
</td>
|
||||||
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
$menu_size = get_style("menu_size");
|
$menu_size = get_style("menu_size");
|
||||||
$menu_bak = get_style("menu_bak");
|
$menu_bak = get_style("menu_bak");
|
||||||
|
|
@ -9,23 +10,31 @@ $m_w = $menu_size['cs_value'];
|
||||||
$m_h = $menu_size['cs_etc_1'];
|
$m_h = $menu_size['cs_etc_1'];
|
||||||
|
|
||||||
$background = "";
|
$background = "";
|
||||||
if($menu_bak['cs_value']) $background .= "background-image:url('{$menu_bak['cs_value']}'); ";
|
if ($menu_bak['cs_value'])
|
||||||
if($menu_bak['cs_etc_1']) $background .= "background-color:".hex2rgba($menu_bak['cs_etc_1'], $menu_bak['cs_etc_2'])."; ";
|
$background .= "background-image:url('{$menu_bak['cs_value']}'); ";
|
||||||
if($menu_bak['cs_etc_3']) $background .= "background-repeat:{$menu_bak['cs_etc_3']}; ";
|
if ($menu_bak['cs_etc_1'])
|
||||||
if($menu_bak['cs_etc_4']) $background .= "background-position:{$menu_bak['cs_etc_4']}; ";
|
$background .= "background-color:" . hex2rgba($menu_bak['cs_etc_1'], $menu_bak['cs_etc_2']) . "; ";
|
||||||
if($menu_bak['cs_etc_5']) $background .= "background-size:{$menu_bak['cs_etc_5']}; ";
|
if ($menu_bak['cs_etc_3'])
|
||||||
|
$background .= "background-repeat:{$menu_bak['cs_etc_3']}; ";
|
||||||
|
if ($menu_bak['cs_etc_4'])
|
||||||
|
$background .= "background-position:{$menu_bak['cs_etc_4']}; ";
|
||||||
|
if ($menu_bak['cs_etc_5'])
|
||||||
|
$background .= "background-size:{$menu_bak['cs_etc_5']}; ";
|
||||||
|
|
||||||
$link_color = "";
|
$link_color = "";
|
||||||
if($menu_text_link['cs_value']) $link_color .= "background-color:".hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1'])."; ";
|
if ($menu_text_link['cs_value'])
|
||||||
|
$link_color .= "background-color:" . hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1']) . "; ";
|
||||||
|
|
||||||
$menu_default = "";
|
$menu_default = "";
|
||||||
if($menu_text_link['cs_value']) $menu_default .= "color:".hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1'])."; ";
|
if ($menu_text_link['cs_value'])
|
||||||
if($menu_text_link['cs_etc_2']) $menu_default .= "font-size:{$menu_text_link['cs_etc_2']}px; ";
|
$menu_default .= "color:" . hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1']) . "; ";
|
||||||
if($menu_text_link['cs_etc_3']) $menu_default .= "font-family:{$menu_text_link['cs_etc_3']}, sans-serif; ";
|
if ($menu_text_link['cs_etc_2'])
|
||||||
|
$menu_default .= "font-size:{$menu_text_link['cs_etc_2']}px; ";
|
||||||
|
if ($menu_text_link['cs_etc_3'])
|
||||||
|
$menu_default .= "font-family:{$menu_text_link['cs_etc_3']}, sans-serif; ";
|
||||||
|
|
||||||
$menu_over = "";
|
$menu_over = "";
|
||||||
if($menu_text_link['cs_etc_4']) $menu_over .= "color:".hex2rgba($menu_text_link['cs_etc_4'], $menu_text_link['cs_etc_5'])."; ";
|
if ($menu_text_link['cs_etc_4'])
|
||||||
if($menu_text_link['cs_etc_6']) $menu_over .= "font-size:{$menu_text_link['cs_etc_6']}px; ";
|
$menu_over .= "color:" . hex2rgba($menu_text_link['cs_etc_4'], $menu_text_link['cs_etc_5']) . "; ";
|
||||||
|
if ($menu_text_link['cs_etc_6'])
|
||||||
|
$menu_over .= "font-size:{$menu_text_link['cs_etc_6']}px; ";
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,35 @@
|
||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
|
|
||||||
.freebak-menu {width:100%; margin-bottom:-20px;}
|
.freebak-menu {
|
||||||
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
|
width: 100%;
|
||||||
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
|
margin-bottom: -20px;
|
||||||
.freebak-menu .mnu li {display:inline-block; padding:10px 0; vertical-align:middle;position:relative;}
|
}
|
||||||
.freebak-menu .mnu li + li {margin-left:15px; min-height:1.2em;}
|
|
||||||
.freebak-menu .mnu li.line {width:1px; opacity:.2;}
|
|
||||||
|
|
||||||
|
.freebak-menu .mnu {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu>* {
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li+li {
|
||||||
|
margin-left: 15px;
|
||||||
|
min-height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li.line {
|
||||||
|
width: 1px;
|
||||||
|
opacity: .2;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,33 @@
|
||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
|
|
||||||
.freebak-menu {height:100%; margin-left:-20px;}
|
.freebak-menu {
|
||||||
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
|
height: 100%;
|
||||||
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
|
margin-left: -20px;
|
||||||
.freebak-menu .mnu li {position:relative;}
|
}
|
||||||
.freebak-menu .mnu li + li {margin-top:15px;}
|
|
||||||
.freebak-menu .mnu li.line {max-width:25%; margin:20px auto; height:1px; opacity:.2;}
|
|
||||||
|
|
||||||
|
.freebak-menu .mnu {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu>* {
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li+li {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li.line {
|
||||||
|
max-width: 25%;
|
||||||
|
margin: 20px auto;
|
||||||
|
height: 1px;
|
||||||
|
opacity: .2;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,33 @@
|
||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
|
|
||||||
.freebak-menu {height:100%; margin-right:-20px;}
|
.freebak-menu {
|
||||||
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
|
height: 100%;
|
||||||
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
|
margin-right: -20px;
|
||||||
.freebak-menu .mnu li {position:relative;}
|
}
|
||||||
.freebak-menu .mnu li + li {margin-top:15px;}
|
|
||||||
.freebak-menu .mnu li.line {max-width:25%; margin:20px auto; height:1px; opacity:.2;}
|
|
||||||
|
|
||||||
|
.freebak-menu .mnu {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu>* {
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li+li {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li.line {
|
||||||
|
max-width: 25%;
|
||||||
|
margin: 20px auto;
|
||||||
|
height: 1px;
|
||||||
|
opacity: .2;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,35 @@
|
||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
|
|
||||||
.freebak-menu {width:100%; margin-top:-20px;}
|
.freebak-menu {
|
||||||
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
|
width: 100%;
|
||||||
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
|
margin-top: -20px;
|
||||||
.freebak-menu .mnu li {display:inline-block; padding:10px 0; vertical-align:middle;position:relative;}
|
}
|
||||||
.freebak-menu .mnu li + li {margin-left:15px; min-height:1.2em;}
|
|
||||||
.freebak-menu .mnu li.line {width:1px; opacity:.2;}
|
|
||||||
|
|
||||||
|
.freebak-menu .mnu {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu>* {
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li+li {
|
||||||
|
margin-left: 15px;
|
||||||
|
min-height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .mnu li.line {
|
||||||
|
width: 1px;
|
||||||
|
opacity: .2;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,101 +1,121 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 우측 메뉴 스타일 ::
|
:: 우측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
우측메뉴로 설정했을 경우 출력되는 영역입니다.
|
우측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.B.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.freebak-menu {height:<?=$m_w?>px; <?=$background?>}
|
.freebak-menu {
|
||||||
.freebak-menu a {<?=$menu_default?>}
|
height: <?= $m_w ?>px;
|
||||||
.freebak-menu a:hover {<?=$menu_over?>}
|
<?= $background ?>
|
||||||
.freebak-menu .line {<?=$link_color?>}
|
}
|
||||||
@media all and (min-width:1025px) {
|
|
||||||
#body {padding-bottom:<?=$m_h?>px;}
|
.freebak-menu a {
|
||||||
}
|
<?= $menu_default ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu a:hover {
|
||||||
|
<?= $menu_over ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .line {
|
||||||
|
<?= $link_color ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
padding-bottom: <?= $m_h ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="freebak-menu">
|
<div class="freebak-menu">
|
||||||
<div class="mnu">
|
<div class="mnu">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||||
$menu = sql_query($menu_sql);
|
$menu = sql_query($menu_sql);
|
||||||
|
|
||||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||||
$target = "";
|
$target = "";
|
||||||
if($me['me_target'] == 'self') {
|
if ($me['me_target'] == 'self') {
|
||||||
$me['me_target'] = '';
|
$me['me_target'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($me['me_name'] == '구분선') {
|
if ($me['me_name'] == '구분선') {
|
||||||
echo "<li class='line'></li>";
|
echo "<li class='line'></li>";
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||||
<?=$me['me_name']?>
|
class="change-link">
|
||||||
</a>
|
<?= $me['me_name'] ?>
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php }
|
||||||
|
} ?>
|
||||||
|
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/login.php">
|
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||||
LOGIN
|
LOGIN
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||||
JOIN<
|
JOIN< </a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } else { //멤버일 경우 ?>
|
||||||
<?php } else { //멤버일 경우 ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
LOGOUT
|
||||||
LOGOUT
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php if ($is_admin) { ?>
|
||||||
<?php if($is_admin) { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
ADMIN
|
||||||
ADMIN
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } else { ?>
|
||||||
<?php } else { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||||
<a href="<?=G5_BBS_URL?>/member_confirm.php?url=register_form.php" class="change-link">
|
정보수정
|
||||||
정보수정
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||||
<li class="bgm-btn">
|
<li class="bgm-btn">
|
||||||
<div id="site_bgm_box">
|
<div id="site_bgm_box">
|
||||||
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
|
||||||
</div>
|
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
|
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||||
BGM ON
|
class="control-bgm-play" style="display:none;">
|
||||||
</a>
|
BGM ON
|
||||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
</a>
|
||||||
BGM OFF
|
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||||
</a>
|
class="control-bgm-stop">
|
||||||
</li>
|
BGM OFF
|
||||||
<?php } ?>
|
</a>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,102 +1,122 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 좌측 메뉴 스타일 ::
|
:: 좌측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
좌측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.css">', 0);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.freebak-menu {width:<?=$m_w?>px; <?=$background?>}
|
.freebak-menu {
|
||||||
.freebak-menu a {<?=$menu_default?>}
|
width: <?= $m_w ?>px;
|
||||||
.freebak-menu a:hover {<?=$menu_over?>}
|
<?= $background ?>
|
||||||
.freebak-menu .line {<?=$link_color?>}
|
}
|
||||||
@media all and (min-width:1025px) {
|
|
||||||
#body {margin-left:<?=$m_w?>px;}
|
.freebak-menu a {
|
||||||
}
|
<?= $menu_default ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu a:hover {
|
||||||
|
<?= $menu_over ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .line {
|
||||||
|
<?= $link_color ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
margin-left: <?= $m_w ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="freebak-menu">
|
<div class="freebak-menu">
|
||||||
<div class="mnu">
|
<div class="mnu">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||||
$menu = sql_query($menu_sql);
|
$menu = sql_query($menu_sql);
|
||||||
|
|
||||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||||
$target = "";
|
$target = "";
|
||||||
if($me['me_target'] == 'self') {
|
if ($me['me_target'] == 'self') {
|
||||||
$me['me_target'] = '';
|
$me['me_target'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($me['me_name'] == '구분선') {
|
if ($me['me_name'] == '구분선') {
|
||||||
echo "<li class='line'></li>";
|
echo "<li class='line'></li>";
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||||
<?=$me['me_name']?>
|
class="change-link">
|
||||||
</a>
|
<?= $me['me_name'] ?>
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php }
|
||||||
|
} ?>
|
||||||
|
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/login.php">
|
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||||
LOGIN
|
LOGIN
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||||
JOIN<
|
JOIN< </a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } else { //멤버일 경우 ?>
|
||||||
<?php } else { //멤버일 경우 ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
LOGOUT
|
||||||
LOGOUT
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php if ($is_admin) { ?>
|
||||||
<?php if($is_admin) { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
ADMIN
|
||||||
ADMIN
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } else { ?>
|
||||||
<?php } else { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||||
<a href="<?=G5_BBS_URL?>/member_confirm.php?url=register_form.php" class="change-link">
|
정보수정
|
||||||
정보수정
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||||
<li class="bgm-btn">
|
<li class="bgm-btn">
|
||||||
<div id="site_bgm_box">
|
<div id="site_bgm_box">
|
||||||
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
|
||||||
</div>
|
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
|
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||||
BGM ON
|
class="control-bgm-play" style="display:none;">
|
||||||
</a>
|
BGM ON
|
||||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
</a>
|
||||||
BGM OFF
|
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||||
</a>
|
class="control-bgm-stop">
|
||||||
</li>
|
BGM OFF
|
||||||
<?php } ?>
|
</a>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,101 +1,121 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 우측 메뉴 스타일 ::
|
:: 우측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
우측메뉴로 설정했을 경우 출력되는 영역입니다.
|
우측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.freebak-menu {width:<?=$m_w?>px; <?=$background?>}
|
.freebak-menu {
|
||||||
.freebak-menu a {<?=$menu_default?>}
|
width: <?= $m_w ?>px;
|
||||||
.freebak-menu a:hover {<?=$menu_over?>}
|
<?= $background ?>
|
||||||
.freebak-menu .line {<?=$link_color?>}
|
}
|
||||||
@media all and (min-width:1025px) {
|
|
||||||
#body {margin-right:<?=$m_w?>px;}
|
.freebak-menu a {
|
||||||
}
|
<?= $menu_default ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu a:hover {
|
||||||
|
<?= $menu_over ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .line {
|
||||||
|
<?= $link_color ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
margin-right: <?= $m_w ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="freebak-menu">
|
<div class="freebak-menu">
|
||||||
<div class="mnu">
|
<div class="mnu">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||||
$menu = sql_query($menu_sql);
|
$menu = sql_query($menu_sql);
|
||||||
|
|
||||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||||
$target = "";
|
$target = "";
|
||||||
if($me['me_target'] == 'self') {
|
if ($me['me_target'] == 'self') {
|
||||||
$me['me_target'] = '';
|
$me['me_target'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($me['me_name'] == '구분선') {
|
if ($me['me_name'] == '구분선') {
|
||||||
echo "<li class='line'></li>";
|
echo "<li class='line'></li>";
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||||
<?=$me['me_name']?>
|
class="change-link">
|
||||||
</a>
|
<?= $me['me_name'] ?>
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php }
|
||||||
|
} ?>
|
||||||
|
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/login.php">
|
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||||
LOGIN
|
LOGIN
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||||
JOIN<
|
JOIN< </a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } else { //멤버일 경우 ?>
|
||||||
<?php } else { //멤버일 경우 ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
LOGOUT
|
||||||
LOGOUT
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php if ($is_admin) { ?>
|
||||||
<?php if($is_admin) { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
ADMIN
|
||||||
ADMIN
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } else { ?>
|
||||||
<?php } else { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||||
<a href="<?=G5_BBS_URL?>/member_confirm.php?url=register_form.php" class="change-link">
|
정보수정
|
||||||
정보수정
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||||
<li class="bgm-btn">
|
<li class="bgm-btn">
|
||||||
<div id="site_bgm_box">
|
<div id="site_bgm_box">
|
||||||
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
|
||||||
</div>
|
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
|
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||||
BGM ON
|
class="control-bgm-play" style="display:none;">
|
||||||
</a>
|
BGM ON
|
||||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
</a>
|
||||||
BGM OFF
|
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||||
</a>
|
class="control-bgm-stop">
|
||||||
</li>
|
BGM OFF
|
||||||
<?php } ?>
|
</a>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,101 +1,121 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
/* *************************************
|
/* *************************************
|
||||||
:: 우측 메뉴 스타일 ::
|
:: 우측 메뉴 스타일 ::
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
우측메뉴로 설정했을 경우 출력되는 영역입니다.
|
우측메뉴로 설정했을 경우 출력되는 영역입니다.
|
||||||
|
|
||||||
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
- Menu Link 에서 class="change-link" 를 적용하는 경우
|
||||||
- 메뉴가 유지되며 링크가 이동됩니다.
|
- 메뉴가 유지되며 링크가 이동됩니다.
|
||||||
************************************* */
|
************************************* */
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.freebak-menu {height:<?=$m_h?>px; <?=$background?>}
|
.freebak-menu {
|
||||||
.freebak-menu a {<?=$menu_default?>}
|
height: <?= $m_h ?>px;
|
||||||
.freebak-menu a:hover {<?=$menu_over?>}
|
<?= $background ?>
|
||||||
.freebak-menu .line {<?=$link_color?>}
|
}
|
||||||
@media all and (min-width:1025px) {
|
|
||||||
#body {padding-top:<?=$m_h?>px;}
|
.freebak-menu a {
|
||||||
}
|
<?= $menu_default ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu a:hover {
|
||||||
|
<?= $menu_over ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
.freebak-menu .line {
|
||||||
|
<?= $link_color ?>
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
padding-top: <?= $m_h ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="freebak-menu">
|
<div class="freebak-menu">
|
||||||
<div class="mnu">
|
<div class="mnu">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
$menu_sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order*1 asc, me_id asc";
|
||||||
$menu = sql_query($menu_sql);
|
$menu = sql_query($menu_sql);
|
||||||
|
|
||||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||||
$target = "";
|
$target = "";
|
||||||
if($me['me_target'] == 'self') {
|
if ($me['me_target'] == 'self') {
|
||||||
$me['me_target'] = '';
|
$me['me_target'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($me['me_name'] == '구분선') {
|
if ($me['me_name'] == '구분선') {
|
||||||
echo "<li class='line'></li>";
|
echo "<li class='line'></li>";
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||||
<?=$me['me_name']?>
|
class="change-link">
|
||||||
</a>
|
<?= $me['me_name'] ?>
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php }
|
||||||
|
} ?>
|
||||||
|
|
||||||
<li class="line"></li>
|
<li class="line"></li>
|
||||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/login.php">
|
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||||
LOGIN
|
LOGIN
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||||
JOIN<
|
JOIN< </a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } else { //멤버일 경우 ?>
|
||||||
<?php } else { //멤버일 경우 ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
LOGOUT
|
||||||
LOGOUT
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php if ($is_admin) { ?>
|
||||||
<?php if($is_admin) { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
ADMIN
|
||||||
ADMIN
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } else { ?>
|
||||||
<?php } else { ?>
|
<li>
|
||||||
<li>
|
<a href="<?= G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="change-link">
|
||||||
<a href="<?=G5_BBS_URL?>/member_confirm.php?url=register_form.php" class="change-link">
|
정보수정
|
||||||
정보수정
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||||
<li class="bgm-btn">
|
<li class="bgm-btn">
|
||||||
<div id="site_bgm_box">
|
<div id="site_bgm_box">
|
||||||
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
|
||||||
</div>
|
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
|
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
|
||||||
BGM ON
|
class="control-bgm-play" style="display:none;">
|
||||||
</a>
|
BGM ON
|
||||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
</a>
|
||||||
BGM OFF
|
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||||
</a>
|
class="control-bgm-stop">
|
||||||
</li>
|
BGM OFF
|
||||||
<?php } ?>
|
</a>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,47 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h3>에디터 메뉴 설정</h3>
|
<h3>에디터 메뉴 설정</h3>
|
||||||
<table>
|
<table>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 140px;">
|
<col style="width: 140px;">
|
||||||
<col style="width: 140px;">
|
<col style="width: 140px;">
|
||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">
|
<th scope="row">
|
||||||
<em><?=$css_index?></em>크기설정
|
<em><?= $css_index ?></em>크기설정
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_size" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_size" readonly size="15" />
|
||||||
</th>
|
</th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<?php echo help('가로 사이즈는 좌측/우측 메뉴일 경우 적용됩니다. 세로 사이즈는 상단/하단 메뉴일 경우 적용됩니다.') ?>
|
<?php echo help('가로 사이즈는 좌측/우측 메뉴일 경우 적용됩니다. 세로 사이즈는 상단/하단 메뉴일 경우 적용됩니다.') ?>
|
||||||
|
|
||||||
가로 : <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_value'] ?>" size="5"/>px
|
가로 : <input type="text" name="cs_value[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_value'] ?>"
|
||||||
|
size="5" />px
|
||||||
세로 : <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>" size="5"/>px
|
|
||||||
</td>
|
세로 : <input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>"
|
||||||
|
size="5" />px
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr <?php $css_index++; ?>>
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 에디터 배열에 메뉴영역 추가하기
|
// 에디터 배열에 메뉴영역 추가하기
|
||||||
array_push($editor_list, 'cs_value['.$css_index.']');
|
array_push($editor_list, 'cs_value[' . $css_index . ']');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">
|
<th scope="row">
|
||||||
<em><?=$css_index?></em>메뉴 내용
|
<em><?= $css_index ?></em>메뉴 내용
|
||||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_content" readonly size="15"/>
|
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_content" readonly size="15" />
|
||||||
</th>
|
</th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<?php echo help('메뉴 들어갈 내용을 자유롭게 작성해 주시길 바랍니다.') ?>
|
<?php echo help('메뉴 들어갈 내용을 자유롭게 작성해 주시길 바랍니다.') ?>
|
||||||
<?php echo editor_html('cs_value['.$css_index.']', get_text($de['menu_content']['cs_value'], 0)); ?>
|
<?php echo editor_html('cs_value[' . $css_index . ']', get_text($de['menu_content']['cs_value'], 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr <?php $css_index++; ?>>
|
</tr <?php $css_index++; ?>>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
$menu_size = get_style("menu_size");
|
$menu_size = get_style("menu_size");
|
||||||
$menu_content = get_style("menu_content");
|
$menu_content = get_style("menu_content");
|
||||||
|
|
@ -8,4 +9,3 @@ $m_w = $menu_size['cs_value'];
|
||||||
$m_h = $menu_size['cs_etc_1'];
|
$m_h = $menu_size['cs_etc_1'];
|
||||||
|
|
||||||
$menu_con = conv_content($menu_content['cs_value'], 1, '');
|
$menu_con = conv_content($menu_content['cs_value'], 1, '');
|
||||||
?>
|
|
||||||
|
|
@ -1,17 +1,24 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.B.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.editor-menu {height:<?=$m_h?>px; <?=$background?>}
|
.editor-menu {
|
||||||
@media all and (min-width:1025px) {
|
height: <?= $m_h ?>px;
|
||||||
#body {padding-bottom:<?=$m_h?>px;}
|
<?= $background ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
padding-bottom: <?= $m_h ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="editor-menu">
|
<div class="editor-menu">
|
||||||
<?=$menu_con;?>
|
<?= $menu_con; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,24 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.editor-menu {width:<?=$m_w?>px; <?=$background?>}
|
.editor-menu {
|
||||||
@media all and (min-width:1025px) {
|
width: <?= $m_w ?>px;
|
||||||
#body {margin-left:<?=$m_w?>px;}
|
<?= $background ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
margin-left: <?= $m_w ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="editor-menu">
|
<div class="editor-menu">
|
||||||
<?=$menu_con;?>
|
<?= $menu_con; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,24 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.editor-menu {width:<?=$m_w?>px; <?=$background?>}
|
.editor-menu {
|
||||||
@media all and (min-width:1025px) {
|
width: <?= $m_w ?>px;
|
||||||
#body {margin-right:<?=$m_w?>px;}
|
<?= $background ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
margin-right: <?= $m_w ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="editor-menu">
|
<div class="editor-menu">
|
||||||
<?=$menu_con;?>
|
<?= $menu_con; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,24 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
// 좌측 메뉴 스타일
|
// 좌측 메뉴 스타일
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.editor-menu {height:<?=$m_h?>px; <?=$background?>}
|
.editor-menu {
|
||||||
@media all and (min-width:1025px) {
|
height: <?= $m_h ?>px;
|
||||||
#body {padding-top:<?=$m_h?>px;}
|
<?= $background ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media all and (min-width:1025px) {
|
||||||
|
#body {
|
||||||
|
padding-top: <?= $m_h ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="editor-menu">
|
<div class="editor-menu">
|
||||||
<?=$menu_con;?>
|
<?= $menu_con; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue