First Commit
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_close.gif
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_end.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_first.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_next.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_next2.gif
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_prev.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/btn_prev2.gif
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/close_btn.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/cmt_btn.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_bad.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_comment.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_file.gif
Normal file
|
After Width: | Height: | Size: 197 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_good.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_hot.gif
Normal file
|
After Width: | Height: | Size: 319 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_img.gif
Normal file
|
After Width: | Height: | Size: 317 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_link.gif
Normal file
|
After Width: | Height: | Size: 319 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_lock.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_mobile.gif
Normal file
|
After Width: | Height: | Size: 339 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_movie.gif
Normal file
|
After Width: | Height: | Size: 110 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_new.gif
Normal file
|
After Width: | Height: | Size: 77 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_reply.gif
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_secret.gif
Normal file
|
After Width: | Height: | Size: 318 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_share.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_sound.gif
Normal file
|
After Width: | Height: | Size: 113 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/icon_view.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/s_image.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/sch_bg.png
Normal file
|
After Width: | Height: | Size: 996 B |
BIN
web/html/theme/AT_WEB01/skin/board/webzine/img/sch_btn.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
308
web/html/theme/AT_WEB01/skin/board/webzine/list.skin.php
Normal file
@ -0,0 +1,308 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
|
||||
$colspan = 5;
|
||||
|
||||
if ($is_checkbox) $colspan++;
|
||||
if ($is_good) $colspan++;
|
||||
if ($is_nogood) $colspan++;
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/open-iconic.css">', 0);
|
||||
|
||||
// 날짜 계산 함수
|
||||
function passing_time($datetime) {
|
||||
$time_lag = time() - strtotime($datetime);
|
||||
|
||||
if($time_lag < 60) {
|
||||
$posting_time = "방금";
|
||||
} elseif($time_lag >= 60 and $time_lag < 3600) {
|
||||
$posting_time = floor($time_lag/60)."분 전";
|
||||
} elseif($time_lag >= 3600 and $time_lag < 86400) {
|
||||
$posting_time = floor($time_lag/3600)."시간 전";
|
||||
} elseif($time_lag >= 86400 and $time_lag < 2419200) {
|
||||
$posting_time = floor($time_lag/86400)."일 전";
|
||||
} else {
|
||||
$posting_time = date("y.m.d", strtotime($datetime));
|
||||
}
|
||||
|
||||
return $posting_time;
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- 게시판 목록 시작 { -->
|
||||
<div id="bo_list" style="width:<?php echo $width; ?>" class="webzine_table">
|
||||
<div class="inner">
|
||||
|
||||
<!-- 게시판 페이지 정보 및 버튼 시작 { -->
|
||||
<div id="bo_btn_top">
|
||||
<div id="bo_list_total" class="wow fadeInUp">
|
||||
<span>전체 <?php echo number_format($total_count) ?></span>
|
||||
<select name="" id="new1">
|
||||
<option value="">최신</option>
|
||||
<option value="">날짜순</option>
|
||||
<option value="">가나다순</option>
|
||||
<option value="">조회순</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<?php if ($rss_href || $write_href) { ?>
|
||||
<ul class="btn_bo_user">
|
||||
<?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01 btn"><i class="fa fa-rss" aria-hidden="true"></i> RSS</a></li><?php } ?>
|
||||
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin btn"><i class="fa fa-user-circle" aria-hidden="true"></i> 관리자</a></li><?php } ?>
|
||||
<?php if ($is_admin) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02 btn btn_write"><i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- } 게시판 페이지 정보 및 버튼 끝 -->
|
||||
|
||||
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post" class="wow fadeInUp" data-wow-delay="0.3s">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<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="sw" value="">
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<th scope="col" class="th_checkbox">
|
||||
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col" class="th_num">번호</th>
|
||||
<th scope="col" class="th_subject" colspan="2">제목</th>
|
||||
<!-- <th scope="col"></th>-->
|
||||
<th scope="col" class="th_writer">작성자</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
?>
|
||||
<tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?> tr">
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<td class="td_chk">
|
||||
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>
|
||||
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="td_num2">
|
||||
<?php
|
||||
if ($list[$i]['is_notice']) // 공지사항
|
||||
echo '<strong class="notice_icon"><i class="oi oi-bell" aria-hidden="true"></i><span class="sound_only">공지</span></strong>';
|
||||
else if ($wr_id == $list[$i]['wr_id'])
|
||||
echo "<span class=\"bo_current\">열람중</span>";
|
||||
else
|
||||
echo $list[$i]['num'];
|
||||
?>
|
||||
</td>
|
||||
<td class="td_datetime">
|
||||
|
||||
<a href="<?php echo $list[$i]['href'] ?>">
|
||||
<?php
|
||||
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
|
||||
// 첫번째 첨부파일이 동영상이라면 동영상 썸네일을 찾는다.
|
||||
if (preg_match("/\.(".$config['cf_movie_extension'].")$/i", $list[$i]['file'][0]['file'])) {
|
||||
$img_content = '<img src="'.get_ffmpeg_thumb_url($list[$i]['file'][0]).'" alt="" />';
|
||||
} else
|
||||
if($thumb['src']) {
|
||||
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
|
||||
} else {
|
||||
$img_content = '<img src="'.$board_skin_url.'/img/s_image.png" alt="" />';
|
||||
}
|
||||
|
||||
echo $img_content;
|
||||
?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="td_subject" style="padding-right:20px; padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px">
|
||||
|
||||
<div class="subject_box" style=" cursor: pointer;" onclick="location.href='<?php echo $list[$i]['href'] ?>'">
|
||||
<div class="bo_tit">
|
||||
|
||||
<a href="<?php echo $list[$i]['href'] ?>">
|
||||
<?php echo $list[$i]['icon_reply'] ?>
|
||||
<?php echo ( isset($list[$i]['icon_secret']) && !empty($list[$i]['icon_secret']) ) ? "<i class='oi oi-lock-locked'></i>" : "";?>
|
||||
<h3><?php echo $list[$i]['subject'] ?></h3>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
//if (isset($list[$i]['icon_file'])) echo rtrim($list[$i]['icon_file']);
|
||||
//if (isset($list[$i]['icon_link'])) echo rtrim($list[$i]['icon_link']);
|
||||
//if (isset($list[$i]['icon_new'])) echo rtrim($list[$i]['icon_new']);
|
||||
//if (isset($list[$i]['icon_hot'])) echo rtrim($list[$i]['icon_hot']);
|
||||
?>
|
||||
<?php if ($list[$i]['comment_cnt']) { ?><span class="comment_b"><?php echo $list[$i]['wr_comment']; ?></span><?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?>
|
||||
<!-- 비밀글의 경우 출력내용 -->
|
||||
<?php } else if (isset($list[$i]['content'])) { ?>
|
||||
<br><span class="small text-muted"><?php echo cut_str(strip_tags($list[$i]['content']),100)?></span><br><br>
|
||||
<?php } ?>
|
||||
|
||||
<span class="bo_cate_link color-gray mt-1"><i class="oi oi-clock"></i> <?php echo passing_time($list[$i]['wr_datetime']) ?> </span>
|
||||
<span class="bo_cate_link color-gray mt-1"><i class="oi oi-eye"></i> <?php echo $list[$i]['wr_hit'] ?> </span>
|
||||
<?php if ($is_category && $list[$i]['ca_name']) { ?>
|
||||
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link color-gray mt-1"><?php echo $list[$i]['ca_name'] ?> </a>
|
||||
<?php } ?>
|
||||
<?php if ($is_good) { ?><span class="bo_cate_link color-red mt-1"><i class="oi oi-heart"></i> <?php echo $list[$i]['wr_good'] ?></span><?php } ?>
|
||||
|
||||
<span class="webzine_date"><span class="sound_only">작성일 </span><b class="info_detail">Date</b><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$i]['datetime2'] ?></span>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
|
||||
<!--<td class="td_datetime"><?php echo $list[$i]['datetime2'] ?></td>-->
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php if ($list_href || $is_checkbox || $write_href) { ?>
|
||||
<div class="bo_fx">
|
||||
<div class="clearfix">
|
||||
<?php if ($list_href || $write_href) { ?>
|
||||
<ul class="btn_bo_user">
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<li><button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value" class="btn btn_admin btn_change2"><i class="fa fa-trash-o" aria-hidden="true"></i> 선택삭제</button></li>
|
||||
<li><button type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value" class="btn btn_admin btn_change2"><i class="fa fa-files-o" aria-hidden="true"></i> 선택복사</button></li>
|
||||
<li><button type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value" class="btn btn_admin btn_change2"><i class="fa fa-arrows" aria-hidden="true"></i> 선택이동</button></li>
|
||||
<?php } ?>
|
||||
<?php if ($is_admin) { ?><li><a href="<?php echo $list_href ?>" class="btn_b01 btn btn_list"><i class="fa fa-list" aria-hidden="true"></i> 목록</a></li><?php } ?>
|
||||
<?php if ($is_admin) { ?><li class="bo_fx_write"><a href="<?php echo $write_href ?>" class="btn_b02 btn btn_write"><i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="wow fadeInUp"><?php echo $write_pages; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 게시판 검색 시작 { -->
|
||||
<div class="inner clearfix wow fadeInUp">
|
||||
<fieldset id="bo_sch">
|
||||
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<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">
|
||||
<label for="sfl" class="sound_only">검색대상</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_subject" <?php echo get_selected($sfl, 'wr_subject', true); ?>>전체</option>
|
||||
<option value="wr_content" <?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
|
||||
<option value="wr_subject||wr_content" <?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
|
||||
<option value="mb_id,1" <?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
|
||||
<option value="mb_id,0" <?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
|
||||
<option value="wr_name,1" <?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
|
||||
<option value="wr_name,0" <?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="sch_input" size="25" maxlength="20" placeholder="">
|
||||
<button type="submit" value="검색" class="sch_btn">검색<span class="sound_only">검색</span></button>
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
<!-- } 게시판 검색 끝 -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if($is_checkbox) { ?>
|
||||
<noscript>
|
||||
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
|
||||
</noscript>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<script>
|
||||
function all_checked(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
for (var i = 0; i < f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]")
|
||||
f.elements[i].checked = sw;
|
||||
}
|
||||
}
|
||||
|
||||
function fboardlist_submit(f) {
|
||||
var chk_count = 0;
|
||||
|
||||
for (var i = 0; i < f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
|
||||
chk_count++;
|
||||
}
|
||||
|
||||
if (!chk_count) {
|
||||
alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.pressed == "선택복사") {
|
||||
select_copy("copy");
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.pressed == "선택이동") {
|
||||
select_copy("move");
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다."))
|
||||
return false;
|
||||
|
||||
f.removeAttribute("target");
|
||||
f.action = "./board_list_update.php";
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// 선택한 게시물 복사 및 이동
|
||||
function select_copy(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
if (sw == "copy")
|
||||
str = "복사";
|
||||
else
|
||||
str = "이동";
|
||||
|
||||
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
|
||||
f.sw.value = sw;
|
||||
f.target = "move";
|
||||
f.action = "./move.php";
|
||||
f.submit();
|
||||
}
|
||||
</script>
|
||||
<?php } ?>
|
||||
<!-- } 게시판 목록 끝 -->
|
||||
|
After Width: | Height: | Size: 45 KiB |
520
web/html/theme/AT_WEB01/skin/board/webzine/style.css
Normal file
@ -0,0 +1,520 @@
|
||||
@charset "utf-8";
|
||||
|
||||
li { list-style-type: none;}
|
||||
/* test gallery */
|
||||
.mdlTxt {
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
padding-top: 50px;
|
||||
font-size:3em;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
.fadeInDown {
|
||||
font-size:40px;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
color:#fff;
|
||||
}
|
||||
.bnrline {
|
||||
width: 40px;
|
||||
height: 3px;
|
||||
background: #fff;
|
||||
margin: 20px auto 20px;
|
||||
}
|
||||
.product_banner p {
|
||||
font-size:16px;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
color:#fff;
|
||||
}
|
||||
.product_banner {
|
||||
padding:6% 0 3%;
|
||||
}
|
||||
|
||||
/* 신규 */
|
||||
.color-blue {color:#26b4ff}
|
||||
.color-blue:focus, .color-blue:hover {color:#24abf2}
|
||||
.color-gray {color:#999}
|
||||
.color-gray-no {color:#999}
|
||||
.color-gray:focus, .color-gray:hover {color:#333}
|
||||
.color-red {color:#cc0000}
|
||||
|
||||
.color-blue-bg {background-color:#26b4ff} /* 배경색상 */
|
||||
.color-blue-bg:focus, .color-blue-bg:hover {background-color:#24abf2} /* 배경색상 롤오버 */
|
||||
.color-white-bg {background-color:#fff} /* 배경색상 */
|
||||
.color-white-bg:focus, .color-blue-bg:hover {background-color:#f3f3f3} /* 배경색상 롤오버 */
|
||||
|
||||
.mt-1 {margin-top:3px;}
|
||||
.mb-1 {margin-bottom:3px;}
|
||||
.mt-2 {margin-top:5px;}
|
||||
.mb-2 {margin-bottom:5px;}
|
||||
.mt-3 {margin-top:10px;}
|
||||
.mb-3 {margin-bottom:10px;}
|
||||
.pt-3 {padding-top:10px;}
|
||||
.pb-3 {padding-bottom:10px;}
|
||||
.pt-5 {padding-top:15px;}
|
||||
.pb-5 {padding-bottom:15px;}
|
||||
.pline {border:1px solid #eee; padding:5px;}
|
||||
|
||||
.comment_b {background-color:#26b4ff;border-radius:2px;padding:0px 5px 2px 5px; color:#fff; font-size:12px;}
|
||||
|
||||
input {border:1px solid #eee}
|
||||
|
||||
*:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* 페이징 */
|
||||
/*
|
||||
.pg_wrap {clear:both;margin:30px 0 ;text-align:center}
|
||||
.pg_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.pg {}
|
||||
.pg_page, .pg_current {display:inline-block;vertical-align:middle;background:#f3f3f3;border:0px solid #bbbcc3}
|
||||
.pg a:focus, .pg a:hover {text-decoration:none}
|
||||
.pg_page {color:#555;font-size:1.083em;height:35px;line-height:35px;padding:0 5px;min-width:35px;text-decoration:none;border-radius:3px;}
|
||||
.pg_page:hover{background-color:#f1f1f1}
|
||||
.pg_start {text-indent:-999px;overflow:hidden;background:url('img/btn_first.gif') no-repeat 50% 50% #f1f1f1;padding:0;border:0px solid #bbb;}
|
||||
.pg_prev {text-indent:-999px;overflow:hidden;background:url('img/btn_prev.gif') no-repeat 50% 50% #f1f1f1;padding:0;border:0px solid #bbb}
|
||||
.pg_end {text-indent:-999px;overflow:hidden;background:url('img/btn_end.gif') no-repeat 50% 50% #f1f1f1;padding:0;border:0px solid #bbb}
|
||||
.pg_next {text-indent:-999px;overflow:hidden;background:url('img/btn_next.gif') no-repeat 50% 50% #f1f1f1;padding:0;border:0px solid #bbb}
|
||||
.pg_start:hover,.pg_prev:hover,.pg_end:hover,.pg_next:hover{background-color:#f1f1f1}
|
||||
|
||||
.pg_current {display:inline-block;background:#26b4ff;color:#fff;font-weight:bold;height:35px;line-height:35px;padding:0 10px;min-width:35px;border-radius:3px;
|
||||
-webkit-box-shadow: inset 0px 0px 0px #222542;
|
||||
-moz-box-shadow: inset 0px 0px 0px #222542;
|
||||
box-shadow: inset 0px 0px 0px #222542;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
/* 버튼 */
|
||||
a.btn,.btn{line-height:35px;height:35px;padding:0 10px;text-align:center;font-weight:bold;border:0;
|
||||
-webkit-transition: background-color 0.3s ease-out;
|
||||
-moz-transition: background-color 0.3s ease-out;
|
||||
-o-transition: background-color 0.3s ease-out;
|
||||
transition: background-color 0.3s ease-out;}
|
||||
|
||||
.btn_submit {border:0;background:#26b4ff;color:#fff;cursor:pointer;border:0}
|
||||
.btn_submit:hover {background:#24abf2}
|
||||
|
||||
|
||||
|
||||
/* 목록 버튼 */
|
||||
/*
|
||||
#bo_list a.btn_b01 {}
|
||||
#bo_list a.btn_b01:focus, #bo_list a.btn_b01:hover {}
|
||||
#bo_list a.btn_b02 {background-color:#26b4ff;border-radius:3px;line-height:35px;height:35px;padding:0px 20px 0px 20px;}
|
||||
#bo_list a.btn_b02:focus, #bo_list a.btn_b02:hover {background-color:#24abf2}
|
||||
#bo_list a.btn_b03 {background-color:#fff;border-radius:3px;border:1px solid #eee; line-height:35px;height:35px;padding:0px 10px 0px 10px;}
|
||||
#bo_list a.btn_b03:focus, #bo_list a.btn_b03:hover {border:1px solid #26b4ff;}
|
||||
#bo_list a.btn_admin {background-color:#ffffff;border-radius:3px;color:#777;border:0px solid #ddd;}
|
||||
*/
|
||||
/* 관리자 전용 버튼 */
|
||||
/*#bo_list a.btn_admin:focus, #bo_list .btn_admin:hover {background-color:#ffffff;color:#333}*/
|
||||
/*
|
||||
|
||||
#bo_list a.btn_admin2 {background-color:#ffffff;border-radius:3px;color:#777;border:1px solid #ddd;}
|
||||
*/
|
||||
/* 관리자 전용 버튼 */
|
||||
/*
|
||||
#bo_list a.btn_admin2:focus, #bo_list .btn_admin2:hover {background-color:#f9f9f9;color:#333}
|
||||
|
||||
#bo_list button.btn_admin {background-color:#fff;color:#777;border:0px;}
|
||||
#bo_list button.btn_admin:focus, #bo_list .btn_admin:hover {background-color:#fff;color:#333}
|
||||
*/
|
||||
/*
|
||||
|
||||
a.btn_admin,.btn_admin {display:inline-block;color:#fff;text-decoration:none;vertical-align:middle}
|
||||
*/
|
||||
/* 관리자 전용 버튼 */
|
||||
/*
|
||||
.btn_admin:hover, a.btn_admin:hover {}
|
||||
|
||||
a.btn_admin2,.btn_admin2 {display:inline-block;color:#fff;text-decoration:none;vertical-align:middle}
|
||||
*/
|
||||
/* 관리자 전용 버튼 */
|
||||
.btn_admin2:hover, a.btn_admin2:hover {}
|
||||
|
||||
/* 읽기 버튼 */
|
||||
/*
|
||||
#bo_v a.btn_b01 {background-color:#fff;border-radius:3px;line-height:35px;height:35px;padding:0px 10px 0px 10px;border:1px solid #ddd; color:#333}
|
||||
#bo_v a.btn_b01:focus, #bo_v a.btn_b01:hover {background-color:#f3f3f3}
|
||||
#bo_v a.btn_b02 {background-color:#26b4ff;border-radius:3px;line-height:35px;height:35px;padding:0px 20px 0px 20px; color:#fff}
|
||||
#bo_v a.btn_b02:focus, #bo_v a.btn_b02:hover {background-color:#24abf2}
|
||||
*/
|
||||
/*
|
||||
|
||||
#bo_v a.btn_admin {background-color:#ffffff;border-radius:3px;color:#777;border:0px solid #ddd;}
|
||||
*/
|
||||
/* 관리자 전용 버튼 */
|
||||
/*
|
||||
#bo_v a.btn_admin:focus, #bo_v .btn_admin:hover {background-color:#ffffff;color:#333}
|
||||
|
||||
#bo_v a.btn_admin2 {background-color:#ffffff;border-radius:3px;color:#777;border:1px solid #ddd;}
|
||||
*/
|
||||
/* 관리자 전용 버튼 */
|
||||
/*#bo_v a.btn_admin2:focus, #bo_v .btn_admin2:hover {background-color:#f9f9f9;color:#333}*/
|
||||
|
||||
/* 쓰기 버튼 */
|
||||
#bo_w .btn_confirm {}
|
||||
/* 서식단계 진행 */
|
||||
/*
|
||||
#bo_w .btn_submit {background-color:#26b4ff;border-radius:3px;line-height:35px;height:35px;padding:0px 20px 0px 20px; color:#fff}
|
||||
#bo_w .btn_submit:focus, #bo_w .btn_submit:hover {background-color:#24abf2}
|
||||
#bo_w button.btn_submit {}
|
||||
#bo_w fieldset .btn_submit {}
|
||||
#bo_w .btn_cancel {background-color:#fff;border-radius:3px;line-height:35px;height:35px;padding:0px 10px 0px 10px;border:1px solid #ddd; color:#333}
|
||||
#bo_w .btn_cancel:focus, #bo_w .btn_cancel:hover {background-color:#f3f3f3}
|
||||
#bo_w button.btn_cancel {background-color:#fff;border-radius:3px;line-height:35px;height:35px;padding:0px 10px 0px 10px;border:1px solid #ddd; color:#333}
|
||||
#bo_w .btn_cancel:focus, #bo_w .btn_cancel:hover {}
|
||||
#bo_w a.btn_frmline, #bo_w button.btn_frmline {}
|
||||
*/
|
||||
/* 우편번호검색버튼 등 */
|
||||
#bo_w button.btn_frmline {margin-top:10px;}
|
||||
|
||||
|
||||
|
||||
/* 기본 테이블 */
|
||||
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing: 0 5px;border:0px solid #ccc;}
|
||||
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
|
||||
|
||||
/* 목록 테이블 */
|
||||
#bo_list .tbl_head01 {margin:0 0 10px}
|
||||
#bo_list .tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_list .tbl_head01 thead th {padding:10px 0;font-weight:normal;text-align:center;background:#fff;height:50px;border-top:1px solid #ddd;border-bottom:1px solid #ecf0f1;}
|
||||
#bo_list .tbl_head01 thead a {}
|
||||
#bo_list .tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
#bo_list .tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;background:#fff;text-align:center}
|
||||
#bo_list .tbl_head01 tbody th {padding:8px 0;}
|
||||
#bo_list .tbl_head01 td {color:#666;background:#fff;padding:10px 5px;border-bottom:1px solid #eee;line-height:1.4em;height:70px;word-break:break-all}
|
||||
#bo_list .tbl_head01 tbody tr:hover td{background:#fff;border-left:0px;}
|
||||
#bo_list .tbl_head01 a:hover {text-decoration:none}
|
||||
#bo_list td.empty_table {}
|
||||
|
||||
|
||||
/* 읽기 내 테이블 */
|
||||
#bo_v .tbl_head01 {}
|
||||
#bo_v .tbl_head01 caption {}
|
||||
#bo_v .tbl_head01 thead th {}
|
||||
#bo_v .tbl_head01 thead a {}
|
||||
#bo_v .tbl_head01 thead th input {} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
#bo_v .tbl_head01 tfoot th {}
|
||||
#bo_v .tbl_head01 tfoot td {}
|
||||
#bo_v .tbl_head01 tbody th {}
|
||||
#bo_v .tbl_head01 td {}
|
||||
#bo_v .tbl_head01 a {}
|
||||
#bo_v td.empty_table {}
|
||||
|
||||
/* 쓰기 테이블 */
|
||||
#bo_w table {}
|
||||
#bo_w caption {}
|
||||
#bo_w .frm_info {}
|
||||
#bo_w .frm_address {}
|
||||
#bo_w .frm_file {}
|
||||
|
||||
#bo_w .tbl_frm01 {}
|
||||
#bo_w .tbl_frm01 th {}
|
||||
#bo_w .tbl_frm01 td {}
|
||||
#bo_w .tbl_frm01 textarea, #bo_w .tbl_frm01 .frm_input {}
|
||||
#bo_w .tbl_frm01 textarea {}
|
||||
/*
|
||||
#bo_w .tbl_frm01 #captcha {}
|
||||
#bo_w .tbl_frm01 #captcha input {}
|
||||
*/
|
||||
#bo_w .tbl_frm01 a {}
|
||||
|
||||
/* 필수입력 */
|
||||
#bo_w .required, #bo_w textarea.required {}
|
||||
|
||||
#bo_w .cke_sc {}
|
||||
#bo_w button.btn_cke_sc{}
|
||||
#bo_w .cke_sc_def {}
|
||||
#bo_w .cke_sc_def dl {}
|
||||
#bo_w .cke_sc_def dl:after {}
|
||||
#bo_w .cke_sc_def dt, #bo_w .cke_sc_def dd {}
|
||||
#bo_w .cke_sc_def dt {}
|
||||
#bo_w .cke_sc_def dd {}
|
||||
|
||||
/* ### 기본 스타일 커스터마이징 끝 ### */
|
||||
|
||||
/* 게시판 목록 */
|
||||
#bo_list {position:relative; border-bottom:1px solid #eee; padding-bottom:10px;}
|
||||
#bo_list:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_list .td_board {width:120px;text-align:center}
|
||||
#bo_list .td_chk {width:30px;text-align:center}
|
||||
#bo_list .td_date {width:60px;text-align:center;}
|
||||
#bo_list .td_datetime {width:150px;text-align:center}
|
||||
#bo_list .td_group {width:100px;text-align:center}
|
||||
#bo_list .td_mb_id {width:100px;text-align:center}
|
||||
#bo_list .td_mng {width:80px;text-align:center}
|
||||
#bo_list .td_name {width:90px;text-align:left;padding:10px 0}
|
||||
#bo_list .td_nick {width:100px;text-align:center}
|
||||
#bo_list .td_num {width:50px;text-align:center}
|
||||
#bo_list .td_num2 {width:50px;text-align:center}
|
||||
#bo_list .td_numbig {width:80px;text-align:center}
|
||||
#bo_list .txt_active {color:#5d910b}
|
||||
#bo_list .txt_expired {color:#ccc}
|
||||
/*
|
||||
#bo_list tbody tr:hover {border-left:2px solid #253dbe}
|
||||
*/
|
||||
|
||||
#bo_cate {margin:10px 0;}
|
||||
#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_cate ul {zoom:1}
|
||||
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_cate li {display:inline-block;padding:2px;}
|
||||
#bo_cate a {display:block;line-height:26px;padding:0 10px;border-radius:3px;color:#777}
|
||||
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none;color:#333;background-color:#f1f1f1;}
|
||||
#bo_cate #bo_cate_on {z-index:2;color:#333;font-weight:bold;border-bottom-color:#1977b5;background-color:#f1f1f1;}
|
||||
.td_subject img {margin-left:5px}
|
||||
|
||||
/* 게시판 목록 공통 */
|
||||
#bo_btn_top{margin: 10px 0 }
|
||||
#bo_btn_top:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_fx {margin-bottom:5px;float:right;zoom:1}
|
||||
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_fx ul {margin:0;padding:0;list-style:none}
|
||||
#bo_list_total {float:left;}
|
||||
|
||||
.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
|
||||
.btn_bo_user li {float:left;margin-left:5px}
|
||||
.btn_bo_adm {float:left}
|
||||
.btn_bo_adm li {float:left;margin-right:5px}
|
||||
.btn_bo_adm input {padding:0 8px;border:0;background:#d4d4d4;color:#666;text-decoration:none;vertical-align:middle}
|
||||
.bo_notice td {background:#f9f9f9 !important;border-bottom:1px solid #eee;}
|
||||
.bo_notice td a {font-weight:bold;}
|
||||
|
||||
.bo_notice .notice_icon{display:inline-block;width:25px;line-height:25px;font-weight:normal;color:#26b4ff}
|
||||
.td_num strong {color:#000}
|
||||
.bo_cate_link {display: inline-block;height: 20px;font-size:0.92em} /* 글제목줄 분류스타일 */
|
||||
.bo_tit{display:block;color:#000;font-weight:normal;font-size:14px;}
|
||||
.bo_current {color:#e8180c}
|
||||
/*#bo_list .profile_img {display:inline-block;margin-right:2px}*/
|
||||
#bo_list .profile_img img{border-radius:50%}
|
||||
#bo_list .cnt_cmt{background:#5c85c1;color:#fff; font-size:11px;height:16px;line-height:16px;padding:0 5px;border-radius:3px;vertical-align:middle;
|
||||
-webkit-box-shadow: inset 0 2px 5px rgba(255,255,255,0.3);
|
||||
-moz-box-shadow: inset 0 2px 5px rgba(255,255,255,0.3);
|
||||
box-shadow: inset 0 2px 5px rgba(255,255,255,0.3);}
|
||||
|
||||
#bo_list .bo_tit .title_icon{margin-right:2px}
|
||||
#bo_list .bo_tit .fa-download{width:16px;height:16px;line-height:16px;background:#e89f31;color:#fff;text-align:center;font-size:10px;border-radius:2px;margin-right:2px;vertical-align:middle}
|
||||
#bo_list .bo_tit .fa-link{width:16px;height:16px;line-height:16px;background:#ad68d8;color:#fff;text-align:center;font-size:10px;border-radius:2px;margin-right:2px;vertical-align:middle;font-weight:normal}
|
||||
#bo_list .bo_tit .new_icon{display:inline-block;width: 16px;line-height:16px ;font-size:0.833em;color:#ffff00;background:#6db142;text-align:center;border-radius: 2px;vertical-align:middle;margin-right:2px}
|
||||
#bo_list .bo_tit .fa-heart{display:inline-block;width: 16px;line-height:16px ;font-size:0.833em;color:#fff;background:#e52955;text-align:center;border-radius: 2px;vertical-align:middle;margin-right:2px;font-weight:normal}
|
||||
#bo_list .bo_tit .fa-lock{display: inline-block;line-height: 14px;width: 16px;font-size: 0.833em;color: #4f818c;background: #cbe3e8;text-align: center;border-radius: 2px;font-size: 12px;border:1px solid #a2c6ce}
|
||||
|
||||
|
||||
#bo_sch {float:left;border:1px solid #eee;background:#fff;border-radius:2px}
|
||||
#bo_sch:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||
#bo_sch select{border:0;margin:9px 5px ;height:20px;float:left;border-right:1px solid #ddd;}
|
||||
#bo_sch .sch_input{height:38px;border:0;padding:0;background-color:transparent;float:left;}
|
||||
#bo_sch .sch_btn{height:38px;float:left;background:none;border:0;width:40px;font-size:15px}
|
||||
|
||||
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrap {margin:5px 0 0;text-align:right}
|
||||
#char_count {font-weight:bold}
|
||||
|
||||
#autosave_wrapper {position:relative}
|
||||
#autosave_pop {display:none;z-index:10;margin-top:10px; position:absolute !important;top:34px;right:0;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;
|
||||
-webkit-box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);
|
||||
-moz-box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);
|
||||
box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
|
||||
#autosave_pop:before{content: "";position: absolute;top: -8px;right: 45px;width: 0;height: 0;border-style: solid;border-width: 0 6px 8px 6px;border-color: transparent transparent #000 transparent;}
|
||||
#autosave_pop:after{content: "";position: absolute;top: -7px;right: 45px;width: 0;height: 0;border-style: solid;border-width: 0 6px 8px 6px;border-color: transparent transparent #fff transparent;}
|
||||
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
|
||||
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#autosave_pop div {text-align:center;margin:0 !important;}
|
||||
#autosave_pop button {margin:0;padding:0;border:0;}
|
||||
#autosave_pop ul {padding:15px;border-top:1px solid #e9e9e9;list-style:none;overflow-y:scroll;height:130px;border-bottom:1px solid #e8e8e8}
|
||||
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #fff;background:#eee;zoom:1}
|
||||
#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#autosave_pop a {display:block;float:left}
|
||||
#autosave_pop span {display:block;float:right;font-size:0.92em;font-style:italic;color:#999}
|
||||
.autosave_close {cursor:pointer;width:100%;height:30px;background:none;color:#888;font-weight:bold;font-size:0.92em}
|
||||
.autosave_close:hover{background:#f3f3f3;color:#3597d9}
|
||||
.autosave_content {display:none}
|
||||
.autosave_del{background:url(./img/close_btn.png) no-repeat 50% 50%;text-indent:-999px;overflow:hidden;height:20px;width:20px;}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v {margin-bottom:20px;padding:20px;background:#fff;box-sizing:border-box}
|
||||
|
||||
#bo_v_table {position:absolute;top:0;right:16px;margin:0;padding:0 5px;height:25px;background:#ff3061;color:#fff;font-weight:bold;line-height:2.2em}
|
||||
|
||||
#bo_v_title {}
|
||||
#bo_v_title .bo_v_cate{display:inline-block;line-height:26px;background: #3497d9;color: #fff;font-weight: bold;border-bottom:1px solid #1977b5;padding:0 10px;border-radius:3px;
|
||||
-webkit-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
|
||||
-moz-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
|
||||
box-shadow: inset 0 2px 5px rgb(33, 135, 202);
|
||||
}
|
||||
#bo_v_title .bo_v_tit{display:block;margin:5px 0 0;word-break:break-all;font-size:24px;letter-spacing:-1px;}
|
||||
|
||||
#bo_v_info {padding: 10px 0 15px;margin:0 0 20px;border-bottom:1px solid #eee;color:#666}
|
||||
#bo_v_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_info h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_v_info strong {display:inline-block;margin:0 10px 0 0;font-weight:normal}
|
||||
#bo_v_info .sv_member,
|
||||
#bo_v_info .sv_guest,
|
||||
#bo_v_info .member,
|
||||
#bo_v_info .guest {font-weight:bold}
|
||||
#bo_v_info .profile_img {}
|
||||
#bo_v_info .profile_img img{border-radius:50%}
|
||||
#bo_v_info .sv_member{color:#000}
|
||||
#bo_v_info .if_view{display:inline-block;background:url(./img/icon_view.png) no-repeat 50% 50%;height:15px;width:20px;overflow:hidden;text-indent:-999px;vertical-align:middle;margin-right:3px}
|
||||
#bo_v_info .if_comment{display:inline-block;background:url(./img/icon_comment.png) no-repeat 50% 50%;height:15px;width:20px;overflow:hidden;text-indent:-999px;vertical-align:middle;margin-right:3px}
|
||||
#bo_v_info .if_date{float:right;margin:0;color:#888}
|
||||
|
||||
#bo_v_file {margin:10px 0;border:1px solid #d4d4d4}
|
||||
#bo_v_file h2 {padding:10px;background: #f3f3f3}
|
||||
#bo_v_file ul {margin:0;padding:5px 0;list-style:none}
|
||||
#bo_v_file li {padding:5px 10px;position:relative;}
|
||||
#bo_v_file a {display:inline-block;color:#3497d9;text-decoration:underline;word-wrap:break-word}
|
||||
#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none}
|
||||
#bo_v_file img {float:left;margin:0 10px 0 0}
|
||||
.bo_v_file_cnt {position:absolute;top:5px;right:10px;color:#888;font-size:0.92em}
|
||||
|
||||
#bo_v_link {margin:10px 0;border:1px solid #d4d4d4}
|
||||
#bo_v_link h2 {padding:10px;border-bottom:1px solid #e8e8e8;background: #f3f3f3}
|
||||
#bo_v_link ul {margin:0;padding:5px 0;list-style:none}
|
||||
#bo_v_link li {padding:5px 10px;position:relative;}
|
||||
#bo_v_link a {display:inline-block;color:#3497d9;text-decoration:underline;word-wrap:break-word}
|
||||
#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none}
|
||||
.bo_v_link_cnt {position:absolute;top:5px;right:10px;color:#888;font-size:0.92em}
|
||||
|
||||
#bo_v_top {zoom:1;border-top:1px solid #eee;}
|
||||
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_top h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_v_top ul {padding:0;list-style:none;word-break:break-all}
|
||||
|
||||
#bo_v_bot {zoom:1}
|
||||
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_bot h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_v_bot ul {padding:0;list-style:none}
|
||||
|
||||
.bo_v_com {margin:20px 0;float:right}
|
||||
.bo_v_com li {float:left;margin-left:5px}
|
||||
|
||||
.bo_v_left {margin:20px 0;float:left}
|
||||
.bo_v_left li {float:left;margin-right:5px}
|
||||
|
||||
.bo_v_nb {margin:20px 0;position:relative;clear:both;text-align:left;border-bottom:1px solid #ddd}
|
||||
.bo_v_nb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_v_nb li {border-top:1px solid #ddd;padding:13px;border-left:1px solid #ddd;border-right:1px solid #ddd;}
|
||||
.bo_v_nb li:hover{background:#f6f6f6}
|
||||
.bo_v_nb li i{font-size:13px}
|
||||
.bo_v_nb li .nb_tit{display:inline-block;padding-right:20px;color:#c80e21;}
|
||||
.bo_v_nb li .nb_date{float:right;color:#888}
|
||||
|
||||
#bo_v_atc {min-height:200px;height:auto !important;height:200px}
|
||||
#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#bo_v_img {width:100%;overflow:hidden;zoom:1}
|
||||
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_img a.view_image{display:block}
|
||||
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}
|
||||
|
||||
#bo_v_con {margin:10px 0 30px;width:100%;line-height:1.7em;min-height:200px;word-break:break-all;overflow:hidden}
|
||||
#bo_v_con a {color:#333;text-decoration:none}
|
||||
#bo_v_con img {max-width:100%;height:auto}
|
||||
|
||||
#bo_v_act {margin-bottom:30px;text-align:center}
|
||||
#bo_v_act .bo_v_act_gng {position:relative}
|
||||
#bo_v_act a {margin-right:5px;vertical-align:middle}
|
||||
#bo_v_act a:hover{background-color:#f3f3f3}
|
||||
#bo_v_act_good, #bo_v_act_nogood {display:none;position:absolute;top:30px;left:0;padding:10px 0;width:165px;background:#ff3061;color:#fff;text-align:center}
|
||||
#bo_v_act .bo_v_good{display:inline-block;border:1px solid #eee;width:70px;height:70px;padding-top:40px;background:url(./img/icon_good.png) 25px 18px no-repeat;border-radius:50%;font-style:italic}
|
||||
#bo_v_act .bo_v_nogood{display:inline-block;border:1px solid #000;width:70px;height:70px;padding-top:40px;background:url(./img/icon_bad.png) 25px 18px no-repeat;border-radius:50%;font-style:italic}
|
||||
|
||||
#bo_v_share{position:relative;margin:20px 0;text-align:right}
|
||||
#bo_v_share .btn{padding:0 10px 0 0;color:#555;font-weight:normal;font-size:1em ;line-height:30px;height:32px;border-radius:0;border-color:#d5d5d5}
|
||||
#bo_v_share .btn:hover{background:#fff}
|
||||
#bo_v_share .btn i{margin-right:5px;background:#eee;color:#333;text-align:center;width:30px;line-height:30px;vertical-align:top;}
|
||||
#bo_v_share .btn_share{}
|
||||
#bo_v_share .btn_share:hover{}
|
||||
|
||||
.bo_v_snswr{position:relative;display:inline-block;margin-left:-1px}
|
||||
#bo_v_sns {display:none;position:absolute;top:-50px;left:50%;margin-left:-90px;width:180px;padding:0;list-style:none;zoom:1}
|
||||
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_sns:before{content: "";position: absolute;bottom: -7px;left: 84px;width: 0;height: 0;border-style: solid;border-width: 7px 6px 0 6px;border-color: #415b92 transparent transparent transparent;}
|
||||
#bo_v_sns li {float:left;width:60px;text-align:center}
|
||||
#bo_v_sns li a{height:40px;padding:10px 0;}
|
||||
#bo_v_sns li .sns_f{display:block;background:#415b92}
|
||||
#bo_v_sns li .sns_t{display:block;background:#35b3dc}
|
||||
#bo_v_sns li .sns_g{display:block;background:#d5503a}
|
||||
#bo_v_sns.show_kakao{width:240px;margin-left:-120px}
|
||||
#bo_v_sns li .sns_k{display:block;background:#fbe300}
|
||||
#bo_v_sns li img{vertical-align:top}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
.cmt_btn{background:url('./img/cmt_btn.png') no-repeat 85px 8px;text-align:left ;width:100% ;border:0;color:#ed6478;font-weight:bold;font-size:1.25em;margin: 30px 0 0px;padding:0 0 10px }
|
||||
.cmt_btn_op{background:url('./img/cmt_btn.png') no-repeat 85px -23px}
|
||||
#bo_vc {border-top:1px solid #eee; border-bottom:1px solid #eee;}
|
||||
#bo_vc h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_vc article {margin:20px 0;position:relative}
|
||||
#bo_vc article .profile_img img{border-radius:50%}
|
||||
#bo_vc header {}
|
||||
#bo_vc header:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
|
||||
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
|
||||
.bo_vc_hdinfo{float:right;color:#999;font-size:11px;}
|
||||
#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_vc .cmt_contents {padding:0px; margin:10px 0 0;border-radius:0px;border: 0px solid #e8e8e8;line-height:1.8em}
|
||||
#bo_vc p a {text-decoration:underline}
|
||||
#bo_vc p a.s_cmt {text-decoration:underline;color:#ed6479}
|
||||
#bo_vc_empty {margin:0;padding:80px 0 !important;color:#777;text-align:center}
|
||||
#bo_vc #bo_vc_winfo {float:left}
|
||||
|
||||
.bo_vc_act {text-align:right;margin:0;list-style:none;zoom:1}
|
||||
.bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_vc_act li {display:inline-block;}
|
||||
.bo_vc_act li a{padding:0 0px;line-height:23px}
|
||||
|
||||
.bo_vc_w {position:relative;margin:10px 0;display:block;}
|
||||
.bo_vc_w:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
.bo_vc_w #char_cnt {display:block;margin:0 0 5px}
|
||||
.bo_vc_w textarea{border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;width:100%;height:120px;
|
||||
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);}
|
||||
#wr_secret{}
|
||||
.bo_vc_w_info{margin:10px 0;float:left}
|
||||
.bo_vc_w_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_vc_w_info .frm_input{float:left;margin-right:5px}
|
||||
.bo_vc_w_info #captcha{padding-top:10px;display:block;clear:both}
|
||||
.bo_vc_w .btn_confirm{float:right;margin-top:10px}
|
||||
.bo_vc_w .btn_confirm label{display:inline-block;margin-right:10px;border-radius:3px;font-size:1.5em;text-align:center;}
|
||||
.bo_vc_w .btn_submit{height:40px;padding:0 20px;border-radius:3px;font-weight:bold;font-size:1.083em;}
|
||||
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
#bo_vc_send_sns{display:inline-block;float:left}
|
||||
#bo_vc_sns {display:inline-block;margin:0;padding:0;list-style:none;zoom:1}
|
||||
#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_vc_sns li {float:left;margin:0 5px 0 0}
|
||||
#bo_vc_sns .sns_li_f{border-radius:3px;background:#3a589b;height:40px;line-height:40px;padding:0 0 0 10px}
|
||||
#bo_vc_sns .sns_li_t{border-radius:3px;background:#00aced;height:40px;line-height:40px;padding:0 0 0 10px}
|
||||
#bo_vc_sns .sns_li_off{background:#bbb}
|
||||
#bo_vc_sns a{display:inline-block;padding:0 15px 0 5px;}
|
||||
#bo_vc_sns input {margin:0 5px 0 0 }
|
||||
|
||||
|
||||
/*글쓰기*/
|
||||
#bo_w .write_div{padding:10px 0px 0px 0px;position:relative;}
|
||||
#bo_w .bo_w_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_w .bo_w_info .frm_input{float:left;width:33%}
|
||||
#bo_w #wr_password{margin:0 0.5% }
|
||||
#bo_w .wr_content.smarteditor2 iframe{background:#fff;}
|
||||
#bo_w .bo_w_tit{position:relative}
|
||||
#bo_w .bo_w_tit .frm_input{padding-right:120px;}
|
||||
#bo_w .bo_w_tit #btn_autosave{position:absolute;top:5px;right:5px;line-height:30px;height:30px;}
|
||||
#bo_w .bo_w_link label{position:absolute;top:11px;left:1px;border-radius:3px 0 0 3px;height:38px;line-height:38px;width:40px;background: #fff;text-align:center;color:#888}
|
||||
#bo_w .bo_w_link .frm_input{padding-left:50px}
|
||||
#bo_w .bo_w_flie .lb_icon{position:absolute;top:0px;left:0px;border-radius:3px 0 0 3px;height:38px;line-height:38px;width:40px;background:#fff;text-align:center;color:#888}
|
||||
#bo_w .bo_w_flie .frm_file{padding-left:50px;}
|
||||
#bo_w .bo_w_flie .file_wr{border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;height:40px;margin:0}
|
||||
#bo_w .bo_w_flie .frm_input{margin:10px 0 0 }
|
||||
#bo_w .bo_w_flie .file_del{position:absolute;top:10px;right:10px;font-size:0.92em;color:#7d7d7d;line-height:35px;}
|
||||
#bo_w .bo_w_select select{border:1px solid #3497d9;height:40px;border-radius:3px}
|
||||
329
web/html/theme/AT_WEB01/skin/board/webzine/view.skin.php
Normal file
@ -0,0 +1,329 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.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.'/open-iconic.css">', 0);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
|
||||
<!-- 게시물 읽기 시작 { -->
|
||||
<article id="bo_v" style="width:<?php echo $width; ?>">
|
||||
<div class="inner">
|
||||
<header>
|
||||
<h2 id="bo_v_title">
|
||||
<span class="bo_v_tit">
|
||||
<?php
|
||||
echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
|
||||
?></span>
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<section id="bo_v_info">
|
||||
<h2>페이지 정보</h2>
|
||||
<span class="sound_only">작성자</span><strong class="bo_v_writer"><?php echo $view['name'] ?><?php if ($is_ip_view) { echo " ($ip)"; } ?></strong>
|
||||
<span class="sound_only">댓글</span><strong><a href="#bo_vc">댓글 <i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?>건</a></strong>
|
||||
<span class="sound_only">조회</span><strong>조회 <i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?>회</strong>
|
||||
<strong class="if_date"><span class="sound_only">작성일</span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="bo_v_atc">
|
||||
<h2 id="bo_v_atc_title">본문</h2>
|
||||
<?php
|
||||
// 파일 출력
|
||||
$v_img_count = count($view['file']);
|
||||
if($v_img_count) {
|
||||
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=$v_img_count; $i++) {
|
||||
if (!isset($view['file'][$i])) break;
|
||||
// 동영상이면
|
||||
if (preg_match("/\.($config[cf_movie_extension])$/i", $view['file'][$i]['source'])) {
|
||||
echo "<div>\n";
|
||||
echo '<video width="100%" height="100%" controls autoplay loop>';
|
||||
echo '<source src="'.G5_URL."/data/file/".$bo_table."/".$view['file'][$i]['file'].'" type="video/mp4">';
|
||||
echo '</video>';
|
||||
echo '<br>';
|
||||
echo '<br>';
|
||||
echo "</div>\n";
|
||||
} else {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
}
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
/* // 원래 내용
|
||||
// 파일 출력
|
||||
$v_img_count = count($view['file']);
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
if ($view['file'][$i]['view']) {
|
||||
//echo $view['file'][$i]['view'];
|
||||
echo get_view_thumbnail($view['file'][$i]['view']);
|
||||
}
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
*/
|
||||
?>
|
||||
|
||||
<!-- 본문 내용 시작 { -->
|
||||
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>
|
||||
<?php //echo $view['rich_content']; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
|
||||
<!-- } 본문 내용 끝 -->
|
||||
|
||||
<?php if ($is_signature) { ?><p><?php echo $signature ?></p><?php } ?>
|
||||
|
||||
|
||||
<!-- 추천 비추천 시작 { -->
|
||||
<?php if ( $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<?php if ($good_href) { ?>
|
||||
<span class="bo_v_act_gng">
|
||||
<a href="<?php echo $good_href.'&'.$qstr ?>" id="good_button" class="bo_v_good"><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></a>
|
||||
<b id="bo_v_act_good"></b>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php if ($nogood_href) { ?>
|
||||
<span class="bo_v_act_gng">
|
||||
<a href="<?php echo $nogood_href.'&'.$qstr ?>" id="nogood_button" class="bo_v_nogood"><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
|
||||
<b id="bo_v_act_nogood"></b>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } else {
|
||||
if($board['bo_use_good'] || $board['bo_use_nogood']) {
|
||||
?>
|
||||
<div id="bo_v_act">
|
||||
<?php if($board['bo_use_good']) { ?><span class="bo_v_good"><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
|
||||
<?php if($board['bo_use_nogood']) { ?><span class="bo_v_nogood"><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- } 추천 비추천 끝 -->
|
||||
</section>
|
||||
|
||||
<!--
|
||||
<div id="bo_v_share">
|
||||
<?php if ($scrap_href) { ?><a href="<?php echo $scrap_href; ?>" target="_blank" class="btn btn_b03" onclick="win_scrap(this.href); return false;"><i class="fa fa-thumb-tack" aria-hidden="true"></i> 스크랩</a><?php } ?>
|
||||
|
||||
<?php
|
||||
include_once(G5_SNS_PATH."/view.sns.skin.php");
|
||||
?>
|
||||
</div>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$cnt = 0;
|
||||
if ($view['file']['count']) {
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'])
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($cnt) { ?>
|
||||
|
||||
<div id="bo_v_top" class="pt-5 pb-5" style="line-height:24px">
|
||||
<?php
|
||||
// 가변 파일
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source']) {
|
||||
?>
|
||||
|
||||
<i class="oi oi-cloud" aria-hidden="true"></i>
|
||||
<a href="<?php echo $view['file'][$i]['href']; ?>" class="view_file_download"><?php echo $view['file'][$i]['source'] ?></a>
|
||||
<span class="color-gray-no">
|
||||
<?php echo $view['file'][$i]['content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
|
||||
<?php echo $view['file'][$i]['download'] ?>회 다운로드<!-- | DATE : <?php echo $view['file'][$i]['datetime'] ?> -->
|
||||
</span>
|
||||
<br>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(isset($view['link'][1]) && $view['link'][1]) { ?>
|
||||
<div id="bo_v_top" class="pt-5 pb-5" style="line-height:24px">
|
||||
|
||||
|
||||
<?php
|
||||
// 링크
|
||||
$cnt = 0;
|
||||
for ($i=1; $i<=count($view['link']); $i++) {
|
||||
if ($view['link'][$i]) {
|
||||
$cnt++;
|
||||
$link = cut_str($view['link'][$i], 70);
|
||||
?>
|
||||
<i class="oi oi-link-intact" aria-hidden="true"></i> <a href="<?php echo $view['link_href'][$i] ?>" target="_blank"><?php echo $link ?></a>
|
||||
<span class="color-gray-no"><?php echo $view['link_hit'][$i] ?>회 연결</span>
|
||||
<br>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<!-- 게시물 상단 버튼 시작 { -->
|
||||
<div id="bo_v_top">
|
||||
<?php
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<ul class="bo_v_left">
|
||||
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01 btn btn_change"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 수정</a></li><?php } ?>
|
||||
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" class="btn_b01 btn btn_change" onclick="del(this.href); return false;"><i class="fa fa-trash-o" aria-hidden="true"></i> 삭제</a></li><?php } ?>
|
||||
<?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" class="btn_admin btn btn_change" onclick="board_move(this.href); return false;"><i class="fa fa-files-o" aria-hidden="true"></i> 복사</a></li><?php } ?>
|
||||
<?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" class="btn_admin btn btn_change" onclick="board_move(this.href); return false;"><i class="fa fa-arrows" aria-hidden="true"></i> 이동</a></li><?php } ?>
|
||||
<?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>" class="btn_b01 btn btn_change"><i class="fa fa-search" aria-hidden="true"></i> 검색</a></li><?php } ?>
|
||||
</ul>
|
||||
|
||||
<ul class="bo_v_com">
|
||||
<li><a href="<?php echo $list_href ?>" class="btn_b01 btn btn_list"><i class="fa fa-list" aria-hidden="true"></i> 목록</a></li>
|
||||
<?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01 btn btn_answer"><i class="fa fa-reply" aria-hidden="true"></i> 답변</a></li><?php } ?>
|
||||
<?php if ($is_admin) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02 btn btn_write"><i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
|
||||
<?php if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<?php if ($prev_href) { ?><li class="btn_prv clearfix">
|
||||
<span class="nb_tit">
|
||||
<i class="fa fa-caret-up" aria-hidden="true"></i> 이전글
|
||||
</span>
|
||||
|
||||
<a href="<?php echo $prev_href ?>">
|
||||
<?php echo $prev_wr_subject;?>
|
||||
<span class="nb_date"><?php echo str_replace('-', '.', substr($prev_wr_date, '2', '8')); ?></span>
|
||||
</a> </li><?php } ?>
|
||||
|
||||
<?php if ($next_href) { ?><li class="btn_next clearfix"><span class="nb_tit"><i class="fa fa-caret-down" aria-hidden="true"></i> 다음글</span><a href="<?php echo $next_href ?>"><?php echo $next_wr_subject;?> <span class="nb_date"><?php echo str_replace('-', '.', substr($next_wr_date, '2', '8')); ?></span></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</div>
|
||||
<!-- } 게시물 상단 버튼 끝 -->
|
||||
|
||||
<?php
|
||||
// 코멘트 입출력
|
||||
include_once(G5_BBS_PATH.'/view_comment.php');
|
||||
?>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
<!-- } 게시판 읽기 끝 -->
|
||||
|
||||
<script>
|
||||
<?php if ($board['bo_download_point'] < 0) { ?>
|
||||
$(function() {
|
||||
$("a.view_file_download").click(function() {
|
||||
if(!g5_is_member) {
|
||||
alert("다운로드 권한이 없습니다.\n회원이시라면 로그인 후 이용해 보십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
|
||||
|
||||
if(confirm(msg)) {
|
||||
var href = $(this).attr("href")+"&js=on";
|
||||
$(this).attr("href", href);
|
||||
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
function board_move(href)
|
||||
{
|
||||
window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("a.view_image").click(function() {
|
||||
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
|
||||
return false;
|
||||
});
|
||||
|
||||
// 추천, 비추천
|
||||
$("#good_button, #nogood_button").click(function() {
|
||||
var $tx;
|
||||
if(this.id == "good_button")
|
||||
$tx = $("#bo_v_act_good");
|
||||
else
|
||||
$tx = $("#bo_v_act_nogood");
|
||||
|
||||
excute_good(this.href, $(this), $tx);
|
||||
return false;
|
||||
});
|
||||
|
||||
// 이미지 리사이즈
|
||||
$("#bo_v_atc").viewimageresize();
|
||||
|
||||
//sns공유
|
||||
$(".btn_share").click(function(){
|
||||
$("#bo_v_sns").fadeIn();
|
||||
|
||||
});
|
||||
|
||||
$(document).mouseup(function (e) {
|
||||
var container = $("#bo_v_sns");
|
||||
if (!container.is(e.target) && container.has(e.target).length === 0){
|
||||
container.css("display","none");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function excute_good(href, $el, $tx)
|
||||
{
|
||||
$.post(
|
||||
href,
|
||||
{ js: "on" },
|
||||
function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(data.count) {
|
||||
$el.find("strong").text(number_format(String(data.count)));
|
||||
if($tx.attr("id").search("nogood") > -1) {
|
||||
$tx.text("이 글을 비추천하셨습니다.");
|
||||
$tx.fadeIn(200).delay(2500).fadeOut(200);
|
||||
} else {
|
||||
$tx.text("이 글을 추천하셨습니다.");
|
||||
$tx.fadeIn(200).delay(2500).fadeOut(200);
|
||||
}
|
||||
}
|
||||
}, "json"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
<!-- } 게시글 읽기 끝 -->
|
||||
335
web/html/theme/AT_WEB01/skin/board/webzine/view_comment.skin.php
Normal file
@ -0,0 +1,335 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script>
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
||||
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</script>
|
||||
<button type="button" class="cmt_btn">댓글목록</button>
|
||||
<!-- 댓글 시작 { -->
|
||||
<section id="bo_vc">
|
||||
<h2>댓글목록</h2>
|
||||
<?php
|
||||
$cmt_amt = count($list);
|
||||
for ($i=0; $i<$cmt_amt; $i++) {
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 40;
|
||||
$comment = $list[$i]['content'];
|
||||
/*
|
||||
if (strstr($list[$i]['wr_option'], "secret")) {
|
||||
$str = $str;
|
||||
}
|
||||
*/
|
||||
$comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);
|
||||
$cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결
|
||||
?>
|
||||
|
||||
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>style="padding-left:<?php echo $cmt_depth ?>px;border-top-color:#e0e0e0;"<?php } ?>>
|
||||
<header style="z-index:<?php echo $cmt_sv; ?>">
|
||||
<h2><?php echo get_text($list[$i]['wr_name']); ?>님의 <?php if ($cmt_depth) { ?><span class="sound_only">댓글의</span><?php } ?> 댓글</h2>
|
||||
|
||||
<div style="float:left; margin-right:20px; <?php if ($cmt_depth) { ?>padding-left:20px; background-image:url('<?php echo $board_skin_url; ?>/img/icon_reply.gif'); background-repeat:no-repeat;<?php } ?>"><?php echo get_member_profile_img($list[$i]['mb_id']); ?></div>
|
||||
<div style="line-height:25px;"><?php echo $list[$i]['name'] ?> <span class="bo_vc_hdinfo"><i class="oi oi-clock" aria-hidden="true"></i> <time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||
|
||||
<?php if ($is_ip_view) { ?>
|
||||
<span class="sound_only">아이피</span>
|
||||
<span>(<?php echo $list[$i]['ip']; ?>)</span>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 댓글 출력 -->
|
||||
<div class="cmt_contents">
|
||||
<p style="color:#777">
|
||||
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><i class="oi oi-lock-locked" aria-hidden="true"></i> <?php } ?>
|
||||
<?php echo $comment ?>
|
||||
</p>
|
||||
<?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') {
|
||||
$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'])))
|
||||
$cmt['wr_content'] = '';
|
||||
$c_wr_content = $cmt['wr_content'];
|
||||
}
|
||||
|
||||
$c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w';
|
||||
$c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w';
|
||||
?>
|
||||
<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="btn btn_admin" title="답변"><i class="oi oi-chat pline"></i></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="btn btn_admin" title="수정"><i class="oi oi-cog pline"></i></a></li><?php } ?>
|
||||
<?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();" class="btn btn_admin" title="삭제"><i class="oi oi-trash pline"></i></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<span id="edit_<?php echo $comment_id ?>" class="bo_vc_w"></span><!-- 수정 -->
|
||||
<span id="reply_<?php echo $comment_id ?>" class="bo_vc_w"></span><!-- 답변 -->
|
||||
|
||||
|
||||
|
||||
<?php /*
|
||||
include(G5_SNS_PATH.'/view_comment_list.sns.skin.php');
|
||||
*/ ?>
|
||||
</header>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
</article>
|
||||
<?php } ?>
|
||||
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
|
||||
|
||||
</section>
|
||||
<!-- } 댓글 끝 -->
|
||||
|
||||
<?php if ($is_comment_write) {
|
||||
if($w == '')
|
||||
$w = 'c';
|
||||
?>
|
||||
<!-- 댓글 쓰기 시작 { -->
|
||||
<aside id="bo_vc_w" class="bo_vc_w">
|
||||
<h2>댓글쓰기</h2>
|
||||
<form name="fviewcomment" id="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 ?>">
|
||||
<input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="is_good" value="">
|
||||
|
||||
<span class="sound_only">내용</span>
|
||||
<?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="내용" placeholder="댓글내용을 입력해주세요"
|
||||
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
|
||||
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
||||
<script>
|
||||
$(document).on("keyup change", "textarea#wr_content[maxlength]", function() {
|
||||
var str = $(this).val()
|
||||
var mx = parseInt($(this).attr("maxlength"))
|
||||
if (str.length > mx) {
|
||||
$(this).val(str.substr(0, mx));
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div class="bo_vc_w_wr">
|
||||
<div class="bo_vc_w_info">
|
||||
<?php if ($is_guest) { ?>
|
||||
<label for="wr_name" class="sound_only">이름<strong> 필수</strong></label>
|
||||
<input type="text" name="wr_name" value="<?php echo get_cookie("ck_sns_name"); ?>" id="wr_name" required class="frm_input required" size="25" placeholder="이름">
|
||||
<label for="wr_password" class="sound_only">비밀번호<strong> 필수</strong></label>
|
||||
<input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="25" placeholder="비밀번호">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<!--
|
||||
<?php
|
||||
if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) {
|
||||
?>
|
||||
<span class="sound_only">SNS 동시등록</span>
|
||||
<span id="bo_vc_send_sns"></span>
|
||||
<?php } ?>
|
||||
-->
|
||||
<?php if ($is_guest) { ?>
|
||||
<?php echo $captcha_html; ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="btn_confirm">
|
||||
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
|
||||
<label for="wr_secret"><i class="oi oi-lock-locked" aria-hidden="true" style="font-size:14px"></i><span class="sound_only">비밀글사용</span></label>
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="댓글등록">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</aside>
|
||||
|
||||
<script>
|
||||
var save_before = '';
|
||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
|
||||
function good_and_write()
|
||||
{
|
||||
var f = document.fviewcomment;
|
||||
if (fviewcomment_submit(f)) {
|
||||
f.is_good.value = 1;
|
||||
f.submit();
|
||||
} else {
|
||||
f.is_good.value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function fviewcomment_submit(f)
|
||||
{
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
|
||||
f.is_good.value = 0;
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g5_bbs_url+"/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": "",
|
||||
"content": f.wr_content.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 양쪽 공백 없애기
|
||||
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)
|
||||
{
|
||||
check_byte('wr_content', 'char_count');
|
||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||
if (char_min > 0 && char_min > cnt)
|
||||
{
|
||||
alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
} else if (char_max > 0 && char_max < cnt)
|
||||
{
|
||||
alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!document.getElementById('wr_content').value)
|
||||
{
|
||||
alert("댓글을 입력하여 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof(f.wr_name) != 'undefined')
|
||||
{
|
||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||
if (f.wr_name.value == '')
|
||||
{
|
||||
alert('이름이 입력되지 않았습니다.');
|
||||
f.wr_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(f.wr_password) != 'undefined')
|
||||
{
|
||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||
if (f.wr_password.value == '')
|
||||
{
|
||||
alert('비밀번호가 입력되지 않았습니다.');
|
||||
f.wr_password.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
<?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)
|
||||
{
|
||||
var el_id,
|
||||
form_el = 'fviewcomment',
|
||||
respond = document.getElementById(form_el);
|
||||
|
||||
// 댓글 아이디가 넘어오면 답변, 수정
|
||||
if (comment_id)
|
||||
{
|
||||
if (work == 'c')
|
||||
el_id = 'reply_' + comment_id;
|
||||
else
|
||||
el_id = 'edit_' + comment_id;
|
||||
}
|
||||
else
|
||||
el_id = 'bo_vc_w';
|
||||
|
||||
if (save_before != el_id)
|
||||
{
|
||||
if (save_before)
|
||||
{
|
||||
document.getElementById(save_before).style.display = 'none';
|
||||
}
|
||||
|
||||
document.getElementById(el_id).style.display = '';
|
||||
document.getElementById(el_id).appendChild(respond);
|
||||
//입력값 초기화
|
||||
document.getElementById('wr_content').value = '';
|
||||
|
||||
// 댓글 수정
|
||||
if (work == 'cu')
|
||||
{
|
||||
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
||||
if (typeof char_count != 'undefined')
|
||||
check_byte('wr_content', 'char_count');
|
||||
if (document.getElementById('secret_comment_'+comment_id).value)
|
||||
document.getElementById('wr_secret').checked = true;
|
||||
else
|
||||
document.getElementById('wr_secret').checked = false;
|
||||
}
|
||||
|
||||
document.getElementById('comment_id').value = comment_id;
|
||||
document.getElementById('w').value = work;
|
||||
|
||||
if(save_before)
|
||||
$("#captcha_reload").trigger("click");
|
||||
|
||||
save_before = el_id;
|
||||
}
|
||||
}
|
||||
|
||||
function comment_delete()
|
||||
{
|
||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||
}
|
||||
|
||||
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||
|
||||
<?php if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
|
||||
|
||||
$(function() {
|
||||
// sns 등록
|
||||
$("#bo_vc_send_sns").load(
|
||||
"<?php echo G5_SNS_URL; ?>/view_comment_write.sns.skin.php?bo_table=<?php echo $bo_table; ?>",
|
||||
function() {
|
||||
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
}
|
||||
);
|
||||
});
|
||||
<?php } ?>
|
||||
$(function() {
|
||||
//댓글열기
|
||||
$(".cmt_btn").click(function(){
|
||||
$(this).toggleClass("cmt_btn_op");
|
||||
$("#bo_vc").toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<!-- } 댓글 쓰기 끝 -->
|
||||
257
web/html/theme/AT_WEB01/skin/board/webzine/write.skin.php
Normal file
@ -0,0 +1,257 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/open-iconic.css">', 0);
|
||||
?>
|
||||
<section id="bo_w">
|
||||
<div class="inner">
|
||||
<h2 class="sound_only"><?php echo $g5['title'] ?></h2>
|
||||
|
||||
<!-- 게시물 작성/수정 시작 { -->
|
||||
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
|
||||
<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 ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<?php
|
||||
$option = '';
|
||||
$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>';
|
||||
}
|
||||
|
||||
if ($is_html) {
|
||||
if ($is_dhtml_editor) {
|
||||
$option_hidden .= '<input type="hidden" value="html1" name="html">';
|
||||
} else {
|
||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">HTML</label>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($is_secret) {
|
||||
if ($is_admin || $is_secret==1) {
|
||||
$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>';
|
||||
}
|
||||
}
|
||||
|
||||
echo $option_hidden;
|
||||
?>
|
||||
|
||||
<?php if ($is_category) { ?>
|
||||
<div class="bo_w_select write_div">
|
||||
<label for="ca_name" class="sound_only">분류<strong>필수</strong></label>
|
||||
<select name="ca_name" id="ca_name" required>
|
||||
<option value="">분류를 선택하세요</option>
|
||||
<?php echo $category_option ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="bo_w_info write_div">
|
||||
<?php if ($is_name) { ?>
|
||||
<label for="wr_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" placeholder="이름">
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_password) { ?>
|
||||
<label for="wr_password" class="sound_only">비밀번호<strong>필수</strong></label>
|
||||
<input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" placeholder="비밀번호">
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_email) { ?>
|
||||
<label for="wr_email" class="sound_only">이메일</label>
|
||||
<input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email " placeholder="이메일">
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($option) { ?>
|
||||
<div class="write_div">
|
||||
<span class="sound_only">옵션</span>
|
||||
<?php echo $option ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="bo_w_tit write_div">
|
||||
<label for="wr_subject" class="sound_only">제목<strong>필수</strong></label>
|
||||
|
||||
<div id="autosave_wrapper write_div">
|
||||
<input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input full_input required" size="50" maxlength="255" placeholder="제목">
|
||||
<?php if ($is_member) { // 임시 저장된 글 기능 ?>
|
||||
<script src="<?php echo G5_JS_URL; ?>/autosave.js"></script>
|
||||
<?php if($editor_content_js) echo $editor_content_js; ?>
|
||||
<button type="button" id="btn_autosave" class="btn_frmline">임시 저장된 글 (<span id="autosave_count"><?php echo $autosave_count; ?></span>)</button>
|
||||
<div id="autosave_pop">
|
||||
<strong>임시 저장된 글 목록</strong>
|
||||
<ul></ul>
|
||||
<div><button type="button" class="autosave_close">닫기</button></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="write_div">
|
||||
<label for="wr_content" class="sound_only">내용<strong>필수</strong></label>
|
||||
<div class="wr_content <?php echo $is_dhtml_editor ? $config['cf_editor'] : ''; ?>">
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<!-- 최소/최대 글자 수 사용 시 -->
|
||||
<p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
|
||||
<?php } ?>
|
||||
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<!-- 최소/최대 글자 수 사용 시 -->
|
||||
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
||||
<div class="bo_w_link write_div">
|
||||
<label for="wr_link<?php echo $i ?>"><i class="oi oi-link-intact" aria-hidden="true"></i><span class="sound_only"> 링크 #<?php echo $i ?></span></label>
|
||||
<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 full_input" size="50">
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
|
||||
<div class="bo_w_flie write_div">
|
||||
<div class="file_wr write_div">
|
||||
<label for="bf_file_<?php echo $i+1 ?>" class="lb_icon"><i class="oi oi-cloud" aria-hidden="true"></i><span class="sound_only"> 파일 #<?php echo $i+1 ?></span></label>
|
||||
<input type="file" name="bf_file[]" id="bf_file_<?php echo $i+1 ?>" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file" style="border:none; padding-top:2px;">
|
||||
</div>
|
||||
<?php if ($is_file_content) { ?>
|
||||
<input type="text" name="bf_content[]" value="<?php echo ($w == 'u') ? $file[$i]['bf_content'] : ''; ?>" title="파일 설명을 입력해주세요." class="full_input frm_input" size="50" placeholder="파일 설명을 입력해주세요.">
|
||||
<?php } ?>
|
||||
|
||||
<?php if($w == 'u' && $file[$i]['file']) { ?>
|
||||
<span class="file_del">
|
||||
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
|
||||
</span>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ($is_use_captcha) { //자동등록방지 ?>
|
||||
<div class="write_div">
|
||||
<?php echo $captcha_html ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="btn_confirm write_div">
|
||||
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel btn">취소</a>
|
||||
<input type="submit" value="작성완료" id="btn_submit" accesskey="s" class="btn_submit btn">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<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() {
|
||||
check_byte("wr_content", "char_count");
|
||||
});
|
||||
});
|
||||
|
||||
<?php } ?>
|
||||
function html_auto_br(obj)
|
||||
{
|
||||
if (obj.checked) {
|
||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||
if (result)
|
||||
obj.value = "html2";
|
||||
else
|
||||
obj.value = "html1";
|
||||
}
|
||||
else
|
||||
obj.value = "";
|
||||
}
|
||||
|
||||
function fwrite_submit(f)
|
||||
{
|
||||
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g5_bbs_url+"/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": f.wr_subject.value,
|
||||
"content": f.wr_content.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (subject) {
|
||||
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
|
||||
f.wr_subject.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
if (typeof(ed_wr_content) != "undefined")
|
||||
ed_wr_content.returnFalse();
|
||||
else
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.getElementById("char_count")) {
|
||||
if (char_min > 0 || char_max > 0) {
|
||||
var cnt = parseInt(check_byte("wr_content", "char_count"));
|
||||
if (char_min > 0 && char_min > cnt) {
|
||||
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
else if (char_max > 0 && char_max < cnt) {
|
||||
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 게시물 작성/수정 끝 -->
|
||||
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (preg_match("/\.(".$config['cf_movie_extension'].")$/i", $dest_file)) {
|
||||
get_ffmpeg_thumb($dest_file);
|
||||
}
|
||||