unmanaged codestyle update
This commit is contained in:
parent
529957883c
commit
99e42ff33c
61 changed files with 4185 additions and 3629 deletions
|
|
@ -1,33 +1,34 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$src = "";
|
||||
$img_content = "";
|
||||
$thumb_class = "";
|
||||
if($list[$i]['wr_1']) {
|
||||
if ($list[$i]['wr_1']) {
|
||||
$src = $list[$i]['wr_1'];
|
||||
}
|
||||
if($src) {
|
||||
$img_content = '<em style="background-image:url(\''.$src.'\');"></em>';
|
||||
if ($src) {
|
||||
$img_content = '<em style="background-image:url(\'' . $src . '\');"></em>';
|
||||
} else {
|
||||
$thumb_class = "fix";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<li style="width:<?=$gallery_w?>px;">
|
||||
<li style="width:<?= $gallery_w ?>px;">
|
||||
<div class="character-card-frame">
|
||||
<div class="pad" style="padding-top:<?=$gallery_rato?>%;"></div>
|
||||
<a class="pic <?=$thumb_class?>" href="<?php echo $list[$i]['href'] ?>">
|
||||
<div class="pad" style="padding-top:<?= $gallery_rato ?>%;"></div>
|
||||
<a class="pic <?= $thumb_class ?>" href="<?php echo $list[$i]['href'] ?>">
|
||||
<?php
|
||||
|
||||
echo $img_content;
|
||||
?>
|
||||
<span class="cover <?=$thumb_class?>">
|
||||
<span class="cover <?= $thumb_class ?>">
|
||||
<span>
|
||||
<span>
|
||||
<strong class="sub-subject"><?=$list[$i]['wr_3']?></strong>
|
||||
<strong class="subject"><?=$list[$i]['wr_subject']?></strong>
|
||||
<strong class="sub-subject"><?= $list[$i]['wr_3'] ?></strong>
|
||||
<strong class="subject"><?= $list[$i]['wr_subject'] ?></strong>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -1,57 +1,67 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$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']}'");
|
||||
|
||||
$left_src = "";
|
||||
$left_img_content = "";
|
||||
if($left['wr_1']) { $left_src = $left['wr_1']; }
|
||||
if($left_src) { $left_img_content = '<em style="background-image:url(\''.$left_src.'\');"></em>'; }
|
||||
if ($left['wr_1']) {
|
||||
$left_src = $left['wr_1'];
|
||||
}
|
||||
if ($left_src) {
|
||||
$left_img_content = '<em style="background-image:url(\'' . $left_src . '\');"></em>';
|
||||
}
|
||||
|
||||
$right_src = "";
|
||||
$right_img_content = "";
|
||||
if($right['wr_1']) { $right_src = $right['wr_1']; }
|
||||
if($right_src) { $right_img_content = '<em style="background-image:url(\''.$right_src.'\');"></em>'; }
|
||||
if ($right['wr_1']) {
|
||||
$right_src = $right['wr_1'];
|
||||
}
|
||||
if ($right_src) {
|
||||
$right_img_content = '<em style="background-image:url(\'' . $right_src . '\');"></em>';
|
||||
}
|
||||
|
||||
$dday = "";
|
||||
|
||||
$startDate = strtotime($list[$i]['wr_subject']);
|
||||
$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;
|
||||
|
||||
?>
|
||||
|
||||
<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="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?>
|
||||
<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="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_3']?>">
|
||||
<?=$right_img_content?>
|
||||
<div class="pad" style="padding-top:<?= $gallery_rato ?>%;"></div>
|
||||
<a class="pic" href="./board.php?bo_table=<?= $bo_table ?>&wr_id=<?= $list[$i]['wr_3'] ?>">
|
||||
<?= $right_img_content ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dday" title="DATE.<?=$list[$i]['wr_subject']?>">
|
||||
<div class="dday" title="DATE.<?= $list[$i]['wr_subject'] ?>">
|
||||
<div class="bak ui-btn point"></div>
|
||||
<div class="days">
|
||||
<div class="mid">
|
||||
<div>
|
||||
<p class="ui-btn point txt-menu-font"><?=$dday?></p>
|
||||
<p class="ui-btn point txt-menu-font"><?= $dday ?></p>
|
||||
<span class="ui-btn point">DAYS</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -60,33 +70,35 @@ $p_gallery_w = $gallery_w + 20;
|
|||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="ch-box" style="width:<?=$p_gallery_w?>px;">
|
||||
<?php if($list[$i]['wr_4']) { ?>
|
||||
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
|
||||
<?php if ($list[$i]['wr_4']) { ?>
|
||||
<div class="ui-btn relation-name">
|
||||
<?=$list[$i]['wr_4']?>
|
||||
<?= $list[$i]['wr_4'] ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="txt-default ch-name">
|
||||
<?=$left['wr_subject']?>
|
||||
<?= $left['wr_subject'] ?>
|
||||
</div>
|
||||
</div><?php
|
||||
|
||||
?><div class="ch-box" style="width:<?=$p_gallery_w?>px;">
|
||||
<?php if($list[$i]['wr_5']) { ?>
|
||||
?>
|
||||
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
|
||||
<?php if ($list[$i]['wr_5']) { ?>
|
||||
<div class="ui-btn relation-name">
|
||||
<?=$list[$i]['wr_5']?>
|
||||
<?= $list[$i]['wr_5'] ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="txt-default ch-name">
|
||||
<?=$right['wr_subject']?>
|
||||
<?= $right['wr_subject'] ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if($list[$i]['mb_id'] == $member['mb_id']) { ?>
|
||||
<?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>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sst = $_GET['sst'];
|
||||
|
||||
|
|
@ -8,24 +9,25 @@ $is_category = false;
|
|||
$category_option = '';
|
||||
if ($board['bo_use_category']) {
|
||||
$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.'"';
|
||||
if ($sca=='')
|
||||
$category_option .= '<li><a href="' . $category_href . '"';
|
||||
if ($sca == '')
|
||||
$category_option .= ' id="bo_cate_on"';
|
||||
$category_option .= '>전체</a></li>';
|
||||
|
||||
$categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
||||
for ($i=0; $i<count($categories); $i++) {
|
||||
for ($i = 0; $i < count($categories); $i++) {
|
||||
$category = trim($categories[$i]);
|
||||
if ($category=='') continue;
|
||||
$category_option .= '<li><a href="'.($category_href."&sca=".urlencode($category)).'"';
|
||||
if ($category == '')
|
||||
continue;
|
||||
$category_option .= '<li><a href="' . ($category_href . "&sca=" . urlencode($category)) . '"';
|
||||
$category_msg = '';
|
||||
if ($category==$sca) { // 현재 선택된 카테고리라면
|
||||
if ($category == $sca) { // 현재 선택된 카테고리라면
|
||||
$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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -41,9 +43,10 @@ if ($sca || $stx) {
|
|||
// 가장 작은 번호를 얻어서 변수에 저장 (하단의 페이징에서 사용)
|
||||
$sql = " select MIN(wr_num) as min_wr_num from {$write_table} ";
|
||||
$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']})) ";
|
||||
|
||||
|
|
@ -65,7 +68,9 @@ if ($sca || $stx) {
|
|||
$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자리
|
||||
$today2 = G5_TIME_YMD;
|
||||
|
|
@ -78,18 +83,17 @@ $notice_array = [];
|
|||
if (!$sca) {
|
||||
$arr_notice = explode(',', trim($board['bo_notice']));
|
||||
$from_notice_idx = ($page - 1) * $page_rows;
|
||||
if($from_notice_idx < 0)
|
||||
if ($from_notice_idx < 0)
|
||||
$from_notice_idx = 0;
|
||||
$arr_notice = array_filter($arr_notice);
|
||||
$board_notice_count = count($arr_notice);
|
||||
|
||||
if($sst == 'wr_id') {
|
||||
if ($sst == 'wr_id') {
|
||||
// 전체 목록인 경우, 게시글 개수에서 공지글 제외
|
||||
$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 = "wr_id = '".$pair_str."'";
|
||||
$pair_str = "wr_id = '" . $pair_str . "'";
|
||||
// 페어 목록인 경우, 페어 목록만 추출하고 게시글 개수를 공지글로 한정
|
||||
$pair_str = "({$pair_str}) and wr_type = 'pair'";
|
||||
$total_count = $board_notice_count;
|
||||
|
|
@ -97,19 +101,21 @@ if (!$sca) {
|
|||
$pair_sql = " select * from {$write_table} where {$pair_str} order by wr_ing desc, wr_subject asc ";
|
||||
$notice_result = sql_query($pair_sql);
|
||||
|
||||
for($k=0; $row = sql_fetch_array($notice_result); $k++) {
|
||||
if (!$row['wr_id']) continue;
|
||||
for ($k = 0; $row = sql_fetch_array($notice_result); $k++) {
|
||||
if (!$row['wr_id'])
|
||||
continue;
|
||||
$notice_array[] = $row['wr_id'];
|
||||
|
||||
if($k < $from_notice_idx) continue;
|
||||
if($sst != 'wr_id') {
|
||||
if ($k < $from_notice_idx)
|
||||
continue;
|
||||
if ($sst != 'wr_id') {
|
||||
$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++;
|
||||
$notice_count++;
|
||||
|
||||
if($notice_count >= $list_page_rows)
|
||||
if ($notice_count >= $list_page_rows)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -121,16 +127,16 @@ $total_page = ceil($total_count / $page_rows); // 전체 페이지 계산
|
|||
$from_record = ($page - 1) * $page_rows; // 시작 열을 구함
|
||||
|
||||
// 공지글이 있으면 변수에 반영
|
||||
if(!empty($notice_array)) {
|
||||
if (!empty($notice_array)) {
|
||||
$from_record -= count($notice_array);
|
||||
|
||||
if($from_record < 0)
|
||||
if ($from_record < 0)
|
||||
$from_record = 0;
|
||||
|
||||
if($notice_count > 0)
|
||||
if ($notice_count > 0)
|
||||
$page_rows -= $notice_count;
|
||||
|
||||
if($page_rows < 0)
|
||||
if ($page_rows < 0)
|
||||
$page_rows = $list_page_rows;
|
||||
}
|
||||
|
||||
|
|
@ -140,11 +146,11 @@ if ($is_member && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id'
|
|||
$is_checkbox = true;
|
||||
|
||||
// 정렬에 사용하는 QUERY_STRING
|
||||
$qstr2 = 'bo_table='.$bo_table.'&sop='.$sop;
|
||||
$qstr2 = 'bo_table=' . $bo_table . '&sop=' . $sop;
|
||||
|
||||
// 0 으로 나눌시 오류를 방지하기 위하여 값이 없으면 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";
|
||||
|
|
@ -154,15 +160,15 @@ if ($order) {
|
|||
|
||||
if ($sca || $stx) {
|
||||
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";
|
||||
if(!empty($notice_array))
|
||||
$sql .= " and wr_parent not in (".implode(', ', $notice_array).") ";
|
||||
if (!empty($notice_array))
|
||||
$sql .= " and wr_parent not in (" . implode(', ', $notice_array) . ") ";
|
||||
$sql .= "{$sql_order} limit {$from_record}, $page_rows ";
|
||||
} else {
|
||||
$sql = " select * from {$write_table} where wr_is_comment = 0 ";
|
||||
if(!empty($notice_array))
|
||||
$sql .= " and wr_id not in (".implode(', ', $notice_array).") ";
|
||||
if (!empty($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'";
|
||||
else
|
||||
$sql .= " and wr_type = 'pair'";
|
||||
|
|
@ -170,13 +176,12 @@ if ($sca || $stx) {
|
|||
}
|
||||
|
||||
// 페이지의 공지개수가 목록수 보다 작을 때만 실행
|
||||
if($page_rows > 0) {
|
||||
if ($page_rows > 0) {
|
||||
$result = sql_query($sql);
|
||||
|
||||
$k = 0;
|
||||
|
||||
while ($row = sql_fetch_array($result))
|
||||
{
|
||||
while ($row = sql_fetch_array($result)) {
|
||||
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
|
||||
if ($sca || $stx)
|
||||
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||
|
|
@ -196,13 +201,13 @@ if($page_rows > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
$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 = '';
|
||||
$prev_part_href = '';
|
||||
$next_part_href = '';
|
||||
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\-]*#');
|
||||
|
||||
|
|
@ -210,22 +215,22 @@ if ($sca || $stx) {
|
|||
$prev_spt = $spt - $config['cf_search_part'];
|
||||
if (isset($min_spt) && $prev_spt >= $min_spt) {
|
||||
$qstr1 = preg_replace($patterns, '', $qstr);
|
||||
$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>');
|
||||
$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>');
|
||||
}
|
||||
|
||||
$next_spt = $spt + $config['cf_search_part'];
|
||||
if ($next_spt < 0) {
|
||||
$qstr1 = preg_replace($patterns, '', $qstr);
|
||||
$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>');
|
||||
$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_href = '';
|
||||
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 = "";
|
||||
|
|
@ -237,7 +242,7 @@ if (preg_match("/gecko|firefox/i", $_SERVER['HTTP_USER_AGENT'])) {
|
|||
// RSS 보기 사용에 체크가 되어 있어야 RSS 보기 가능 061106
|
||||
$rss_href = '';
|
||||
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));
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
//-- 리스트 정렬을 임의로 조정 하는 기능을 합니다.
|
||||
include_once($board_skin_path.'/_setting.php');
|
||||
include_once($board_skin_path.'/list.order.skin.php');
|
||||
include_once $board_skin_path . "/_setting.php";
|
||||
include_once $board_skin_path . "/list.order.skin.php";
|
||||
|
||||
$category_list = get_category_list($bo_table, $sca);
|
||||
// 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 = hex2rgba($color_bak['cs_value'], $color_bak['cs_etc_1']);
|
||||
|
|
@ -18,20 +19,22 @@ $is_notice = false;
|
|||
?>
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--thumb-bak:<?=$color_bak?>;
|
||||
--cover-bak:linear-gradient(0deg, <?=$color_bak?> 0%, transparent 100%);
|
||||
--cover-color:<?=$color_default?>;
|
||||
}
|
||||
:root {
|
||||
--thumb-bak: <?= $color_bak ?>;
|
||||
--cover-bak: linear-gradient(0deg,
|
||||
<?= $color_bak ?>
|
||||
0%, transparent 100%);
|
||||
--cover-color: <?= $color_default ?>;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<!-- 게시판 목록 시작 { -->
|
||||
<div class="charwrap">
|
||||
|
||||
<?php if($board['bo_content_head']) { ?>
|
||||
<?php if ($board['bo_content_head']) { ?>
|
||||
<div class="board-notice-box">
|
||||
<?=stripslashes($board['bo_content_head']);?>
|
||||
<?= stripslashes($board['bo_content_head']); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
|
@ -39,7 +42,8 @@ $is_notice = false;
|
|||
<?php if ($is_category) { ?>
|
||||
<nav class="board-category">
|
||||
<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>
|
||||
</li>
|
||||
<?php echo $category_list ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
@ -51,32 +55,37 @@ $is_notice = false;
|
|||
<?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;
|
||||
$gallery_rato = $gallery_w == 0 || $gallery_h == 0 ? "140" : $gallery_h / $gallery_w * 100;
|
||||
|
||||
for($i=0; $i<count($list); $i++) {
|
||||
for ($i = 0; $i < count($list); $i++) {
|
||||
|
||||
if($list[$i]['is_notice']) {
|
||||
include($board_skin_path."/list.couple.skin.php");
|
||||
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 ($is_notice) {
|
||||
break;
|
||||
}
|
||||
include($board_skin_path . "/list.character.skin.php");
|
||||
}
|
||||
}
|
||||
|
||||
if (count($list) == 0) { echo "<li class=\"empty_list\">등록된 캐릭터가 없습니다.</li>"; } ?>
|
||||
if (count($list) == 0) {
|
||||
echo "<li class=\"empty_list\">등록된 캐릭터가 없습니다.</li>";
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="btn_confirm">
|
||||
<?php
|
||||
if($is_notice || $sst == 'wr_id') {
|
||||
if ($is_notice || $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 { ?>
|
||||
<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> 전체
|
||||
목록</a>
|
||||
<?php }
|
||||
} else {
|
||||
if ($list_href) { ?>
|
||||
|
|
@ -84,10 +93,11 @@ $is_notice = false;
|
|||
<?php }
|
||||
}
|
||||
if ($write_href) { ?>
|
||||
<?php if($total_count >= 2) { ?>
|
||||
<?php if ($total_count >= 2) { ?>
|
||||
<a href="<?php echo $write_href ?>&type=pair" class="ui-btn"><i class="material-icons">edit</i> 페어 등록하기</a>
|
||||
<?php } ?>
|
||||
<a href="<?php echo $write_href ?>&sst=<?=$sst?>" class="ui-btn point"><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 } ?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
include_once "./_common.php";
|
||||
|
||||
// 권한 확인
|
||||
if(!$is_admin) {
|
||||
if($member['mb_id'] && $write['mb_id'] != $member['mb_id']) { // 본인의 게시물이 아닌 경우
|
||||
if (!$is_admin) {
|
||||
if ($member['mb_id'] && $write['mb_id'] != $member['mb_id']) { // 본인의 게시물이 아닌 경우
|
||||
exit;
|
||||
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
||||
exit;
|
||||
|
|
@ -14,24 +14,24 @@ $update_href = true;
|
|||
|
||||
$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 = $exp[count($exp)-1];
|
||||
$image_name = "body_{$wr_id}_".time().".".$exp;
|
||||
$exp = $exp[count($exp) - 1];
|
||||
$image_name = "body_{$wr_id}_" . time() . "." . $exp;
|
||||
upload_file($_FILES['add_new_body_file']['tmp_name'], $image_name, $character_image_path);
|
||||
$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}' ";
|
||||
}
|
||||
|
||||
if($sql_article != "") {
|
||||
$sql_article = $sql_article.", bo_table = '{$bo_table}', wr_id = '{$wr_id}'";
|
||||
if ($sql_article != "") {
|
||||
$sql_article = $sql_article . ", bo_table = '{$bo_table}', wr_id = '{$wr_id}'";
|
||||
$sql = "insert into {$g5['character_body_table']} set {$sql_article}";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
include($board_skin_path."/view_body.skin.php");
|
||||
include $board_skin_path . "/view_body.skin.php";
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
include_once "./_common.php";
|
||||
|
||||
// 권한 확인
|
||||
if(!$is_admin) {
|
||||
if($member['mb_id'] && $write['mb_id'] == $member['mb_id']) {
|
||||
if (!$is_admin) {
|
||||
if ($member['mb_id'] && $write['mb_id'] == $member['mb_id']) {
|
||||
exit;
|
||||
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
||||
exit;
|
||||
|
|
@ -14,7 +14,7 @@ $update_href = true;
|
|||
|
||||
// 삭제 원하는 DB 정보 가져오기
|
||||
$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']);
|
||||
@unlink($prev_file_path);
|
||||
|
||||
|
|
@ -22,4 +22,4 @@ if($bd['bd_url']) {
|
|||
sql_query($sql);
|
||||
}
|
||||
|
||||
include($board_skin_path."/view_body.skin.php");
|
||||
include $board_skin_path . "/view_body.skin.php";
|
||||
|
|
|
|||
|
|
@ -1,21 +1,22 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once($board_skin_path.'/_setting.php');
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once $board_skin_path . "/_setting.php";
|
||||
include_once G5_LIB_PATH . "/thumbnail.lib.php";
|
||||
|
||||
if($write['wr_type'] == 'pair') {
|
||||
goto_url($list_href.$qstr);
|
||||
if ($write['wr_type'] == 'pair') {
|
||||
goto_url($list_href . $qstr);
|
||||
}
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
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 . '/style.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 = $body_cnt['cnt'];
|
||||
|
||||
$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_body = $check_bodys['bd_url'] ? $check_bodys['bd_url'] : $check_body;
|
||||
}
|
||||
|
|
@ -30,28 +31,38 @@ $default_font = get_style('default_font');
|
|||
$default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
||||
?>
|
||||
<script>
|
||||
var skin_path = "<?=$board['bo_skin']?>";
|
||||
var skin_path = "<?= $board['bo_skin'] ?>";
|
||||
var skin_url = g5_url + "/skin/board/" + skin_path;
|
||||
</script>
|
||||
<style>
|
||||
:root {
|
||||
--pannel-line:<?=$color_line_color?>;
|
||||
--pannel-bak:<?=$color_bak_off?>;
|
||||
--pannel-bak-over:<?=$color_bak_over?>;
|
||||
}
|
||||
:root {
|
||||
--pannel-line: <?= $color_line_color ?>;
|
||||
--pannel-bak: <?= $color_bak_off ?>;
|
||||
--pannel-bak-over: <?= $color_bak_over ?>;
|
||||
}
|
||||
</style>
|
||||
<div class="loading">
|
||||
<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">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<p>Loading...</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="characterViewer">
|
||||
|
||||
<?php if($write['wr_2']) { ?>
|
||||
<?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><em style="background-image:url(<?= $check_body ?>);"></em><img src="<?= $check_body ?>" alt=""
|
||||
onerror="this.remove();" /></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
@ -60,16 +71,16 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
|||
<div class="icons-link-box link-box">
|
||||
<?php
|
||||
$extend_link_file = [];
|
||||
$tmp = dir(G5_PATH."/plugin/board");
|
||||
$tmp = dir(G5_PATH . "/plugin/board");
|
||||
while ($entry = $tmp->read()) {
|
||||
// php 파일만 include 함
|
||||
if (preg_match("/(\.php)$/i", $entry))
|
||||
$extend_file[] = $entry;
|
||||
}
|
||||
if(!empty($extend_file) && is_array($extend_file)) {
|
||||
if (!empty($extend_file) && is_array($extend_file)) {
|
||||
natsort($extend_file);
|
||||
foreach($extend_file as $file) {
|
||||
include_once(G5_PATH."/plugin/board/".$file);
|
||||
foreach ($extend_file as $file) {
|
||||
include_once(G5_PATH . "/plugin/board/" . $file);
|
||||
}
|
||||
}
|
||||
unset($extend_file);
|
||||
|
|
@ -81,30 +92,33 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
|||
<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>
|
||||
<?php if ($write['wr_3']) { ?><span><?= $write['wr_3'] ?></span><?php } ?>
|
||||
<strong><?= $write['wr_subject'] ?></strong>
|
||||
</div>
|
||||
<?php if($write['wr_content']) { ?>
|
||||
<?php if ($write['wr_content']) { ?>
|
||||
<div class="info">
|
||||
<?=$write['wr_content']?>
|
||||
<?= $write['wr_content'] ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<hr class="line" />
|
||||
|
||||
<div class="control">
|
||||
<?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>
|
||||
<?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="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/>
|
||||
<input type="radio" name="add_new_body_type" id="add_new_body_type1" value="url" checked />
|
||||
<label for="add_new_body_type1">URL등록</label>
|
||||
|
||||
<input type="radio" name="add_new_body_type" id="add_new_body_type2" value="file" />
|
||||
|
|
@ -112,7 +126,8 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
|||
|
||||
<div class="input-box">
|
||||
<input type="text" name="add_new_body" value="" />
|
||||
<input type="file" name="add_new_body_file" title="용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" accept="image/*"/>
|
||||
<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>
|
||||
|
|
@ -125,22 +140,22 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
|||
$('.loading').addClass('mask');
|
||||
|
||||
$.ajax({
|
||||
cache : false,
|
||||
url : url + "/proc/add_body.php", // 요기에
|
||||
type : 'POST',
|
||||
cache: false,
|
||||
url: url + "/proc/add_body.php", // 요기에
|
||||
type: 'POST',
|
||||
processData: false,
|
||||
contentType: false,
|
||||
data : formData,
|
||||
success: function(data) {
|
||||
data: formData,
|
||||
success: function (data) {
|
||||
// Toss
|
||||
var response = data;
|
||||
$('.char-body-list').empty().append(response);
|
||||
form.reset();
|
||||
},
|
||||
error: function(data, status, err) {
|
||||
error: function (data, status, err) {
|
||||
console.log("error!!");
|
||||
},
|
||||
complete: function() {
|
||||
complete: function () {
|
||||
// Complete
|
||||
$('.loading').removeClass('mask');
|
||||
}
|
||||
|
|
@ -152,32 +167,40 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
|
|||
|
||||
<hr class="line" />
|
||||
<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>
|
||||
|
||||
<?php if ($write['wr_4']) { ?><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_4']) { ?>
|
||||
<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_txt']) { ?><div class="descript"><?=nl2br($write['wr_5_txt'])?></div><?php } ?>
|
||||
<?php if ($write['wr_5']) { ?>
|
||||
<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_txt']) { ?><div class="descript"><?=nl2br($write['wr_6_txt'])?></div><?php } ?>
|
||||
<?php if ($write['wr_6']) { ?>
|
||||
<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_txt']) { ?><div class="descript"><?=nl2br($write['wr_7_txt'])?></div><?php } ?>
|
||||
<?php if ($write['wr_7']) { ?>
|
||||
<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_txt']) { ?><div class="descript"><?=nl2br($write['wr_8_txt'])?></div><?php } ?>
|
||||
<?php if ($write['wr_8']) { ?>
|
||||
<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>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
<?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 = $body_cnt['cnt'];
|
||||
|
||||
if($body_cnt > 0) {
|
||||
?>
|
||||
if ($body_cnt > 0) {
|
||||
?>
|
||||
<div class="chaBodyList">
|
||||
<div class="control">
|
||||
<button type="button" class="prev txt-point"><span class="material-icons">arrow_back_ios</span></button>
|
||||
|
|
@ -16,17 +17,19 @@ if($body_cnt > 0) {
|
|||
<ul class="swiper-wrapper">
|
||||
<?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");
|
||||
for($i=0; $bd = sql_fetch_array($body_list); $i++) {
|
||||
if($i==0 && $write['wr_2'] != '') {
|
||||
for ($i = 0; $bd = sql_fetch_array($body_list); $i++) {
|
||||
if ($i == 0 && $write['wr_2'] != '') {
|
||||
?>
|
||||
<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;"
|
||||
class="theme-box"><img src="<?= $write['wr_2'] ?>" alt="" /></a>
|
||||
</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>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
|
|
@ -41,7 +44,7 @@ if($body_cnt > 0) {
|
|||
var slider_chaBodyList = null;
|
||||
function fn_slider_chaBodyList() {
|
||||
/* 중복 호출될 경우 이전에 생성된 슬라이더를 1회 초기화한 이후에 진행한다.*/
|
||||
if(slider_chaBodyList != null) {
|
||||
if (slider_chaBodyList != null) {
|
||||
slider_chaBodyList.destroy(true, true);
|
||||
slider_chaBodyList = null;
|
||||
}
|
||||
|
|
@ -57,9 +60,9 @@ if($body_cnt > 0) {
|
|||
});
|
||||
}
|
||||
|
||||
<?php if($update_href) { ?>
|
||||
<?php if ($update_href) { ?>
|
||||
var control_idx = "";
|
||||
var originam_url = "<?=$write['wr_2']?>";
|
||||
var originam_url = "<?= $write['wr_2'] ?>";
|
||||
|
||||
function fn_set_chBody(type, bo_table, wr_id) {
|
||||
var url = skin_url;
|
||||
|
|
@ -68,46 +71,46 @@ if($body_cnt > 0) {
|
|||
formData.append("wr_id", wr_id);
|
||||
formData.append("bd_id", control_idx);
|
||||
|
||||
if(type == 'del') {
|
||||
if(confirm("해당 데이터를 정말 삭제하시겠습니까?")) {
|
||||
if (type == 'del') {
|
||||
if (confirm("해당 데이터를 정말 삭제하시겠습니까?")) {
|
||||
$('.loading').addClass('mask');
|
||||
$.ajax({
|
||||
cache : false,
|
||||
url : url + "/proc/del_body.php", // 요기에
|
||||
type : 'POST',
|
||||
cache: false,
|
||||
url: url + "/proc/del_body.php", // 요기에
|
||||
type: 'POST',
|
||||
processData: false,
|
||||
contentType: false,
|
||||
data : formData,
|
||||
success: function(data) {
|
||||
data: formData,
|
||||
success: function (data) {
|
||||
// Toss
|
||||
var response = data;
|
||||
$('.char-body-list').empty().append(response);
|
||||
$('.ch-body .img img').attr('src', originam_url);
|
||||
$('#control_body_box').empty();
|
||||
},
|
||||
error: function(data, status, err) {},
|
||||
complete: function() {
|
||||
error: function (data, status, err) { },
|
||||
complete: function () {
|
||||
// Complete
|
||||
$('.loading').removeClass('mask');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if(type == 'set') {
|
||||
if(confirm("해당 데이터를 기본 전신으로 설정하시겠습니까?")) {
|
||||
if (type == 'set') {
|
||||
if (confirm("해당 데이터를 기본 전신으로 설정하시겠습니까?")) {
|
||||
$('.loading').addClass('mask');
|
||||
$.ajax({
|
||||
cache : false,
|
||||
url : url + "/proc/set_body.php", // 요기에
|
||||
type : 'POST',
|
||||
cache: false,
|
||||
url: url + "/proc/set_body.php", // 요기에
|
||||
type: 'POST',
|
||||
processData: false,
|
||||
contentType: false,
|
||||
data : formData,
|
||||
success: function(data) {
|
||||
data: formData,
|
||||
success: function (data) {
|
||||
$('#control_body_box').empty();
|
||||
},
|
||||
error: function(data, status, err) {},
|
||||
complete: function() {
|
||||
error: function (data, status, err) { },
|
||||
complete: function () {
|
||||
// Complete
|
||||
$('.loading').removeClass('mask');
|
||||
}
|
||||
|
|
@ -121,20 +124,20 @@ if($body_cnt > 0) {
|
|||
function fn_viewer_chBody(idx, img, obj) {
|
||||
var control_html = '';
|
||||
|
||||
<?php if($update_href) { ?>
|
||||
if(idx) {
|
||||
<?php if ($update_href) { ?>
|
||||
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 {
|
||||
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_body_box').html(control_html);
|
||||
<?php } ?>
|
||||
|
||||
if(img) {
|
||||
if (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');
|
||||
|
|
@ -145,4 +148,4 @@ if($body_cnt > 0) {
|
|||
<div id="control_body_box"></div>
|
||||
|
||||
<hr class='line' />
|
||||
<?php } ?>
|
||||
<?php }
|
||||
|
|
|
|||
|
|
@ -1,19 +1,20 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
$comment_action_url = https_url(G5_BBS_DIR)."/write_comment_update.php";
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
$comment_action_url = https_url(G5_BBS_DIR) . "/write_comment_update.php";
|
||||
?>
|
||||
|
||||
<script>
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
||||
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
||||
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</script>
|
||||
|
||||
<!-- 댓글 시작 { -->
|
||||
<section id="bo_vc">
|
||||
<?php
|
||||
$cmt_amt = count($list);
|
||||
for ($i=0; $i<$cmt_amt; $i++) {
|
||||
for ($i = 0; $i < $cmt_amt; $i++) {
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
$cmt_depth = ""; // 댓글단계
|
||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 10;
|
||||
|
|
@ -27,34 +28,39 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||
$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"
|
||||
style="border-left-width:<?php echo $cmt_depth ?>px;" <?php } ?>>
|
||||
<header style="z-index:<?php echo $cmt_sv; ?>">
|
||||
<?php echo $list[$i]['name'] ?>
|
||||
<?php if ($is_ip_view) { ?>
|
||||
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
|
||||
<?php } ?>
|
||||
<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>
|
||||
<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
|
||||
include(G5_SNS_PATH.'/view_comment_list.sns.skin.php');
|
||||
include(G5_SNS_PATH . '/view_comment_list.sns.skin.php');
|
||||
?>
|
||||
</header>
|
||||
|
||||
<!-- 댓글 출력 -->
|
||||
<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
|
||||
src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
|
||||
<?php echo $comment ?>
|
||||
</p>
|
||||
|
||||
<span id="edit_<?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 ?>">
|
||||
<textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
|
||||
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'], "secret") ?>"
|
||||
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']);
|
||||
|
||||
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' ";
|
||||
$cmt = sql_fetch($sql);
|
||||
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))
|
||||
|
|
@ -62,31 +68,41 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||
$c_wr_content = $cmt['wr_content'];
|
||||
}
|
||||
|
||||
$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_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';
|
||||
?>
|
||||
<footer>
|
||||
<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_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 } ?>
|
||||
<?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 } ?>
|
||||
<?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_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 } ?>
|
||||
<?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 } ?>
|
||||
<?php if ($i == 0) { //댓글이 없다면 ?>
|
||||
<p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
|
||||
|
||||
</section>
|
||||
<!-- } 댓글 끝 -->
|
||||
|
||||
<?php if ($is_comment_write) {
|
||||
if($w == '')
|
||||
if ($w == '')
|
||||
$w = 'c';
|
||||
?>
|
||||
<!-- 댓글 쓰기 시작 { -->
|
||||
<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">
|
||||
?>
|
||||
<!-- 댓글 쓰기 시작 { -->
|
||||
<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">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
|
|
@ -108,11 +124,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||
<?php if ($is_guest) { ?>
|
||||
<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 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
|
||||
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>
|
||||
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td>
|
||||
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10"
|
||||
maxLength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
|
|
@ -129,12 +147,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||
<tr>
|
||||
<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 } ?>
|
||||
<?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(){
|
||||
$(document).on("keyup change", "textarea#wr_content[maxlength]", function () {
|
||||
var str = $(this).val()
|
||||
var mx = parseInt($(this).attr("maxlength"))
|
||||
if (str.length > mx) {
|
||||
|
|
@ -154,14 +173,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||
</div>
|
||||
|
||||
</form>
|
||||
</aside>
|
||||
</aside>
|
||||
|
||||
<script>
|
||||
var save_before = '';
|
||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
<script>
|
||||
var save_before = '';
|
||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
|
||||
function good_and_write()
|
||||
{
|
||||
function good_and_write() {
|
||||
var f = document.fviewcomment;
|
||||
if (fviewcomment_submit(f)) {
|
||||
f.is_good.value = 1;
|
||||
|
|
@ -169,10 +187,9 @@ function good_and_write()
|
|||
} else {
|
||||
f.is_good.value = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function fviewcomment_submit(f)
|
||||
{
|
||||
function fviewcomment_submit(f) {
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
|
||||
f.is_good.value = 0;
|
||||
|
|
@ -180,7 +197,7 @@ function fviewcomment_submit(f)
|
|||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g5_bbs_url+"/ajax.filter.php",
|
||||
url: g5_bbs_url + "/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": "",
|
||||
|
|
@ -189,14 +206,14 @@ function fviewcomment_submit(f)
|
|||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
success: function (data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
|
@ -204,63 +221,54 @@ function fviewcomment_submit(f)
|
|||
// 양쪽 공백 없애기
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
||||
if (char_min > 0 || char_max > 0)
|
||||
{
|
||||
if (char_min > 0 || char_max > 0) {
|
||||
check_byte('wr_content', 'char_count');
|
||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||
if (char_min > 0 && char_min > cnt)
|
||||
{
|
||||
alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
||||
if (char_min > 0 && char_min > cnt) {
|
||||
alert("댓글은 " + char_min + "글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
} else if (char_max > 0 && char_max < cnt)
|
||||
{
|
||||
alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
} else if (char_max > 0 && char_max < cnt) {
|
||||
alert("댓글은 " + char_max + "글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!document.getElementById('wr_content').value)
|
||||
{
|
||||
else if (!document.getElementById('wr_content').value) {
|
||||
alert("댓글을 입력하여 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof(f.wr_name) != 'undefined')
|
||||
{
|
||||
if (typeof (f.wr_name) != 'undefined') {
|
||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||
if (f.wr_name.value == '')
|
||||
{
|
||||
if (f.wr_name.value == '') {
|
||||
alert('이름이 입력되지 않았습니다.');
|
||||
f.wr_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(f.wr_password) != 'undefined')
|
||||
{
|
||||
if (typeof (f.wr_password) != 'undefined') {
|
||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||
if (f.wr_password.value == '')
|
||||
{
|
||||
if (f.wr_password.value == '') {
|
||||
alert('비밀번호가 입력되지 않았습니다.');
|
||||
f.wr_password.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
<?php if($is_guest) echo chk_captcha_js(); ?>
|
||||
<?php if ($is_guest)
|
||||
echo chk_captcha_js(); ?>
|
||||
|
||||
set_comment_token(f);
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function comment_box(comment_id, work)
|
||||
{
|
||||
function comment_box(comment_id, work) {
|
||||
var el_id;
|
||||
// 댓글 아이디가 넘어오면 답변, 수정
|
||||
if (comment_id)
|
||||
{
|
||||
if (comment_id) {
|
||||
if (work == 'c')
|
||||
el_id = 'reply_' + comment_id;
|
||||
else
|
||||
|
|
@ -269,10 +277,8 @@ function comment_box(comment_id, work)
|
|||
else
|
||||
el_id = 'bo_vc_w';
|
||||
|
||||
if (save_before != el_id)
|
||||
{
|
||||
if (save_before)
|
||||
{
|
||||
if (save_before != el_id) {
|
||||
if (save_before) {
|
||||
document.getElementById(save_before).style.display = 'none';
|
||||
document.getElementById(save_before).innerHTML = '';
|
||||
}
|
||||
|
|
@ -280,12 +286,11 @@ function comment_box(comment_id, work)
|
|||
document.getElementById(el_id).style.display = '';
|
||||
document.getElementById(el_id).innerHTML = save_html;
|
||||
// 댓글 수정
|
||||
if (work == 'cu')
|
||||
{
|
||||
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)
|
||||
if (document.getElementById('secret_comment_' + comment_id).value)
|
||||
document.getElementById('wr_secret').checked = true;
|
||||
else
|
||||
document.getElementById('wr_secret').checked = false;
|
||||
|
|
@ -294,31 +299,30 @@ function comment_box(comment_id, work)
|
|||
document.getElementById('comment_id').value = comment_id;
|
||||
document.getElementById('w').value = work;
|
||||
|
||||
if(save_before)
|
||||
if (save_before)
|
||||
$("#captcha_reload").trigger("click");
|
||||
|
||||
save_before = el_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function comment_delete()
|
||||
{
|
||||
function comment_delete() {
|
||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||
}
|
||||
}
|
||||
|
||||
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||
|
||||
<?php if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
|
||||
// sns 등록
|
||||
$(function() {
|
||||
<?php if ($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
|
||||
// sns 등록
|
||||
$(function () {
|
||||
$("#bo_vc_send_sns").load(
|
||||
"<?php echo G5_SNS_URL; ?>/view_comment_write.sns.skin.php?bo_table=<?php echo $bo_table; ?>",
|
||||
function() {
|
||||
function () {
|
||||
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
}
|
||||
);
|
||||
});
|
||||
<?php } ?>
|
||||
</script>
|
||||
});
|
||||
<?php } ?>
|
||||
</script>
|
||||
<?php } ?>
|
||||
<!-- } 댓글 쓰기 끝 -->
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
if($w == '') {
|
||||
if ($w == '') {
|
||||
$write['wr_4'] = '외관';
|
||||
$write['wr_5'] = '성격';
|
||||
$write['wr_6'] = '특징';
|
||||
|
|
@ -12,7 +13,8 @@ if($w == '') {
|
|||
<tr>
|
||||
<th scope="row">캐릭터 이름</th>
|
||||
<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"
|
||||
maxlength="255">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -31,82 +33,85 @@ if($w == '') {
|
|||
</table>
|
||||
<br />
|
||||
<table class="theme-form">
|
||||
<colgroup>
|
||||
<colgroup>
|
||||
<col style="width: 90px;" />
|
||||
<col style="width: 80px;" />
|
||||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th rowspan="2" scope="row">두상</th>
|
||||
<td>외부경로</td>
|
||||
<td>
|
||||
<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">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<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 ?> 이하만 업로드 가능"
|
||||
class="frm_file frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2" scope="row">전신</th>
|
||||
<td>외부경로</td>
|
||||
<td>
|
||||
<input type="hidden" name="wr_2_prev" value="<?php echo $write['wr_2'] ?>" />
|
||||
<input type="text" name="wr_2" value="<?php echo $write['wr_2'] ?>" class="frm_input" size="30" maxlength="255">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>업로드</td>
|
||||
<td>
|
||||
<input type="file" name="wr_2_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
||||
<input type="file" name="wr_2_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
|
||||
class="frm_file frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<table class="theme-form">
|
||||
<colgroup>
|
||||
<colgroup>
|
||||
<col style="width: 90px;" />
|
||||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">기본정보</th>
|
||||
<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'] ?>"
|
||||
class="frm_input" size="50" maxlength="255">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input full" /></th>
|
||||
<td>
|
||||
<textarea name="wr_4_txt"><?=$write['wr_4_txt']?></textarea>
|
||||
<textarea name="wr_4_txt"><?= $write['wr_4_txt'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input full" /></th>
|
||||
<td>
|
||||
<textarea name="wr_5_txt"><?=$write['wr_5_txt']?></textarea>
|
||||
<textarea name="wr_5_txt"><?= $write['wr_5_txt'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><input type="text" name="wr_6" value="<?php echo $write['wr_6'] ?>" class="frm_input full" /></th>
|
||||
<td>
|
||||
<textarea name="wr_6_txt"><?=$write['wr_6_txt']?></textarea>
|
||||
<textarea name="wr_6_txt"><?= $write['wr_6_txt'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><input type="text" name="wr_7" value="<?php echo $write['wr_7'] ?>" class="frm_input full" /></th>
|
||||
<td>
|
||||
<textarea name="wr_7_txt"><?=$write['wr_7_txt']?></textarea>
|
||||
<textarea name="wr_7_txt"><?= $write['wr_7_txt'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><input type="text" name="wr_8" value="<?php echo $write['wr_8'] ?>" class="frm_input full" /></th>
|
||||
<td>
|
||||
<textarea name="wr_8_txt"><?=$write['wr_8_txt']?></textarea>
|
||||
<textarea name="wr_8_txt"><?= $write['wr_8_txt'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php'); // 달력
|
||||
if (!defined('_GNUBOARD_'))
|
||||
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_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;
|
||||
}
|
||||
?>
|
||||
|
|
@ -17,7 +18,8 @@ for($i=0; $row = sql_fetch_array($character_list); $i++) {
|
|||
<tr>
|
||||
<th scope="row">시작일자</th>
|
||||
<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"
|
||||
size="12" maxlength="255">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -30,17 +32,17 @@ for($i=0; $row = sql_fetch_array($character_list); $i++) {
|
|||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(function(){
|
||||
//<![CDATA[
|
||||
$(function () {
|
||||
$(".datepicker").datepicker({
|
||||
dateFormat: "yy-mm-dd",
|
||||
onSelect:function(dateText, inst) {
|
||||
onSelect: function (dateText, inst) {
|
||||
console.log(dateText);
|
||||
console.log(inst);
|
||||
}
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
});
|
||||
//]]>
|
||||
</script><!-- 달력 끝 -->
|
||||
<br />
|
||||
<table class="theme-form">
|
||||
|
|
@ -60,14 +62,17 @@ $(function(){
|
|||
<td>
|
||||
<select name="wr_2">
|
||||
<?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']}' ";
|
||||
if($write['wr_2'] == $character_ids[$i]['wr_id']) echo "selected";
|
||||
if ($write['wr_2'] == $character_ids[$i]['wr_id'])
|
||||
echo "selected";
|
||||
echo ">{$character_ids[$i]['wr_subject']}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td></tr><tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>관계명</td>
|
||||
<td>
|
||||
<input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input" size="30" maxlength="255">
|
||||
|
|
@ -84,14 +89,17 @@ $(function(){
|
|||
<td>
|
||||
<select name="wr_3">
|
||||
<?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']}' ";
|
||||
if($write['wr_3'] == $character_ids[$i]['wr_id']) echo "selected";
|
||||
if ($write['wr_3'] == $character_ids[$i]['wr_id'])
|
||||
echo "selected";
|
||||
echo ">{$character_ids[$i]['wr_subject']}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td></tr><tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>관계명</td>
|
||||
<td>
|
||||
<input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input" size="30" maxlength="255">
|
||||
|
|
@ -118,7 +126,8 @@ $(function(){
|
|||
<tr>
|
||||
<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 ?> 이하만 업로드 가능"
|
||||
class="frm_file frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once($board_skin_path.'/_setting.php');
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once($board_skin_path . '/_setting.php');
|
||||
// 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_2_txt` text NOT NULL AFTER `wr_2` ");
|
||||
sql_query(" ALTER TABLE `{$write_table}` ADD `wr_3_txt` text NOT NULL AFTER `wr_3` ");
|
||||
|
|
@ -17,9 +18,9 @@ if(!isset($write['wr_1_txt'])) {
|
|||
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'];
|
||||
if($type == 'pair' && $total_count < 2) {
|
||||
if ($type == 'pair' && $total_count < 2) {
|
||||
alert("페어로 등록할 수 있는 캐릭터의 수가 적습니다.");
|
||||
}
|
||||
} else {
|
||||
|
|
@ -27,21 +28,22 @@ if($w==''){
|
|||
|
||||
$delete_href = '';
|
||||
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">
|
||||
|
||||
<?php if($board['bo_content_head']) { ?>
|
||||
<?php if ($board['bo_content_head']) { ?>
|
||||
<div class="board-notice-box">
|
||||
<?=stripslashes($board['bo_content_head']);?>
|
||||
<?= stripslashes($board['bo_content_head']); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 게시물 작성/수정 시작 { -->
|
||||
<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);"
|
||||
method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
|
|
@ -64,20 +66,20 @@ if($w==''){
|
|||
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>';
|
||||
$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) {
|
||||
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
|
||||
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">';
|
||||
}
|
||||
}
|
||||
|
||||
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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -93,28 +95,32 @@ if($w==''){
|
|||
<?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>
|
||||
<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) { ?>
|
||||
<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>
|
||||
<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) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email"
|
||||
size="50" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_homepage">홈페이지</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="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input"
|
||||
size="50"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
|
@ -129,7 +135,7 @@ if($w==''){
|
|||
<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" >
|
||||
<select name="ca_name" id="ca_name" required class="required">
|
||||
<option value="">선택하세요</option>
|
||||
<?php echo $category_option ?>
|
||||
</select>
|
||||
|
|
@ -137,10 +143,10 @@ if($w==''){
|
|||
</tr>
|
||||
<?php }
|
||||
|
||||
if($type == 'pair') {
|
||||
include_once($board_skin_path."/write.pair.skin.php");
|
||||
if ($type == 'pair') {
|
||||
include_once($board_skin_path . "/write.pair.skin.php");
|
||||
} else {
|
||||
include_once($board_skin_path."/write.character.skin.php");
|
||||
include_once($board_skin_path . "/write.character.skin.php");
|
||||
}
|
||||
|
||||
if ($is_guest) { //자동등록방지 ?>
|
||||
|
|
@ -156,9 +162,12 @@ if($w==''){
|
|||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<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>
|
||||
<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>
|
||||
|
||||
|
|
@ -167,7 +176,7 @@ if($w==''){
|
|||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g5_bbs_url+"/ajax.filter.php",
|
||||
url: g5_bbs_url + "/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": f.wr_subject.value,
|
||||
|
|
@ -176,7 +185,7 @@ if($w==''){
|
|||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
success: function (data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once($board_skin_path.'/_setting.php');
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once $board_skin_path . "/_setting.php";
|
||||
// 두상 및 전신 저장 처리
|
||||
|
||||
$sql_article = " wr_ing = '{$wr_ing}',
|
||||
|
|
@ -13,61 +14,61 @@ $sql_article = " wr_ing = '{$wr_ing}',
|
|||
wr_10_txt = '{$wr_10_txt}'";
|
||||
|
||||
|
||||
if($type == 'pair') {
|
||||
if ($type == 'pair') {
|
||||
|
||||
$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이 이전에 직접 등록한 데이터일 경우
|
||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_1_prev);
|
||||
@unlink($prev_file_path);
|
||||
}
|
||||
if($_FILES['wr_1_file']['name']) {
|
||||
if ($_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);
|
||||
$wr_1 = $character_image_url."/".$image_name;
|
||||
$wr_1 = $character_image_url . "/" . $image_name;
|
||||
}
|
||||
$sql_article .= " , wr_1 = '{$wr_1}'";
|
||||
|
||||
} 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이 이전에 직접 등록한 데이터일 경우
|
||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_1_prev);
|
||||
@unlink($prev_file_path);
|
||||
}
|
||||
if($_FILES['wr_1_file']['name']) {
|
||||
if ($_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);
|
||||
$wr_1 = $character_image_url."/".$image_name;
|
||||
$wr_1 = $character_image_url . "/" . $image_name;
|
||||
}
|
||||
$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이 이전에 직접 등록한 데이터일 경우
|
||||
$prev_file_path = str_replace(G5_URL, G5_PATH, $wr_2_prev);
|
||||
@unlink($prev_file_path);
|
||||
}
|
||||
if($_FILES['wr_2_file']['name']) {
|
||||
if ($_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);
|
||||
$wr_2 = $character_image_url."/".$image_name;
|
||||
$wr_2 = $character_image_url . "/" . $image_name;
|
||||
}
|
||||
$sql_article .= " , wr_2 = '{$wr_2}'";
|
||||
}
|
||||
|
|
@ -77,5 +78,3 @@ $sql = " update {$write_table}
|
|||
set {$sql_article}
|
||||
where wr_id = '{$wr_id}' ";
|
||||
sql_query($sql);
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
/*
|
||||
LOG HashGuide
|
||||
|
|
@ -17,14 +18,12 @@ $log_type = $data_log[0];
|
|||
|
||||
$item_log = explode("||", $item_log);
|
||||
|
||||
if($log_type) {
|
||||
include($board_skin_path."/action/log.{$log_type}.skin.php");
|
||||
if ($log_type) {
|
||||
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
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&'.$qstr.'&#log_'.$write['wr_parent']);
|
||||
?>
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
goto_url('./board.php?bo_table=' . $bo_table . '&' . $qstr . '&#log_' . $write['wr_parent']);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ include_once "../../../head.sub.php";
|
|||
$sql = "select * from {$g5['emoticon_table']}";
|
||||
$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">
|
||||
|
|
@ -18,15 +18,15 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_CSS_URL.'/style.emoticon.css">
|
|||
|
||||
<div id="emoticon_content">
|
||||
<ul>
|
||||
<?php for($i=0; $row = sql_fetch_array($result); $i++) { ?>
|
||||
<?php for ($i = 0; $row = sql_fetch_array($result); $i++) { ?>
|
||||
<li>
|
||||
<em>
|
||||
<img src="<?=G5_URL?><?=$row['me_img']?>" alt="" />
|
||||
<img src="<?= G5_URL ?><?= $row['me_img'] ?>" alt="" />
|
||||
</em>
|
||||
<span><?=$row['me_text']?></span>
|
||||
<span><?= $row['me_text'] ?></span>
|
||||
</li>
|
||||
<?php }
|
||||
if($i == 0) {
|
||||
if ($i == 0) {
|
||||
?>
|
||||
<li class="no-data">
|
||||
등록된 이모티콘이 없습니다.
|
||||
|
|
|
|||
|
|
@ -1,41 +1,41 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$update_href = $delete_href = '';
|
||||
|
||||
// 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능
|
||||
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;
|
||||
if(!$list_item['wr_log'] || $is_admin) {
|
||||
$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) {
|
||||
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']) { // 회원이 쓴 글이 아니라면
|
||||
$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;
|
||||
} 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;
|
||||
$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 = $is_favorite['cnt'] > 0 ? true : false;
|
||||
|
||||
if($list_item['wr_type'] == 'UPLOAD') {
|
||||
if ($list_item['wr_type'] == 'UPLOAD') {
|
||||
// Upload 형태로 로그를 등록 하였을 때
|
||||
$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_height = $thumb['height'];
|
||||
} else if($list_item['wr_type'] == 'URL') {
|
||||
} else if ($list_item['wr_type'] == '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_height = $list_item['wr_height'];
|
||||
}
|
||||
|
||||
$log_class = '';
|
||||
$blind_class ='';
|
||||
$blind_class = '';
|
||||
$h_class = '';
|
||||
|
||||
// 멤버공개 데이터일 시
|
||||
|
|
@ -43,31 +43,31 @@ $is_viewer = true;
|
|||
$data_width = 300;
|
||||
$no_member_class = '';
|
||||
|
||||
if($list_item['wr_secret'] == '1' && !$is_member) {
|
||||
if ($list_item['wr_secret'] == '1' && !$is_member) {
|
||||
$is_viewer = false;
|
||||
$no_member_class = ' empty ';
|
||||
} else {
|
||||
$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(G5_IS_MOBILE) {
|
||||
if ($board['bo_gallery_height'] && ($image_height >= $board['bo_gallery_height'] || $list_item['wr_plip'] == '1')) {
|
||||
if (G5_IS_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);
|
||||
$ori = explode("/", $thumb['ori']);
|
||||
$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 .= '<img src="'.$thumb['src'].'" >';
|
||||
$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 .= '<img src="' . $thumb['src'] . '" >';
|
||||
$image_url .= '</a>';
|
||||
$image_width = $thumb['width'];
|
||||
$image_height = $thumb['height'];
|
||||
} else if($list_item['wr_type'] == 'URL') {
|
||||
$image_url = '<a href="'.$list_item['wr_url'].'" target="_blank" class="view_image">';
|
||||
$image_url .= '<img src="'.$list_item['wr_url'].'" >';
|
||||
} else if ($list_item['wr_type'] == 'URL') {
|
||||
$image_url = '<a href="' . $list_item['wr_url'] . '" target="_blank" class="view_image">';
|
||||
$image_url .= '<img src="' . $list_item['wr_url'] . '" >';
|
||||
$image_url .= '</a>';
|
||||
}
|
||||
} else {
|
||||
|
|
@ -75,11 +75,11 @@ if($is_viewer) {
|
|||
}
|
||||
}
|
||||
// 블라인드 (19금 필터링) 여부 설정
|
||||
if($list_item['wr_adult'] == '1') {
|
||||
if ($list_item['wr_adult'] == '1') {
|
||||
$blind_class = "ui-blind";
|
||||
}
|
||||
// 리플 아래로 내리기 여부 설정
|
||||
if($list_item['wr_wide'] == '1') {
|
||||
if ($list_item['wr_wide'] == '1') {
|
||||
$h_class = "ui-wrap";
|
||||
}
|
||||
}
|
||||
|
|
@ -92,62 +92,64 @@ 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']}'");
|
||||
?>
|
||||
|
||||
<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="ui-pic <?=$no_member_class?>" data-width="<?=$data_width?>">
|
||||
<div class="ui-pic <?= $no_member_class ?>" data-width="<?= $data_width ?>">
|
||||
|
||||
<!-- 로그 상단 영역 -->
|
||||
<div class="pic-header">
|
||||
<p class="no">
|
||||
|
||||
<?php // 로그 넘버링 출력 ?>
|
||||
No. <?=($list_item['wr_num'] * -1)?>
|
||||
No. <?= ($list_item['wr_num'] * -1) ?>
|
||||
|
||||
<?php if($list_item['ca_name']){
|
||||
<?php if ($list_item['ca_name']) {
|
||||
// 카테고리 출력
|
||||
?>
|
||||
<span data-category="<?=$list_item['ca_name']?>" class="ico-category">
|
||||
<?=$list_item['ca_name']?>
|
||||
<span data-category="<?= $list_item['ca_name'] ?>" class="ico-category">
|
||||
<?= $list_item['ca_name'] ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php if($list_item['wr_adult']) {
|
||||
<?php if ($list_item['wr_adult']) {
|
||||
// 19금 필터링 마크
|
||||
?>
|
||||
<span style="color:#d3393d;">■</span>
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
<?php if($is_viewer) {
|
||||
<?php if ($is_viewer) {
|
||||
// 보기 권한이 존재 할 경우 (멤버의 경우)
|
||||
// -- 버튼 영역 출력
|
||||
if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="del" onclick="del(this.href); return false;">삭제</a><?php } ?>
|
||||
<a href="?bo_table=<?=$bo_table?>&log=<?=$list_item['wr_num'] * -1?>&single=Y" target="_blank" class="new">로그링크</a>
|
||||
if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="del"
|
||||
onclick="del(this.href); return false;">삭제</a><?php } ?>
|
||||
<a href="?bo_table=<?= $bo_table ?>&log=<?= $list_item['wr_num'] * -1 ?>&single=Y" target="_blank"
|
||||
class="new">로그링크</a>
|
||||
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="mod">수정</a><?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- // 로그 상단 영역 -->
|
||||
|
||||
<!-- 로그 이미지 -->
|
||||
<div class="pic-data <?=$log_class?> <?=!$member['mb_adult'] ? $blind_class : ""?>">
|
||||
<?php if(!$is_viewer) {
|
||||
<div class="pic-data <?= $log_class ?> <?= !$member['mb_adult'] ? $blind_class : "" ?>">
|
||||
<?php if (!$is_viewer) {
|
||||
// 비공개 이미지
|
||||
?>
|
||||
<div>
|
||||
<img src="<?=$board_skin_url?>/img/img_lock.png" alt="비공개" />
|
||||
<img src="<?= $board_skin_url ?>/img/img_lock.png" alt="비공개" />
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
|
||||
<?php if($image_url) { ?>
|
||||
<div data-height="<?=$image_height?>">
|
||||
<?=$image_url?>
|
||||
<?php if ($image_url) { ?>
|
||||
<div data-height="<?= $image_height ?>">
|
||||
<?= $image_url ?>
|
||||
</div>
|
||||
<?php if($log_class && !G5_IS_MOBILE) {
|
||||
<?php if ($log_class && !G5_IS_MOBILE) {
|
||||
// 접기 기능 (펼치기)
|
||||
?>
|
||||
<a href="#" class="ui-open-log ui-btn">OPEN</a>
|
||||
<?php } ?>
|
||||
<?php if($blind_class) {
|
||||
<?php if ($blind_class) {
|
||||
// 블라인드 (19금 필터링)
|
||||
?>
|
||||
<a href="#" class="ui-remove-blind"><span>해당 로그는 필터 된 로그 입니다.<br />확인을 원하실 경우 클릭해주세요.</span></a>
|
||||
|
|
@ -163,12 +165,12 @@ sql_query("update {$g5['call_table']} set bc_check = 1 where re_mb_id = '{$membe
|
|||
|
||||
<!-- 로그 코멘트 출력 부분 -->
|
||||
<div class="ui-comment">
|
||||
<?php if($is_viewer) { ?>
|
||||
<?php if ($is_viewer) { ?>
|
||||
<div class="item-comment-box">
|
||||
<?php include($board_skin_path."/view_comment.php");?>
|
||||
<?php include($board_skin_path . "/view_comment.php"); ?>
|
||||
</div>
|
||||
<div class="item-comment-form-box">
|
||||
<?php include($board_skin_path."/write_comment.php");?>
|
||||
<?php include($board_skin_path . "/write_comment.php"); ?>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
멤버 공개용 로그 입니다.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
include_once($board_skin_path.'/emoticon/_setting.emoticon.php');
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
|
||||
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_wr_id', $_REQUEST['wr_id']);
|
||||
|
|
@ -18,9 +19,9 @@ $owner_behind = $owner_behind['cs_etc_4'];
|
|||
|
||||
<div id="load_log_board">
|
||||
|
||||
<?php if($board['bo_content_head']) { ?>
|
||||
<?php if ($board['bo_content_head']) { ?>
|
||||
<div class="board-notice-box">
|
||||
<?=stripslashes($board['bo_content_head']);?>
|
||||
<?= stripslashes($board['bo_content_head']); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
|
@ -28,7 +29,8 @@ $owner_behind = $owner_behind['cs_etc_4'];
|
|||
<?php if ($is_category) { ?>
|
||||
<nav class="board-category">
|
||||
<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>
|
||||
</li>
|
||||
<?php echo $category_list ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
@ -43,25 +45,27 @@ $owner_behind = $owner_behind['cs_etc_4'];
|
|||
<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 } ?>
|
||||
<?php if ($write_pages) { ?> <?php echo $write_pages; ?><?php } ?>
|
||||
|
||||
|
||||
<!-- 리스트 시작 -->
|
||||
<div id="log_list" class="none-trans">
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
for ($i = 0; $i < count($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>
|
||||
|
||||
<?php if($write_pages) { ?>
|
||||
<?php if ($write_pages) { ?>
|
||||
<div class="ui-paging">
|
||||
<?php echo $write_pages; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<div class="searc-sub-box">
|
||||
|
||||
|
|
@ -69,18 +73,19 @@ $owner_behind = $owner_behind['cs_etc_4'];
|
|||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<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">
|
||||
<fieldset class="sch_category select-box">
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>코멘트</option>
|
||||
<option value="hash"<?php echo get_selected($sfl, 'hash'); ?>>해시</option>
|
||||
<option value="log"<?php echo get_selected($sfl, 'log'); ?>>번호</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="log" <?php echo get_selected($sfl, 'log'); ?>>번호</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
<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"
|
||||
maxlength="20">
|
||||
</fieldset>
|
||||
<fieldset class="sch_button">
|
||||
<button type="submit" class="ui-btn point">검색</button>
|
||||
|
|
@ -93,21 +98,20 @@ $owner_behind = $owner_behind['cs_etc_4'];
|
|||
</div>
|
||||
|
||||
<script>
|
||||
var avo_mb_id = "<?=$member['mb_id']?>";
|
||||
var avo_board_skin_path = "<?=$board_skin_path?>";
|
||||
var avo_board_skin_url = "<?=$board_skin_url?>";
|
||||
var avo_mb_id = "<?= $member['mb_id'] ?>";
|
||||
var avo_board_skin_path = "<?= $board_skin_path ?>";
|
||||
var avo_board_skin_url = "<?= $board_skin_url ?>";
|
||||
|
||||
var save_before = '';
|
||||
var save_html = '';
|
||||
var save_before = '';
|
||||
var save_html = '';
|
||||
|
||||
function fviewcomment_submit(f)
|
||||
{
|
||||
function fviewcomment_submit(f) {
|
||||
set_comment_token(f);
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g5_bbs_url+"/ajax.filter.php",
|
||||
url: g5_bbs_url + "/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"content": f.wr_content.value
|
||||
|
|
@ -115,13 +119,13 @@ function fviewcomment_submit(f)
|
|||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
success: function (data, textStatus) {
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
|
@ -131,22 +135,18 @@ function fviewcomment_submit(f)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (typeof(f.wr_name) != 'undefined')
|
||||
{
|
||||
if (typeof (f.wr_name) != 'undefined') {
|
||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||
if (f.wr_name.value == '')
|
||||
{
|
||||
if (f.wr_name.value == '') {
|
||||
alert('이름이 입력되지 않았습니다.');
|
||||
f.wr_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(f.wr_password) != 'undefined')
|
||||
{
|
||||
if (typeof (f.wr_password) != 'undefined') {
|
||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||
if (f.wr_password.value == '')
|
||||
{
|
||||
if (f.wr_password.value == '') {
|
||||
alert('비밀번호가 입력되지 않았습니다.');
|
||||
f.wr_password.focus();
|
||||
return false;
|
||||
|
|
@ -154,16 +154,15 @@ function fviewcomment_submit(f)
|
|||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function comment_delete()
|
||||
{
|
||||
function comment_delete() {
|
||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||
}
|
||||
}
|
||||
|
||||
function comment_box(co_id, wr_id) {
|
||||
function comment_box(co_id, wr_id) {
|
||||
|
||||
if($('#c_'+co_id).find('.modify_area').is(':visible')) {
|
||||
if ($('#c_' + co_id).find('.modify_area').is(':visible')) {
|
||||
$('.modify_area').hide();
|
||||
$('.original_comment_area').show();
|
||||
co_id = '';
|
||||
|
|
@ -172,27 +171,28 @@ function comment_box(co_id, wr_id) {
|
|||
$('.modify_area').hide();
|
||||
$('.original_comment_area').show();
|
||||
|
||||
$('#c_'+co_id).find('.modify_area').show();
|
||||
$('#c_'+co_id).find('.original_comment_area').hide();
|
||||
$('#save_co_comment_'+co_id).focus();
|
||||
$('#c_' + co_id).find('.modify_area').show();
|
||||
$('#c_' + co_id).find('.original_comment_area').hide();
|
||||
$('#save_co_comment_' + co_id).focus();
|
||||
}
|
||||
|
||||
var modify_form = document.getElementById('frm_modify_comment');
|
||||
modify_form.wr_id.value = wr_id;
|
||||
modify_form.comment_id.value = co_id;
|
||||
}
|
||||
}
|
||||
|
||||
function modify_commnet(co_id) {
|
||||
function modify_commnet(co_id) {
|
||||
var modify_form = document.getElementById('frm_modify_comment');
|
||||
var wr_content = $('#save_co_comment_'+co_id).val();
|
||||
var wr_content = $('#save_co_comment_' + co_id).val();
|
||||
|
||||
modify_form.wr_content.value = wr_content;
|
||||
$('#frm_modify_comment').submit();
|
||||
}
|
||||
}
|
||||
|
||||
</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"
|
||||
onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
|
||||
<input type="hidden" name="w" value="cu">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
|
||||
$comment = [];
|
||||
|
|
@ -12,8 +13,7 @@ if ($member['mb_level'] >= $board['bo_comment_level'] && $is_member)
|
|||
//$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 ";
|
||||
$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]['name'] = get_sideview($c_row['mb_id'], cut_str($c_row['wr_name'], 20, ''), $c_row['wr_email'], $c_row['wr_homepage']);
|
||||
|
|
@ -22,33 +22,35 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
|
|||
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']);
|
||||
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)
|
||||
//$comment[$c_i]['content'] = eregi_replace("[^ \n<>]{130}", "\\0\n", $c_row['wr_content']);
|
||||
|
||||
$comment[$c_i]['content'] = $comment[$c_i]['content1']= '비밀글 입니다.';
|
||||
if (!strstr($c_row['wr_option'], 'secret') ||
|
||||
$comment[$c_i]['content'] = $comment[$c_i]['content1'] = '비밀글 입니다.';
|
||||
if (
|
||||
!strstr($c_row['wr_option'], 'secret') ||
|
||||
$is_admin ||
|
||||
($write['mb_id']==$member['mb_id'] && $member['mb_id']) ||
|
||||
($c_row['mb_id']==$member['mb_id'] && $member['mb_id'])) {
|
||||
($write['mb_id'] == $member['mb_id'] && $member['mb_id']) ||
|
||||
($c_row['mb_id'] == $member['mb_id'] && $member['mb_id'])
|
||||
) {
|
||||
$comment[$c_i]['content1'] = $c_row['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']);
|
||||
} else {
|
||||
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$comment[$c_i]['wr_id'];
|
||||
$ss_name = 'ss_secret_comment_' . $bo_table . '_' . $comment[$c_i]['wr_id'];
|
||||
|
||||
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>';
|
||||
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>';
|
||||
else {
|
||||
$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]['datetime'] = substr($c_row['wr_datetime'],2,14);
|
||||
$comment[$c_i]['datetime'] = substr($c_row['wr_datetime'], 2, 14);
|
||||
|
||||
// 관리자가 아니라면 중간 IP 주소를 감춘후 보여줍니다.
|
||||
$comment[$c_i]['ip'] = $c_row['wr_ip'];
|
||||
|
|
@ -58,24 +60,19 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
|
|||
$comment[$c_i]['is_reply'] = false;
|
||||
$comment[$c_i]['is_edit'] = false;
|
||||
$comment[$c_i]['is_del'] = false;
|
||||
if ($is_comment_write || $is_admin)
|
||||
{
|
||||
if ($is_comment_write || $is_admin) {
|
||||
$token = '';
|
||||
|
||||
if ($member['mb_id'])
|
||||
{
|
||||
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;
|
||||
if ($member['mb_id']) {
|
||||
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;
|
||||
$comment[$c_i]['is_edit'] = true;
|
||||
$comment[$c_i]['is_del'] = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} 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;
|
||||
$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;
|
||||
}
|
||||
}
|
||||
|
|
@ -86,30 +83,24 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
|
|||
|
||||
// 05.05.22
|
||||
// 답변있는 코멘트는 수정, 삭제 불가
|
||||
if ($i > 0 && !$is_admin)
|
||||
{
|
||||
if ($c_row['wr_comment_reply'])
|
||||
{
|
||||
if ($i > 0 && !$is_admin) {
|
||||
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'])
|
||||
{
|
||||
$comment[$c_i-1]['is_edit'] = false;
|
||||
$comment[$c_i-1]['is_del'] = false;
|
||||
if ($tmp_comment_reply == $comment[$c_i - 1]['wr_comment_reply']) {
|
||||
$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;
|
||||
}
|
||||
else
|
||||
{
|
||||
$comment_min = (int)$board['bo_comment_min'];
|
||||
$comment_max = (int)$board['bo_comment_max'];
|
||||
} else {
|
||||
$comment_min = (int) $board['bo_comment_min'];
|
||||
$comment_max = (int) $board['bo_comment_max'];
|
||||
}
|
||||
|
||||
//array_unshift($comment, $list_item);
|
||||
include($board_skin_path.'/view_comment.skin.php');
|
||||
include($board_skin_path . '/view_comment.skin.php');
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<?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];
|
||||
$comment_id = $log_comment['wr_id'];
|
||||
|
|
@ -9,24 +10,24 @@ for ($index=0; $index<count($comment); $index++) {
|
|||
$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);
|
||||
|
||||
if($log_comment['wr_log'] && !$is_admin) {
|
||||
if ($log_comment['wr_log'] && !$is_admin) {
|
||||
// 로그 (탐색 / 조합 등의 액션 수행)의 흔적이 있을 경우
|
||||
// 관리자가 아니면 삭제 불가
|
||||
$is_delete = false;
|
||||
}
|
||||
|
||||
if($log_comment['wr_id'] != $log_comment['wr_id'] && ($log_comment['is_reply'] || $log_comment['is_edit'] || $log_comment['is_del'])) {
|
||||
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') {
|
||||
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'];
|
||||
$c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w_'.$list_item['wr_id'];
|
||||
$c_reply_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=c#bo_vc_w_' . $list_item['wr_id'];
|
||||
$c_edit_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=cu#bo_vc_w_' . $list_item['wr_id'];
|
||||
}
|
||||
|
||||
// 캐릭터 정보 출력
|
||||
|
|
@ -34,11 +35,11 @@ for ($index=0; $index<count($comment); $index++) {
|
|||
$comment_owner_front = ""; // 자기 로그 접두문자
|
||||
$comment_owner_behind = ""; // 자기 로그 접미문자
|
||||
|
||||
if(!$log_comment['wr_noname']) {
|
||||
if (!$log_comment['wr_noname']) {
|
||||
// 오너 정보 출력
|
||||
$log_comment['name'] = $log_comment['wr_name'];
|
||||
|
||||
if($list_item['mb_id']!='' && $list_item['mb_id'] == $log_comment['mb_id']) {
|
||||
if ($list_item['mb_id'] != '' && $list_item['mb_id'] == $log_comment['mb_id']) {
|
||||
$is_comment_owner = true;
|
||||
$comment_owner_front = $owner_front;
|
||||
$comment_owner_behind = $owner_behind;
|
||||
|
|
@ -46,31 +47,31 @@ for ($index=0; $index<count($comment); $index++) {
|
|||
} 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">
|
||||
<?php // 로그 작성자와 코멘트 작성자가 동일할 경우, class='owner' 를 추가한다. ?>
|
||||
<p <?=$is_comment_owner ? ' class="owner"' : ''?>>
|
||||
<?=$comment_owner_front?>
|
||||
<span><?=$log_comment['name']?></span>
|
||||
<?=$comment_owner_behind?>
|
||||
<p <?= $is_comment_owner ? ' class="owner"' : '' ?>>
|
||||
<?= $comment_owner_front ?>
|
||||
<span><?= $log_comment['name'] ?></span>
|
||||
<?= $comment_owner_behind ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="co-content">
|
||||
<div class="original_comment_area">
|
||||
<?php
|
||||
if($log_comment['wr_link1']) {
|
||||
if ($log_comment['wr_link1']) {
|
||||
// 로그 등록 시 입력한 외부 링크 정보
|
||||
?>
|
||||
<span class="link-box">
|
||||
<?php if($log_comment['wr_link1']) { ?>
|
||||
<a href="<?=$log_comment['wr_link1']?>" target="_blank" class="link">LINK</a>
|
||||
<?php if ($log_comment['wr_link1']) { ?>
|
||||
<a href="<?= $log_comment['wr_link1'] ?>" target="_blank" class="link">LINK</a>
|
||||
<?php } ?>
|
||||
<?php if($log_comment['wr_link2']) { ?>
|
||||
<a href="<?=$log_comment['wr_link2']?>" target="_blank" class="link">LINK</a>
|
||||
<?php if ($log_comment['wr_link2']) { ?>
|
||||
<a href="<?= $log_comment['wr_link2'] ?>" target="_blank" class="link">LINK</a>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<?php }
|
||||
|
|
@ -80,22 +81,25 @@ for ($index=0; $index<count($comment); $index++) {
|
|||
echo $log_comment['content'];
|
||||
?>
|
||||
</div>
|
||||
<?php if($log_comment['is_edit']) { ?>
|
||||
<?php if ($log_comment['is_edit']) { ?>
|
||||
<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>
|
||||
<button type="button" class="mod_comment ui-btn" onclick="modify_commnet('<?php echo $comment_id ?>'); return false;">수정</button>
|
||||
<textarea
|
||||
id="save_co_comment_<?php echo $comment_id ?>"><?php echo get_text($log_comment['content1'], 0) ?></textarea>
|
||||
<button type="button" class="mod_comment ui-btn"
|
||||
onclick="modify_commnet('<?php echo $comment_id ?>'); return false;">수정</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="co-footer">
|
||||
<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>
|
||||
<?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_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 } ?>
|
||||
<?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_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 } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||
|
||||
$is_error = false;
|
||||
$option = '';
|
||||
|
|
@ -8,27 +9,27 @@ $option_hidden = '';
|
|||
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
||||
$option = '';
|
||||
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) {
|
||||
$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_admin || $is_secret==1) {
|
||||
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
|
||||
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">';
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
@ -40,13 +41,14 @@ if(!$is_error) {
|
|||
|
||||
$categories = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
||||
$category_option = "";
|
||||
for ($i=0; $i<count($categories); $i++) {
|
||||
for ($i = 0; $i < count($categories); $i++) {
|
||||
$checked = '';
|
||||
$class = '';
|
||||
$category = trim($categories[$i]);
|
||||
if (!$category) continue;
|
||||
if (!$category)
|
||||
continue;
|
||||
|
||||
if($i==0 && $ca_name == '') {
|
||||
if ($i == 0 && $ca_name == '') {
|
||||
$ca_name = $category;
|
||||
}
|
||||
if ($category == $ca_name) {
|
||||
|
|
@ -65,30 +67,33 @@ if(!$is_error) {
|
|||
$is_category = true;
|
||||
}
|
||||
|
||||
$image_url = $board_skin_url."/img/no_image.png";
|
||||
if($w == 'u') {
|
||||
if($write['wr_type'] == 'URL') {
|
||||
$image_url = $board_skin_url . "/img/no_image.png";
|
||||
if ($w == 'u') {
|
||||
if ($write['wr_type'] == 'URL') {
|
||||
$image_url = $write['wr_url'];
|
||||
$img_data = "width : ".$write['wr_width']."px / height : ".$write['wr_height']."px";
|
||||
} else if($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 : " . $write['wr_width'] . "px / height : " . $write['wr_height'] . "px";
|
||||
} else if ($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";
|
||||
}
|
||||
|
||||
if($write['wr_subject'] == "--|UPLOADING|--") {
|
||||
if ($write['wr_subject'] == "--|UPLOADING|--") {
|
||||
$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'];
|
||||
if(!$write['wr_subject']) $write['wr_subject'] = 'GUEST';
|
||||
if (!$write['wr_subject'])
|
||||
$write['wr_subject'] = 'GUEST';
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="load_log_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);"
|
||||
method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
|
|
@ -100,36 +105,40 @@ if(!$is_error) {
|
|||
<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="wr_subject" value="<?=$write['wr_subject']?>" />
|
||||
<input type="hidden" name="wr_subject" value="<?= $write['wr_subject'] ?>" />
|
||||
<input type="hidden" name="wr_width" id="wr_width" value="<?php echo $write['wr_width']; ?>">
|
||||
<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>
|
||||
<span><?= $img_data ?></span>
|
||||
<em id="view_image_loading">...LOADING...</em>
|
||||
<?php if($image_url) { ?>
|
||||
<img src="<?=$image_url?>" id="prev_view_image" />
|
||||
<?php if ($image_url) { ?>
|
||||
<img src="<?= $image_url ?>" id="prev_view_image" />
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<dl>
|
||||
<dt>
|
||||
<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>
|
||||
<option value="UPLOAD" <?= $write['wr_type'] == "UPLOAD" ? "selected" : "" ?>>UPLOAD</option>
|
||||
<option value="URL" <?= $write['wr_type'] == "URL" ? "selected" : "" ?>>URL</option>
|
||||
</select>
|
||||
</dt>
|
||||
<dd>
|
||||
<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>
|
||||
<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 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>
|
||||
|
|
@ -154,23 +163,23 @@ if(!$is_error) {
|
|||
<i class="icon gear"></i>Option
|
||||
</dt>
|
||||
<dd>
|
||||
<?php if($is_member) { ?>
|
||||
<?php if ($is_member) { ?>
|
||||
<fieldset>
|
||||
<input type="checkbox" id="wr_secret" name="wr_secret" value="1" <?=$write['wr_secret'] ? "checked" : ""?>/>
|
||||
<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" : ""?>/>
|
||||
<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" : ""?>/>
|
||||
<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>
|
||||
<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>
|
||||
|
|
@ -181,7 +190,8 @@ if(!$is_error) {
|
|||
<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">
|
||||
<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 } ?>
|
||||
|
|
@ -192,18 +202,22 @@ if(!$is_error) {
|
|||
<label for="wr_password">비밀번호</label>
|
||||
</dt>
|
||||
<dd>
|
||||
<input type="password" name="wr_password" id="wr_password" value="<?=$_COOKIE['MMB_PW']?>" class="frm_input" maxlength="20">
|
||||
<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++) { ?>
|
||||
<?php for ($i = 1; $is_link && $i <= G5_LINK_COUNT; $i++) { ?>
|
||||
<dl>
|
||||
<dt>
|
||||
<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">
|
||||
<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 } ?>
|
||||
|
|
@ -214,7 +228,7 @@ if(!$is_error) {
|
|||
<hr class="padding small" />
|
||||
|
||||
<div class="comments">
|
||||
<textarea name="wr_content" rows="5"><?=$write['wr_content']?></textarea>
|
||||
<textarea name="wr_content" rows="5"><?= $write['wr_content'] ?></textarea>
|
||||
<p class="ui-btn help">해시태그 : #해시태그내용 / 로그링크 : @로그번호</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -222,28 +236,28 @@ if(!$is_error) {
|
|||
|
||||
<div class="txt-center">
|
||||
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn">COMMENT</button>
|
||||
<button type="button" onclick="location.href='./board.php?bo_table=<?=$bo_table?>';" class="ui-btn">LIST</button>
|
||||
<button type="button" onclick="location.href='./board.php?bo_table=<?= $bo_table ?>';"
|
||||
class="ui-btn">LIST</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<!-- } 게시물 작성/수정 끝 -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<script>
|
||||
<?php if ($write_min || $write_max) { ?>
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
|
||||
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
|
||||
check_byte("wr_content", "char_count");
|
||||
|
||||
$(function() {
|
||||
$("#wr_content").on("keyup", function() {
|
||||
$(function () {
|
||||
$("#wr_content").on("keyup", function () {
|
||||
check_byte("wr_content", "char_count");
|
||||
});
|
||||
});
|
||||
<?php } ?>
|
||||
function html_auto_br(obj)
|
||||
{
|
||||
function html_auto_br(obj) {
|
||||
if (obj.checked) {
|
||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||
if (result)
|
||||
|
|
@ -255,12 +269,11 @@ if(!$is_error) {
|
|||
obj.value = "";
|
||||
}
|
||||
|
||||
function fwrite_submit(f)
|
||||
{
|
||||
function fwrite_submit(f) {
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g5_bbs_url+"/ajax.filter.php",
|
||||
url: g5_bbs_url + "/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": f.wr_subject.value,
|
||||
|
|
@ -269,21 +282,21 @@ if(!$is_error) {
|
|||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
success: function (data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (subject) {
|
||||
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
|
||||
alert("제목에 금지단어('" + subject + "')가 포함되어있습니다");
|
||||
f.wr_subject.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
if (typeof(ed_wr_content) != "undefined")
|
||||
alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
|
||||
if (typeof (ed_wr_content) != "undefined")
|
||||
ed_wr_content.returnFalse();
|
||||
else
|
||||
f.wr_content.focus();
|
||||
|
|
@ -294,43 +307,43 @@ if(!$is_error) {
|
|||
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+"글자 이상 쓰셔야 합니다.");
|
||||
alert("내용은 " + char_min + "글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
else if (char_max > 0 && char_max < cnt) {
|
||||
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
alert("내용은 " + char_max + "글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php if($w == '') { ?>
|
||||
if(f.wr_type.value == 'UPLOAD') {
|
||||
if(document.getElementById('wr_file').value == '') {
|
||||
<?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 == '') {
|
||||
} else if (f.wr_type.value == 'URL') {
|
||||
if (document.getElementById('wr_url').value == '') {
|
||||
alert("등록할 로그 URL을 입력해 주시길 바랍니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
<?php } ?>
|
||||
<?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 type = $(this).attr('type');
|
||||
|
||||
if(type == 'file') {
|
||||
if (type == 'file') {
|
||||
$('#wr_homepage').val('');
|
||||
previewImage(this,'view_image');
|
||||
previewImage(this, 'view_image');
|
||||
} else {
|
||||
$('#wr_file').replaceWith( $('#wr_file').clone(true) );
|
||||
$('#wr_file').replaceWith($('#wr_file').clone(true));
|
||||
|
||||
checkImage(image, complete, '', 'view_image');
|
||||
}
|
||||
|
|
@ -358,7 +371,7 @@ if(!$is_error) {
|
|||
|
||||
reset_image(previewId);
|
||||
|
||||
for ( var i = 0; i < files.length; i++) {
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
|
||||
var file = files[i];
|
||||
|
||||
|
|
@ -374,8 +387,8 @@ if(!$is_error) {
|
|||
|
||||
if (window.FileReader) { // FireFox, Chrome, Opera 확인.
|
||||
var reader = new FileReader();
|
||||
reader.onloadend = (function(aImg) {
|
||||
return function(e) {
|
||||
reader.onloadend = (function (aImg) {
|
||||
return function (e) {
|
||||
aImg.src = e.target.result;
|
||||
complete('S', aImg.width, aImg.height);
|
||||
$('#view_image_loading').hide();
|
||||
|
|
@ -395,7 +408,7 @@ if(!$is_error) {
|
|||
}
|
||||
}
|
||||
|
||||
if(i > 0) {
|
||||
if (i > 0) {
|
||||
|
||||
//preview.style.background="none";
|
||||
} else {
|
||||
|
|
@ -415,13 +428,13 @@ if(!$is_error) {
|
|||
|
||||
reset_image(previewId);
|
||||
|
||||
img.onerror = img.onabort = function() {
|
||||
img.onerror = img.onabort = function () {
|
||||
if (!timedOut) {
|
||||
clearTimeout(timer);
|
||||
callback("F");
|
||||
}
|
||||
};
|
||||
img.onload = function() {
|
||||
img.onload = function () {
|
||||
if (!timedOut) {
|
||||
clearTimeout(timer);
|
||||
img.id = "prev_" + previewId;
|
||||
|
|
@ -433,14 +446,14 @@ if(!$is_error) {
|
|||
};
|
||||
img.src = url;
|
||||
|
||||
timer = setTimeout(function() {
|
||||
timer = setTimeout(function () {
|
||||
timedOut = true;
|
||||
callback("F");
|
||||
}, timeout);
|
||||
}
|
||||
|
||||
function complete(message, w, h) {
|
||||
if(message == 'S') {
|
||||
if (message == 'S') {
|
||||
$('#wr_width').val(w);
|
||||
$('#wr_height').val(h);
|
||||
$('#view_image > span').text("width : " + w + "px / height : " + h + "px");
|
||||
|
|
@ -448,30 +461,22 @@ if(!$is_error) {
|
|||
$('#view_image > span').text("");
|
||||
}
|
||||
}
|
||||
|
||||
function fn_log_type(type) {
|
||||
$('#add_'+type).siblings().hide();
|
||||
$('#add_'+type).show();
|
||||
|
||||
$('#add_' + type).siblings().hide();
|
||||
$('#add_' + type).show();
|
||||
$('#wr_url').val('');
|
||||
$('#wr_file').replaceWith( $('#wr_file').clone(true) );
|
||||
|
||||
$('#wr_file').replaceWith($('#wr_file').clone(true));
|
||||
reset_image('view_image');
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
$('#fwrite select').change(function() {
|
||||
</script>
|
||||
<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);
|
||||
$('#fwrite select').each(function () {
|
||||
if ($(this).val()) {
|
||||
$('#fwrite select').not(this).find("option[value=" + $(this).val() + "]").attr('disabled', true);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
});
|
||||
</script>
|
||||
<?php }
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($is_comment_write) {
|
||||
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">
|
||||
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">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $list_item['wr_id'] ?>">
|
||||
|
|
@ -16,7 +19,7 @@ if ($is_comment_write) {
|
|||
<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">
|
||||
<textarea name="wr_content" required class="required" title="내용"></textarea>
|
||||
|
|
@ -26,8 +29,6 @@ if ($is_comment_write) {
|
|||
</div>
|
||||
|
||||
</form>
|
||||
</aside>
|
||||
<?php
|
||||
</aside>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$it = [];
|
||||
$customer_sql = "";
|
||||
$temp_wr_id = $comment_id;
|
||||
$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}
|
||||
set wr_subject = '{$wr_subject}'
|
||||
{$customer_sql}
|
||||
|
|
@ -26,13 +28,13 @@ if($w != 'cu') {
|
|||
|
||||
$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}
|
||||
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}' ";
|
||||
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
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if($w != 'cu') {
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($w != 'cu') {
|
||||
$log = "";
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined("_GNUBOARD_"))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
$customer_sql = "";
|
||||
$temp_wr_id = $wr_id;
|
||||
if(!$wr_num) $wr_num = $write['wr_num'];
|
||||
if (!$wr_num)
|
||||
$wr_num = $write['wr_num'];
|
||||
|
||||
|
||||
if($w == 'u') {
|
||||
include_once($board_skin_path.'/write_update.inc.php');
|
||||
if ($w == 'u') {
|
||||
include_once($board_skin_path . '/write_update.inc.php');
|
||||
$sql = " update {$write_table}
|
||||
set wr_id = '{$wr_id}'
|
||||
{$customer_sql}
|
||||
|
|
@ -16,8 +18,7 @@ if($w == 'u') {
|
|||
}
|
||||
|
||||
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 {
|
||||
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
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
// 회원수는 $row['mb_cnt'];
|
||||
|
||||
// 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,8 +1,9 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 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);
|
||||
?>
|
||||
|
||||
<!-- 현재접속자 목록 시작 { -->
|
||||
|
|
@ -22,13 +23,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">',
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
for ($i = 0; $i < count($list); $i++) {
|
||||
//$location = conv_content($list[$i]['lo_location'], 0);
|
||||
$location = $list[$i]['lo_location'];
|
||||
// 최고관리자에게만 허용
|
||||
// 이 조건문은 가능한 변경하지 마십시오.
|
||||
if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "<a href=\"".$list[$i]['lo_url']."\">".$location."</a>";
|
||||
else $display_location = $location;
|
||||
if ($list[$i]['lo_url'] && $is_admin == 'super')
|
||||
$display_location = "<a href=\"" . $list[$i]['lo_url'] . "\">" . $location . "</a>";
|
||||
else
|
||||
$display_location = $location;
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_num txt-center"><?php echo $list[$i]['num'] ?></td>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$content_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $content_skin_url . '/style.css">', 0);
|
||||
|
||||
<?php echo $str; ?>
|
||||
echo $str;
|
||||
|
|
|
|||
|
|
@ -1,55 +1,56 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 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)
|
||||
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 시작 { -->
|
||||
<?php
|
||||
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
|
||||
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
|
||||
if( count($faq_master_list) ){
|
||||
?>
|
||||
<nav id="bo_cate">
|
||||
if (count($faq_master_list)) {
|
||||
?>
|
||||
<nav id="bo_cate">
|
||||
<h2>자주하시는질문 분류</h2>
|
||||
<ul id="bo_cate_ul">
|
||||
<?php
|
||||
foreach( $faq_master_list as $v ){
|
||||
foreach ($faq_master_list as $v) {
|
||||
$category_msg = '';
|
||||
$category_option = '';
|
||||
if($v['fm_id'] == $fm_id){ // 현재 선택된 카테고리라면
|
||||
if ($v['fm_id'] == $fm_id) { // 현재 선택된 카테고리라면
|
||||
$category_option = ' id="bo_cate_on"';
|
||||
$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>
|
||||
<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>
|
||||
</nav>
|
||||
</nav>
|
||||
<?php } ?>
|
||||
|
||||
<div id="faq_wrap" class="faq_<?php echo $fm_id; ?>">
|
||||
<?php // FAQ 내용
|
||||
if( count($faq_list) ){
|
||||
if (count($faq_list)) {
|
||||
?>
|
||||
<section id="faq_con">
|
||||
<h2><?php echo $g5['title']; ?> 목록</h2>
|
||||
<ol>
|
||||
<?php
|
||||
foreach($faq_list as $key=>$v){
|
||||
if(empty($v))
|
||||
foreach ($faq_list as $key => $v) {
|
||||
if (empty($v))
|
||||
continue;
|
||||
?>
|
||||
<li>
|
||||
|
|
@ -67,35 +68,36 @@ if( count($faq_master_list) ){
|
|||
<?php
|
||||
|
||||
} else {
|
||||
if($stx){
|
||||
if ($stx) {
|
||||
echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';
|
||||
} else {
|
||||
echo '<div class="empty_list">등록된 FAQ가 없습니다.';
|
||||
if($is_admin)
|
||||
echo '<br><a href="'.G5_ADMIN_URL.'/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
|
||||
if ($is_admin)
|
||||
echo '<br><a href="' . G5_ADMIN_URL . '/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
|
||||
echo '</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
|
||||
// 하단 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)
|
||||
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">
|
||||
<legend>FAQ 검색</legend>
|
||||
|
||||
<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>
|
||||
<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">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
|
@ -103,28 +105,27 @@ if ($timg_src)
|
|||
|
||||
<?php
|
||||
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>
|
||||
$(function() {
|
||||
$(".closer_btn").on("click", function() {
|
||||
$(function () {
|
||||
$(".closer_btn").on("click", function () {
|
||||
$(this).closest(".con_inner").slideToggle();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function faq_open(el)
|
||||
{
|
||||
function faq_open(el) {
|
||||
var $con = $(el).closest("li").find(".con_inner");
|
||||
|
||||
if($con.is(":visible")) {
|
||||
if ($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$("#faq_con .con_inner:visible").css("display", "none");
|
||||
|
||||
$con.slideDown(
|
||||
function() {
|
||||
function () {
|
||||
// 이미지 리사이즈
|
||||
$con.viewimageresize2();
|
||||
}
|
||||
|
|
@ -132,5 +133,5 @@ function faq_open(el)
|
|||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 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; ?> 최신글 시작 { -->
|
||||
<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
|
||||
href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<?php for ($i = 0; $i < count($list); $i++) { ?>
|
||||
<li>
|
||||
<?php
|
||||
//echo $list[$i]['icon_reply']." ";
|
||||
echo "<a href=\"".$list[$i]['href']."\">";
|
||||
echo "<a href=\"" . $list[$i]['href'] . "\">";
|
||||
if ($list[$i]['is_notice'])
|
||||
echo "<strong>".$list[$i]['subject']."</strong>";
|
||||
echo "<strong>" . $list[$i]['subject'] . "</strong>";
|
||||
else
|
||||
echo $list[$i]['subject'];
|
||||
|
||||
|
|
@ -27,11 +29,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
|
|||
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['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_hot'])) echo " " . $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
|
||||
if (isset($list[$i]['icon_new']))
|
||||
echo " " . $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot']))
|
||||
echo " " . $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file']))
|
||||
echo " " . $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link']))
|
||||
echo " " . $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret']))
|
||||
echo " " . $list[$i]['icon_secret'];
|
||||
?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
|
@ -39,6 +46,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
|
|||
<li>게시물이 없습니다.</li>
|
||||
<?php } ?>
|
||||
</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>
|
||||
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->
|
||||
|
|
@ -1,21 +1,22 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 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="title">NOTICE : </div>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<?php for ($i = 0; $i < count($list); $i++) { ?>
|
||||
<li>
|
||||
<?php
|
||||
//echo $list[$i]['icon_reply']." ";
|
||||
echo "<a href=\"".$list[$i]['href']."\">";
|
||||
echo "<a href=\"" . $list[$i]['href'] . "\">";
|
||||
if ($list[$i]['is_notice'])
|
||||
echo "<strong>".$list[$i]['subject']."</strong>";
|
||||
echo "<strong>" . $list[$i]['subject'] . "</strong>";
|
||||
else
|
||||
echo $list[$i]['subject'];
|
||||
|
||||
|
|
@ -27,11 +28,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
|
|||
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['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_hot'])) echo " " . $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
|
||||
if (isset($list[$i]['icon_new']))
|
||||
echo " " . $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot']))
|
||||
echo " " . $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file']))
|
||||
echo " " . $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link']))
|
||||
echo " " . $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret']))
|
||||
echo " " . $list[$i]['icon_secret'];
|
||||
?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
//include_once($board_skin_path."/moonday.php"); // 석봉운님의 음력날짜 함수
|
||||
|
||||
if (preg_match('/%/', $width)) {
|
||||
$col_width = "14%"; //표의 가로 폭이 100보다 크면 픽셀값입력
|
||||
} else{
|
||||
$col_width = round($width/7); //표의 가로 폭이 100보다 작거나 같으면 백분율 값을 입력
|
||||
} else {
|
||||
$col_width = round($width / 7); //표의 가로 폭이 100보다 작거나 같으면 백분율 값을 입력
|
||||
}
|
||||
$col_height= 30 ;//내용 들어갈 사각공간의 세로길이를 가로 폭과 같도록
|
||||
$col_height = 30;//내용 들어갈 사각공간의 세로길이를 가로 폭과 같도록
|
||||
$today = getdate();
|
||||
$b_mon = $today['mon'];
|
||||
$b_day = $today['mday'];
|
||||
|
|
@ -18,40 +19,55 @@ if ($year < 1) { // 오늘의 달력 일때
|
|||
$year = $b_year;
|
||||
}
|
||||
|
||||
if(!$year) $year = date("Y");
|
||||
$file_index = $board_skin_path."/day"; ### 기념일 폴더 위치 지정
|
||||
if (!$year)
|
||||
$year = date("Y");
|
||||
$file_index = $board_skin_path . "/day"; ### 기념일 폴더 위치 지정
|
||||
|
||||
### 양력 기념일 파일 지정 : 해당년도 파일이 없으면 기본파일(solar.txt)을 불러온다
|
||||
//$dayfile = file($file_index."/solar.txt");
|
||||
|
||||
$lastday=array(0,31,28,31,30,31,30,31,31,30,31,30,31);
|
||||
if ($year%4 == 0) $lastday[2] = 29;
|
||||
$dayoftheweek = date("w", mktime (0,0,0,$month,1,$year));
|
||||
$lastday = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
|
||||
if ($year % 4 == 0)
|
||||
$lastday[2] = 29;
|
||||
$dayoftheweek = date("w", mktime(0, 0, 0, $month, 1, $year));
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
|
||||
if($month=="1")$month_m="January";
|
||||
if($month=="2")$month_m="February";
|
||||
if($month=="3")$month_m="March";
|
||||
if($month=="4")$month_m="April";
|
||||
if($month=="5")$month_m="May";
|
||||
if($month=="6")$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";
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
|
||||
if ($month == "1")
|
||||
$month_m = "January";
|
||||
if ($month == "2")
|
||||
$month_m = "February";
|
||||
if ($month == "3")
|
||||
$month_m = "March";
|
||||
if ($month == "4")
|
||||
$month_m = "April";
|
||||
if ($month == "5")
|
||||
$month_m = "May";
|
||||
if ($month == "6")
|
||||
$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 class="theme-box cal-nav">
|
||||
<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>
|
||||
<div class="theme-box cal-nav">
|
||||
<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>
|
||||
</h2>
|
||||
</div>
|
||||
<table border="0" cellspacing="1" class="theme-list">
|
||||
<thead>
|
||||
</h2>
|
||||
</div>
|
||||
<table border="0" cellspacing="1" class="theme-list">
|
||||
<thead>
|
||||
<tr align="center">
|
||||
<th class="sun">S</th>
|
||||
<th>M</th>
|
||||
|
|
@ -61,48 +77,48 @@ if($month=="12")$month_m="December";
|
|||
<th>F</th>
|
||||
<th class="sat">S</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$cday = 1;
|
||||
$sel_mon = sprintf("%02d",$month);
|
||||
$table_name="avo_write_".$bo_table;
|
||||
$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";
|
||||
$result = sql_query($query);
|
||||
$j=0; // layer id
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$cday = 1;
|
||||
$sel_mon = sprintf("%02d", $month);
|
||||
$table_name = "avo_write_" . $bo_table;
|
||||
$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";
|
||||
$result = sql_query($query);
|
||||
$j = 0; // layer id
|
||||
// 내용을 보여주는 부분
|
||||
while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자열 만들기..
|
||||
if( substr($row[wr_1],0,6) < $year.$sel_mon ) {
|
||||
$start_day =1;
|
||||
$start_day= (int)$start_day;
|
||||
while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자열 만들기..
|
||||
if (substr($row[wr_1], 0, 6) < $year . $sel_mon) {
|
||||
$start_day = 1;
|
||||
$start_day = (int) $start_day;
|
||||
} else {
|
||||
$start_day = substr($row[wr_1],6,2);
|
||||
$start_day= (int)$start_day;
|
||||
$start_day = substr($row[wr_1], 6, 2);
|
||||
$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= (int)$end_day;
|
||||
$end_day = (int) $end_day;
|
||||
} else {
|
||||
$end_day = substr($row[wr_2],6,2);
|
||||
$end_day= (int)$end_day;
|
||||
$end_day = substr($row[wr_2], 6, 2);
|
||||
$end_day = (int) $end_day;
|
||||
}
|
||||
|
||||
// 아이디에 따라 다른 아이콘이미지 출력 하고 싶을때 ///주석을 해제
|
||||
$imgown = 'icon';
|
||||
|
||||
for ($i = $start_day ; $i <= $end_day; $i++) {
|
||||
for ($i = $start_day; $i <= $end_day; $i++) {
|
||||
if (strlen($row[wr_3]) > 0) { // 입력된 아이콘 값이 있을 때
|
||||
$imgown = $row[wr_3] ;
|
||||
$imgown = $row[wr_3];
|
||||
}
|
||||
|
||||
$j++; // layer ID
|
||||
|
||||
// subject length cut
|
||||
// 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>";
|
||||
?>
|
||||
$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
|
||||
|
|
@ -112,27 +128,30 @@ while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자
|
|||
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>";
|
||||
$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>";
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
$sc_id = $row[wr_id];
|
||||
}
|
||||
}
|
||||
|
||||
// 달력의 틀을 보여주는 부분
|
||||
|
||||
$temp = 7- (($lastday[$month]+$dayoftheweek)%7);
|
||||
$temp = 7 - (($lastday[$month] + $dayoftheweek) % 7);
|
||||
|
||||
if ($temp == 7) $temp = 0;
|
||||
$lastcount = $lastday[$month]+$dayoftheweek + $temp;
|
||||
if ($temp == 7)
|
||||
$temp = 0;
|
||||
$lastcount = $lastday[$month] + $dayoftheweek + $temp;
|
||||
|
||||
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) {
|
||||
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일 까지
|
||||
|
|
@ -142,21 +161,21 @@ while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자
|
|||
// 이제 여기 부터 직접 셀이 그려지면서 그 안에 내용이 들어 간다.
|
||||
echo ("<td width=$col_width height=$col_height class='$bgcolor' valign='top'>");
|
||||
|
||||
$fr_date = $year.sprintf("%02d",$month).sprintf("%02d",$cday);
|
||||
$fr_date = $year . sprintf("%02d", $month) . sprintf("%02d", $cday);
|
||||
|
||||
// 기념일 파일 내용 비교위한 변수 선언, 월과 일을 두자리 포맷으로 고정
|
||||
if (strlen($month) == 1) {
|
||||
$monthp = "0".$month ;
|
||||
$monthp = "0" . $month;
|
||||
} else {
|
||||
$monthp = $month ;
|
||||
$monthp = $month;
|
||||
}
|
||||
if (strlen($cday) == 1) {
|
||||
$cdayp = "0".$cday ;
|
||||
$cdayp = "0" . $cday;
|
||||
} else {
|
||||
$cdayp = $cday ;
|
||||
$cdayp = $cday;
|
||||
}
|
||||
$memday = $year.$monthp.$cdayp;
|
||||
$daycont = "" ;
|
||||
$memday = $year . $monthp . $cdayp;
|
||||
$daycont = "";
|
||||
|
||||
// 기념일(양력) 표시
|
||||
/*
|
||||
|
|
@ -191,27 +210,30 @@ while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자
|
|||
$cday++; // 날짜를 카운팅
|
||||
}
|
||||
// 유효날짜가 아니면 그냥 회색을 칠한다.
|
||||
else { echo (" <td width=$col_width height=$col_height class='noday'> </td>"); }
|
||||
if (($iz%7) == 0) echo (" </tr>");
|
||||
else {
|
||||
echo (" <td width=$col_width height=$col_height class='noday'> </td>");
|
||||
}
|
||||
if (($iz % 7) == 0)
|
||||
echo (" </tr>");
|
||||
|
||||
} // 반복구문이 끝남
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
} // 반복구문이 끝남
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
// 미리보기 팝업 보이기
|
||||
function PopupShow(n) {
|
||||
<!--
|
||||
// 미리보기 팝업 보이기
|
||||
function PopupShow(n) {
|
||||
var position = $("#subject_"+n).position();
|
||||
$("#popup_"+n).animate({left:position.left-10+"px", top:position.top+30+"px"},0);
|
||||
$("#popup_"+n).show();
|
||||
}
|
||||
}
|
||||
|
||||
// 미리보기 팝업 숨기기
|
||||
function PopupHide(n) {
|
||||
// 미리보기 팝업 숨기기
|
||||
function PopupHide(n) {
|
||||
$("#popup_"+n).hide();
|
||||
}
|
||||
//-->
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
<?php
|
||||
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);
|
||||
@include_once($menu_skin_path.'/menu.L.inc.php');
|
||||
?>
|
||||
include_once $menu_skin_path . "/menu.L.inc.php";
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
<?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">
|
||||
<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="tooltips">HOME</span>
|
||||
</a>
|
||||
|
|
@ -17,36 +18,38 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
|
|||
$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);
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <? if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<? } ?> class="change-link">
|
||||
<span class="icons"><span><i class="material-icons"><?=$me['me_icon']?></i></span></span>
|
||||
<span class="tooltips"><?=$me['me_name']?></span>
|
||||
<a href="<?php echo $me['me_link'] ?>" <? if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <? } ?>
|
||||
class="change-link">
|
||||
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
|
||||
<span class="tooltips"><?= $me['me_name'] ?></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<? }} ?>
|
||||
<? }
|
||||
} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<? if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<? if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<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="tooltips">LOGIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<? if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<? if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<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="tooltips">JOIN</span>
|
||||
</a>
|
||||
|
|
@ -54,21 +57,21 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
|
|||
<? } ?>
|
||||
<? } else { //멤버일 경우 ?>
|
||||
<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="tooltips">LOGOUT</span>
|
||||
</a>
|
||||
</li>
|
||||
<? if($is_admin) { ?>
|
||||
<? if ($is_admin) { ?>
|
||||
<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="tooltips">ADMIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<? } else { ?>
|
||||
<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="tooltips">정보수정</span>
|
||||
</a>
|
||||
|
|
@ -76,17 +79,19 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
|
|||
<? } ?>
|
||||
<? } ?>
|
||||
|
||||
<? if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<? if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<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"
|
||||
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')"
|
||||
class="control-bgm-play" style="display:none;">
|
||||
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
||||
<span class="tooltips">BGM ON</span>
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
||||
<span class="tooltips">BGM OFF</span>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
// 좌측 메뉴 스타일
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css">', 0);
|
||||
@include_once($menu_skin_path.'/menu.L.inc.php');
|
||||
?>
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
|
||||
include_once $menu_skin_path . "/menu.L.inc.php";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
// 좌측 메뉴 스타일
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css">', 0);
|
||||
@include_once($menu_skin_path.'/menu.L.inc.php');
|
||||
?>
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
|
||||
include_once $menu_skin_path . "/menu.L.inc.php";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/* ******************************************************************************
|
||||
※ 관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
|
||||
|
|
@ -20,42 +21,57 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
<tbody>
|
||||
<tr>
|
||||
<th scope="row" rowspan="3">
|
||||
<em><?=$css_index?></em>프레임 크기
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_size" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>프레임 크기
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="box_frame_size" readonly size="15" />
|
||||
</th>
|
||||
<td class="bo-right txt-center">크기</td>
|
||||
<td>
|
||||
<?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'] ?>"
|
||||
size="5" /> px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bo-right txt-center">PC 여백</td>
|
||||
<td>
|
||||
상 : <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_2[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_2'] ?>"
|
||||
size="5" /> px
|
||||
|
||||
하 : <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_3'] ?>" size="5"/> px
|
||||
하 : <input type="text" name="cs_etc_3[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_3'] ?>"
|
||||
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_4[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_4'] ?>"
|
||||
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_5[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_5'] ?>"
|
||||
size="5" /> px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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_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_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_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>
|
||||
우 : <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>
|
||||
<th rowspan="4" scope="row">
|
||||
<em><?=$css_index?></em>테두리 : 이미지
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_img" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>테두리 : 이미지
|
||||
<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>
|
||||
</th>
|
||||
|
|
@ -64,144 +80,183 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
<?php echo help('이미지로 설정된 테두리가 우선적으로 적용됩니다. 단순 테두리를 사용하고 싶으실 경우, 이미지 경로를 제거해주세요.') ?>
|
||||
|
||||
</div>
|
||||
</td></tr><tr>
|
||||
</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 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>
|
||||
직접등록 <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>
|
||||
외부경로 <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;">(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>
|
||||
<select name="cs_etc_2[<?=$css_index?>]">
|
||||
<select name="cs_etc_2[<?= $css_index ?>]">
|
||||
<option value="stretch">늘이기</option>
|
||||
<option value="repeat" <?=$de['box_frame_img']['cs_etc_2'] == 'repeat' ? "selected" : ""?>>반복하기</option>
|
||||
<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>
|
||||
<option value="repeat" <?= $de['box_frame_img']['cs_etc_2'] == 'repeat' ? "selected" : "" ?>>반복하기</option>
|
||||
<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>
|
||||
|
||||
|
||||
확장영역 <span style="color:#ff4742; font-weight:600;">(Outset)</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
|
||||
<input type="text" name="cs_etc_3[<?= $css_index ?>]" value="<?php echo $de['box_frame_img']['cs_etc_3'] ?>"
|
||||
size="5" maxlength="255" /> px
|
||||
|
||||
</td>
|
||||
</tr <?php $css_index++; ?>>
|
||||
|
||||
<tr>
|
||||
<th rowspan="2" scope="row">
|
||||
<em><?=$css_index?></em>테두리 : 일반
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_line" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>테두리 : 일반
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="box_frame_line" readonly size="15" />
|
||||
</th>
|
||||
<td class="bo-right bo-left txt-center">
|
||||
라인
|
||||
</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_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;" />%
|
||||
|
||||
|
||||
라인타입
|
||||
<select name="cs_etc_2[<?=$css_index?>]" style="width: 84px;">
|
||||
<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>
|
||||
<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="text" name="cs_etc_3[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_3']?>" size="5"/> px
|
||||
라인굵기 <input type="text" name="cs_etc_3[<?= $css_index ?>]"
|
||||
value="<?= $de['box_frame_line']['cs_etc_3'] ?>" size="5" /> px
|
||||
|
||||
|
||||
<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="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" : "" ?> />
|
||||
<label for="cs_etc_4_1_box_frame_line">상 </label>
|
||||
|
||||
<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_2_box_frame_line" value="bottom"
|
||||
<?= 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_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_3_box_frame_line" value="left"
|
||||
<?= strstr($de['box_frame_line']['cs_etc_4'], 'left') ? "checked" : "" ?> />
|
||||
<label for="cs_etc_4_3_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_4_box_frame_line" value="right"
|
||||
<?= strstr($de['box_frame_line']['cs_etc_4'], 'right') ? "checked" : "" ?> />
|
||||
<label for="cs_etc_4_4_mmb_list_item">우</label>
|
||||
|
||||
</td></tr><tr>
|
||||
</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_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_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_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
|
||||
좌측하단 <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>
|
||||
<th rowspan="3" scope="row">
|
||||
<em><?=$css_index?></em>프레임 배경
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="box_frame_bak" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>프레임 배경
|
||||
<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 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>
|
||||
직접등록 <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>
|
||||
외부경로 <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;"/>%
|
||||
배경색상 <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;" />%
|
||||
|
||||
|
||||
배경반복
|
||||
<select name="cs_etc_3[<?=$css_index?>]">
|
||||
<select name="cs_etc_3[<?= $css_index ?>]">
|
||||
<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>
|
||||
<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>
|
||||
|
||||
|
||||
배경위치
|
||||
<select name="cs_etc_4[<?=$css_index?>]">
|
||||
<select name="cs_etc_4[<?= $css_index ?>]">
|
||||
<option value="">왼쪽 상단</option>
|
||||
<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="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" : ""?>>중간 상단</option>
|
||||
<option value="center middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'center middle' ? "selected" : ""?>>중간 중단</option>
|
||||
<option value="center bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'center bottom' ? "selected" : ""?>>중간 하단</option>
|
||||
<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>
|
||||
<option value="center bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단
|
||||
</option>
|
||||
|
||||
<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>
|
||||
<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?>]">
|
||||
<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>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
$box_f_size = get_style("box_frame_size");
|
||||
$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>
|
||||
<?php
|
||||
<?php
|
||||
/**************************************************
|
||||
Design Setting
|
||||
--------------------------------
|
||||
#design_frameBox:before 이미지 테두리 프레임
|
||||
#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 {content:""; display:block; position:absolute; top:0; left:0; right:0; bottom:0; z-index:-1;}
|
||||
#design_frameBox:after {content:""; display:block; position:absolute; top:0; left:0; right:0; bottom:0; z-index:-2;}
|
||||
#design_frameBox:before {
|
||||
content: "";
|
||||
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;}
|
||||
#body > .fix-layout > .mid-layout {padding:10px !important;}
|
||||
#design_frameBox:after {
|
||||
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;
|
||||
}
|
||||
|
||||
#body>.fix-layout>.mid-layout {
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
<?php
|
||||
/**************************************************
|
||||
설정값에 따른 변동 부분
|
||||
**************************************************/
|
||||
?>
|
||||
?> #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;"; ?>
|
||||
}
|
||||
|
||||
#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;"; ?>}
|
||||
@media all and (max-width:<?= ($b_w + 20) ?>px) {
|
||||
#design_frameBox {
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
width: auto;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width:<?=($b_w+20)?>px) {#design_frameBox {left:10px; right:10px; width:auto; margin-left:0;}}
|
||||
@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;"; ?>}}
|
||||
@media all and (max-height:<?= ($b_h + 20) ?>px) {
|
||||
#design_frameBox {
|
||||
top: 10px;
|
||||
bottom: 10px;
|
||||
height: auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
<?php if($f_img_url) { // 이미지 테두리가 적용되어 있을 경우 ?>
|
||||
#design_frameBox:before {<?php
|
||||
@media all and (max-width:1024px) {
|
||||
#design_frameBox {
|
||||
<?php echo "padding:{$mp_t}px {$mp_r}px {$mp_b}px {$mp_l}px;"; ?>
|
||||
}
|
||||
}
|
||||
|
||||
<?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
|
||||
{border:none !important;}
|
||||
|
||||
#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'])."; ";
|
||||
<?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; ";
|
||||
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_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']}; ";
|
||||
?>}
|
||||
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 .ch-body {position:absolute; overflow:hidden;}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
//if (defined('_INDEX_')) return;
|
||||
|
||||
|
|
@ -11,14 +12,25 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
<?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 (max-height:<?=($b_h+20)?>px) and (min-width:1025px) { #header {bottom:20px; margin-bottom:0px;}}
|
||||
<?php } ?>
|
||||
<?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 (max-height:<?= ($b_h + 20) ?>px) and (min-width:1025px) {
|
||||
#header {
|
||||
bottom: 20px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
</style>
|
||||
|
||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
||||
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
//if (defined('_INDEX_')) return;
|
||||
|
||||
|
|
@ -11,14 +12,25 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
<?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 (max-width:<?=($b_w+20)?>px) and (min-width:1025px) { #header {left:20px; margin-left:0px;}}
|
||||
<?php } ?>
|
||||
<?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 (max-width:<?= ($b_w + 20) ?>px) and (min-width:1025px) {
|
||||
#header {
|
||||
left: 20px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
</style>
|
||||
|
||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
||||
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
//if (defined('_INDEX_')) return;
|
||||
|
||||
|
|
@ -11,14 +12,25 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
<?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 (max-width:<?=($b_w+20)?>px) and (min-width:1025px) { #header {right:20px; margin-right:0px;}}
|
||||
<?php } ?>
|
||||
<?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 (max-width:<?= ($b_w + 20) ?>px) and (min-width:1025px) {
|
||||
#header {
|
||||
right: 20px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
</style>
|
||||
|
||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
||||
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
//if (defined('_INDEX_')) return;
|
||||
|
||||
|
|
@ -11,14 +12,25 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
<?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 (max-height:<?=($b_h+20)?>px) and (min-width:1025px) { #header {top:20px; margin-top:0px;}}
|
||||
<?php } ?>
|
||||
<?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 (max-height:<?= ($b_h + 20) ?>px) and (min-width:1025px) {
|
||||
#header {
|
||||
top: 20px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
</style>
|
||||
|
||||
<?php @include_once($menu_skin_path.'/menu.cmm.inc.php'); ?>
|
||||
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
?>
|
||||
|
||||
<ul class="gnbWrap">
|
||||
<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="tooltips">HOME</span>
|
||||
</a>
|
||||
|
|
@ -14,36 +15,38 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
$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);
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
||||
<span class="icons"><span><i class="material-icons"><?=$me['me_icon']?></i></span></span>
|
||||
<span class="tooltips"><?=$me['me_name']?></span>
|
||||
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||
class="change-link">
|
||||
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
|
||||
<span class="tooltips"><?= $me['me_name'] ?></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php }} ?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<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="tooltips">LOGIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<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="tooltips">JOIN</span>
|
||||
</a>
|
||||
|
|
@ -51,21 +54,21 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
<?php } ?>
|
||||
<?php } else { //멤버일 경우 ?>
|
||||
<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="tooltips">LOGOUT</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_admin) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<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="tooltips">ADMIN</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } else { ?>
|
||||
<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="tooltips">정보수정</span>
|
||||
</a>
|
||||
|
|
@ -73,17 +76,19 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<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"
|
||||
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')"
|
||||
class="control-bgm-play" style="display:none;">
|
||||
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
|
||||
<span class="tooltips">BGM ON</span>
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<span class="icons"><span><i class="material-icons">music_note</i></span></span>
|
||||
<span class="tooltips">BGM OFF</span>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/* ******************************************************************************
|
||||
※ 관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
|
||||
|
|
@ -20,72 +21,86 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<em><?=$css_index?></em>크기설정
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_size" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>크기설정
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_size" readonly size="15" />
|
||||
</th>
|
||||
<td colspan="2">
|
||||
<?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
|
||||
세로 : <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>
|
||||
<th rowspan="3" scope="row">
|
||||
<em><?=$css_index?></em>메뉴 배경
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_bak" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>메뉴 배경
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_bak" readonly size="15" />
|
||||
</th>
|
||||
<td rowspan="3" class="bo-right bo-left txt-center">
|
||||
<?php if($de['menu_bak']['cs_value']) { ?>
|
||||
<img src="<?=$de['menu_bak']['cs_value']?>" class="prev_thumb"/>
|
||||
<?php if ($de['menu_bak']['cs_value']) { ?>
|
||||
<img src="<?= $de['menu_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>
|
||||
직접등록 <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['menu_bak']['cs_value']?>" size="50"/>
|
||||
</td></tr><tr>
|
||||
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]" value="<?= $de['menu_bak']['cs_value'] ?>"
|
||||
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;"/>%
|
||||
배경색상 <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="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-y" <?=$de['menu_bak']['cs_etc_3'] == 'repeat-y' ? "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-y" <?= $de['menu_bak']['cs_etc_3'] == 'repeat-y' ? "selected" : "" ?>>세로반복</option>
|
||||
</select>
|
||||
|
||||
|
||||
배경위치
|
||||
<select name="cs_etc_4[<?=$css_index?>]">
|
||||
<select name="cs_etc_4[<?= $css_index ?>]">
|
||||
<option value="">왼쪽 상단</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 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="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 bottom" <?=$de['menu_bak']['cs_etc_4'] == 'center bottom' ? "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 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 middle" <?=$de['menu_bak']['cs_etc_4'] == 'right middle' ? "selected" : ""?>>오른쪽 중단</option>
|
||||
<option value="right bottom" <?=$de['menu_bak']['cs_etc_4'] == 'right bottom' ? "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 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="contain" <?=$de['menu_bak']['cs_etc_5'] == 'contain' ? "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="contain" <?= $de['menu_bak']['cs_etc_5'] == 'contain' ? "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>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
|
@ -93,26 +108,37 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
|
||||
<tr>
|
||||
<th rowspan="3" scope="row">
|
||||
<em><?=$css_index?></em>메뉴텍스트
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_text_link" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>메뉴텍스트
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_text_link" readonly size="15" />
|
||||
</th>
|
||||
<td class="bo-right bo-left txt-center">
|
||||
일반상태
|
||||
</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"
|
||||
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_2[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_2']?>" size="5"/> px
|
||||
글자크기 <input type="text" name="cs_etc_2[<?= $css_index ?>]"
|
||||
value="<?= $de['menu_text_link']['cs_etc_2'] ?>" size="5" /> px
|
||||
|
||||
글자모양 <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_3[<?= $css_index ?>]"
|
||||
value="<?= $de['menu_text_link']['cs_etc_3'] ?>" size="30">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bo-right bo-left txt-center">
|
||||
마우스 오버
|
||||
</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_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
|
||||
글자크기 <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++; ?>>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
$menu_size = get_style("menu_size");
|
||||
$menu_bak = get_style("menu_bak");
|
||||
|
|
@ -9,23 +10,31 @@ $m_w = $menu_size['cs_value'];
|
|||
$m_h = $menu_size['cs_etc_1'];
|
||||
|
||||
$background = "";
|
||||
if($menu_bak['cs_value']) $background .= "background-image:url('{$menu_bak['cs_value']}'); ";
|
||||
if($menu_bak['cs_etc_1']) $background .= "background-color:".hex2rgba($menu_bak['cs_etc_1'], $menu_bak['cs_etc_2'])."; ";
|
||||
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']}; ";
|
||||
if ($menu_bak['cs_value'])
|
||||
$background .= "background-image:url('{$menu_bak['cs_value']}'); ";
|
||||
if ($menu_bak['cs_etc_1'])
|
||||
$background .= "background-color:" . hex2rgba($menu_bak['cs_etc_1'], $menu_bak['cs_etc_2']) . "; ";
|
||||
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 = "";
|
||||
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 = "";
|
||||
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_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; ";
|
||||
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_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 = "";
|
||||
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_6']) $menu_over .= "font-size:{$menu_text_link['cs_etc_6']}px; ";
|
||||
|
||||
|
||||
?>
|
||||
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_6'])
|
||||
$menu_over .= "font-size:{$menu_text_link['cs_etc_6']}px; ";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,35 @@
|
|||
@charset "utf-8";
|
||||
|
||||
.freebak-menu {width:100%; margin-bottom:-20px;}
|
||||
.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;}
|
||||
.freebak-menu {
|
||||
width: 100%;
|
||||
margin-bottom: -20px;
|
||||
}
|
||||
|
||||
.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";
|
||||
|
||||
.freebak-menu {height:100%; margin-left:-20px;}
|
||||
.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;}
|
||||
.freebak-menu {
|
||||
height: 100%;
|
||||
margin-left: -20px;
|
||||
}
|
||||
|
||||
.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";
|
||||
|
||||
.freebak-menu {height:100%; margin-right:-20px;}
|
||||
.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;}
|
||||
.freebak-menu {
|
||||
height: 100%;
|
||||
margin-right: -20px;
|
||||
}
|
||||
|
||||
.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";
|
||||
|
||||
.freebak-menu {width:100%; margin-top:-20px;}
|
||||
.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;}
|
||||
.freebak-menu {
|
||||
width: 100%;
|
||||
margin-top: -20px;
|
||||
}
|
||||
|
||||
.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,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/* *************************************
|
||||
:: 우측 메뉴 스타일 ::
|
||||
|
|
@ -9,17 +10,32 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
.freebak-menu {height:<?=$m_w?>px; <?=$background?>}
|
||||
.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;}
|
||||
}
|
||||
.freebak-menu {
|
||||
height: <?= $m_w ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
.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>
|
||||
|
||||
<div class="freebak-menu">
|
||||
|
|
@ -29,69 +45,73 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css"
|
|||
$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);
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
||||
<?=$me['me_name']?>
|
||||
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||
class="change-link">
|
||||
<?= $me['me_name'] ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php }} ?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/login.php">
|
||||
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||
LOGIN
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
||||
JOIN<
|
||||
</a>
|
||||
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||
JOIN< </a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } else { //멤버일 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
||||
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||
LOGOUT
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_admin) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
||||
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||
ADMIN
|
||||
</a>
|
||||
</li>
|
||||
<?php } else { ?>
|
||||
<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>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<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" 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')"
|
||||
class="control-bgm-play" style="display:none;">
|
||||
BGM ON
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||
class="control-bgm-stop">
|
||||
BGM OFF
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/* *************************************
|
||||
:: 좌측 메뉴 스타일 ::
|
||||
|
|
@ -9,18 +10,33 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
.freebak-menu {width:<?=$m_w?>px; <?=$background?>}
|
||||
.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;}
|
||||
}
|
||||
.freebak-menu {
|
||||
width: <?= $m_w ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
.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>
|
||||
|
||||
<div class="freebak-menu">
|
||||
|
|
@ -30,69 +46,73 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
|
|||
$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);
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
||||
<?=$me['me_name']?>
|
||||
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||
class="change-link">
|
||||
<?= $me['me_name'] ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php }} ?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/login.php">
|
||||
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||
LOGIN
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
||||
JOIN<
|
||||
</a>
|
||||
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||
JOIN< </a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } else { //멤버일 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
||||
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||
LOGOUT
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_admin) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
||||
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||
ADMIN
|
||||
</a>
|
||||
</li>
|
||||
<?php } else { ?>
|
||||
<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>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<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" 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')"
|
||||
class="control-bgm-play" style="display:none;">
|
||||
BGM ON
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||
class="control-bgm-stop">
|
||||
BGM OFF
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/* *************************************
|
||||
:: 우측 메뉴 스타일 ::
|
||||
|
|
@ -9,17 +10,32 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
.freebak-menu {width:<?=$m_w?>px; <?=$background?>}
|
||||
.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;}
|
||||
}
|
||||
.freebak-menu {
|
||||
width: <?= $m_w ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
.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>
|
||||
|
||||
<div class="freebak-menu">
|
||||
|
|
@ -29,69 +45,73 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css"
|
|||
$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);
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
||||
<?=$me['me_name']?>
|
||||
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||
class="change-link">
|
||||
<?= $me['me_name'] ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php }} ?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/login.php">
|
||||
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||
LOGIN
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
||||
JOIN<
|
||||
</a>
|
||||
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||
JOIN< </a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } else { //멤버일 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
||||
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||
LOGOUT
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_admin) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
||||
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||
ADMIN
|
||||
</a>
|
||||
</li>
|
||||
<?php } else { ?>
|
||||
<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>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<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" 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')"
|
||||
class="control-bgm-play" style="display:none;">
|
||||
BGM ON
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||
class="control-bgm-stop">
|
||||
BGM OFF
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/* *************************************
|
||||
:: 우측 메뉴 스타일 ::
|
||||
|
|
@ -9,17 +10,32 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
- 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>
|
||||
.freebak-menu {height:<?=$m_h?>px; <?=$background?>}
|
||||
.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;}
|
||||
}
|
||||
.freebak-menu {
|
||||
height: <?= $m_h ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
.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>
|
||||
|
||||
<div class="freebak-menu">
|
||||
|
|
@ -29,69 +45,73 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css"
|
|||
$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);
|
||||
|
||||
for($i=0; $me = sql_fetch_array($menu); $i++) {
|
||||
for ($i = 0; $me = sql_fetch_array($menu); $i++) {
|
||||
$target = "";
|
||||
if($me['me_target'] == 'self') {
|
||||
if ($me['me_target'] == 'self') {
|
||||
$me['me_target'] = '';
|
||||
}
|
||||
|
||||
if($me['me_name'] == '구분선') {
|
||||
if ($me['me_name'] == '구분선') {
|
||||
echo "<li class='line'></li>";
|
||||
} else {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
|
||||
<?=$me['me_name']?>
|
||||
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
|
||||
class="change-link">
|
||||
<?= $me['me_name'] ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php }} ?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<li class="line"></li>
|
||||
<?php if(!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/login.php">
|
||||
<a href="<?= G5_BBS_URL ?>/login.php">
|
||||
LOGIN
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/register.php" class="change-link">
|
||||
JOIN<
|
||||
</a>
|
||||
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
|
||||
JOIN< </a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } else { //멤버일 경우 ?>
|
||||
<li>
|
||||
<a href="<?=G5_BBS_URL?>/logout.php">
|
||||
<a href="<?= G5_BBS_URL ?>/logout.php">
|
||||
LOGOUT
|
||||
</a>
|
||||
</li>
|
||||
<?php if($is_admin) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?=G5_URL?>/adm" target="_blank">
|
||||
<a href="<?= G5_URL ?>/adm" target="_blank">
|
||||
ADMIN
|
||||
</a>
|
||||
</li>
|
||||
<?php } else { ?>
|
||||
<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>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
|
||||
<li class="bgm-btn">
|
||||
<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" 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')"
|
||||
class="control-bgm-play" style="display:none;">
|
||||
BGM ON
|
||||
</a>
|
||||
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
|
||||
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
|
||||
class="control-bgm-stop">
|
||||
BGM OFF
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
?>
|
||||
|
||||
<h3>에디터 메뉴 설정</h3>
|
||||
|
|
@ -12,31 +13,33 @@ if (!defined('_GNUBOARD_')) exit;
|
|||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<em><?=$css_index?></em>크기설정
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_size" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>크기설정
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_size" readonly size="15" />
|
||||
</th>
|
||||
<td colspan="2">
|
||||
<?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
|
||||
세로 : <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++; ?>>
|
||||
|
||||
<?php
|
||||
// 에디터 배열에 메뉴영역 추가하기
|
||||
array_push($editor_list, 'cs_value['.$css_index.']');
|
||||
array_push($editor_list, 'cs_value[' . $css_index . ']');
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<em><?=$css_index?></em>메뉴 내용
|
||||
<input type="text" name="cs_name[<?=$css_index?>]" value="menu_content" readonly size="15"/>
|
||||
<em><?= $css_index ?></em>메뉴 내용
|
||||
<input type="text" name="cs_name[<?= $css_index ?>]" value="menu_content" readonly size="15" />
|
||||
</th>
|
||||
<td colspan="2">
|
||||
<?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>
|
||||
</tr <?php $css_index++; ?>>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
$menu_size = get_style("menu_size");
|
||||
$menu_content = get_style("menu_content");
|
||||
|
|
@ -8,4 +9,3 @@ $m_w = $menu_size['cs_value'];
|
|||
$m_h = $menu_size['cs_etc_1'];
|
||||
|
||||
$menu_con = conv_content($menu_content['cs_value'], 1, '');
|
||||
?>
|
||||
|
|
@ -1,17 +1,24 @@
|
|||
<?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>
|
||||
.editor-menu {height:<?=$m_h?>px; <?=$background?>}
|
||||
@media all and (min-width:1025px) {
|
||||
#body {padding-bottom:<?=$m_h?>px;}
|
||||
}
|
||||
.editor-menu {
|
||||
height: <?= $m_h ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
@media all and (min-width:1025px) {
|
||||
#body {
|
||||
padding-bottom: <?= $m_h ?>px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="editor-menu">
|
||||
<?=$menu_con;?>
|
||||
<?= $menu_con; ?>
|
||||
</div>
|
||||
|
|
@ -1,17 +1,24 @@
|
|||
<?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>
|
||||
.editor-menu {width:<?=$m_w?>px; <?=$background?>}
|
||||
@media all and (min-width:1025px) {
|
||||
#body {margin-left:<?=$m_w?>px;}
|
||||
}
|
||||
.editor-menu {
|
||||
width: <?= $m_w ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
@media all and (min-width:1025px) {
|
||||
#body {
|
||||
margin-left: <?= $m_w ?>px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="editor-menu">
|
||||
<?=$menu_con;?>
|
||||
<?= $menu_con; ?>
|
||||
</div>
|
||||
|
|
@ -1,17 +1,24 @@
|
|||
<?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>
|
||||
.editor-menu {width:<?=$m_w?>px; <?=$background?>}
|
||||
@media all and (min-width:1025px) {
|
||||
#body {margin-right:<?=$m_w?>px;}
|
||||
}
|
||||
.editor-menu {
|
||||
width: <?= $m_w ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
@media all and (min-width:1025px) {
|
||||
#body {
|
||||
margin-right: <?= $m_w ?>px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="editor-menu">
|
||||
<?=$menu_con;?>
|
||||
<?= $menu_con; ?>
|
||||
</div>
|
||||
|
|
@ -1,17 +1,24 @@
|
|||
<?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>
|
||||
.editor-menu {height:<?=$m_h?>px; <?=$background?>}
|
||||
@media all and (min-width:1025px) {
|
||||
#body {padding-top:<?=$m_h?>px;}
|
||||
}
|
||||
.editor-menu {
|
||||
height: <?= $m_h ?>px;
|
||||
<?= $background ?>
|
||||
}
|
||||
|
||||
@media all and (min-width:1025px) {
|
||||
#body {
|
||||
padding-top: <?= $m_h ?>px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="editor-menu">
|
||||
<?=$menu_con;?>
|
||||
<?= $menu_con; ?>
|
||||
</div>
|
||||
Loading…
Reference in a new issue