5.4 버전 내용 적용
This commit is contained in:
BIN
theme/basic/mobile/skin/qa/basic/img/chk.png
Normal file
BIN
theme/basic/mobile/skin/qa/basic/img/chk.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@ -5,6 +5,30 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php if ($admin_href || $write_href) { ?>
|
||||
<ul class="btn_top top btn_bo_user">
|
||||
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin btn"><i class="fa fa-cog fa-spin fa-fw"></i><span class="sound_only">관리자</span></a></li><?php } ?>
|
||||
<?php if ($is_admin == 'super' || $is_auth) { ?>
|
||||
<li>
|
||||
<button type="button" class="btn_more_opt btn_b03 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<ul class="more_opt">
|
||||
<li><button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"><i class="fa fa-trash-o" aria-hidden="true"></i> 선택삭제</button></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
// 게시판 리스트 관리자 옵션
|
||||
$(".btn_more_opt").on("click", function() {
|
||||
$(".more_opt").toggle();
|
||||
})
|
||||
</script>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="fix_btn"><i class="fa fa-pencil" aria-hidden="true"></i><span class="sound_only">문의등록</span></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<div id="bo_list">
|
||||
<?php if ($category_option) { ?>
|
||||
<!-- 카테고리 시작 { -->
|
||||
@ -17,33 +41,18 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<!-- } 카테고리 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($admin_href || $write_href) { ?>
|
||||
<ul class="btn_top top">
|
||||
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin"><i class="fa fa-user-circle" aria-hidden="true"></i><span class="sound_only">관리자</span></a></li><?php } ?>
|
||||
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02"><i class="fa fa-pencil" aria-hidden="true"></i> 문의등록</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 게시판 페이지 정보 및 버튼 시작 { -->
|
||||
<div class="bo_fx">
|
||||
<div id="bo_list_total" class="sound_only">
|
||||
<span>Total <?php echo number_format($total_count) ?>건</span>
|
||||
<?php echo $page ?> 페이지
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- } 게시판 페이지 정보 및 버튼 끝 -->
|
||||
|
||||
<form name="fqalist" id="fqalist" action="./qadelete.php" onsubmit="return fqalist_submit(this);" method="post">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<div id="list_chk">
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
|
||||
<label for="chkall">게시물 전체선택</label>
|
||||
<div class="all_chk chk_box">
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);" class="selec_chk">
|
||||
<label for="chkall">
|
||||
<span></span>
|
||||
<b class="sound_only">현재 페이지 게시물 </b> 전체선택
|
||||
</label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@ -54,42 +63,35 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
<li class="bo_li<?php if ($is_checkbox) echo ' bo_adm'; ?>">
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<div class="li_chk">
|
||||
<label for="chk_qa_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject']; ?></label>
|
||||
<input type="checkbox" name="chk_qa_id[]" value="<?php echo $list[$i]['qa_id'] ?>" id="chk_qa_id_<?php echo $i ?>">
|
||||
<div class="bo_chk chk_box">
|
||||
<input type="checkbox" name="chk_qa_id[]" value="<?php echo $list[$i]['qa_id'] ?>" id="chk_qa_id_<?php echo $i ?>" class="selec_chk">
|
||||
<label for="chk_qa_id_<?php echo $i ?>">
|
||||
<span></span>
|
||||
<b class="sound_only"><?php echo $list[$i]['subject'] ?></b>
|
||||
</label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="li_title">
|
||||
<strong><?php echo $list[$i]['category']; ?></strong>
|
||||
<a href="<?php echo $list[$i]['view_href']; ?>" class="li_sbj">
|
||||
<?php echo $list[$i]['subject']; ?><span> <?php echo $list[$i]['icon_file']; ?></span>
|
||||
<div class="bo_cnt">
|
||||
<div>
|
||||
<strong class="bo_cate_link"><?php echo $list[$i]['category']; ?></strong>
|
||||
</div>
|
||||
<a href="<?php echo $list[$i]['view_href']; ?>" class="bo_subject">
|
||||
<?php echo $list[$i]['subject']; ?>
|
||||
<?php if ($list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ; ?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="li_info">
|
||||
<span><?php echo $list[$i]['name']; ?></span>
|
||||
<span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$i]['date']; ?></span>
|
||||
|
||||
<div class="li_stat <?php echo ($list[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>"><?php echo ($list[$i]['qa_status'] ? '<i class="fa fa-check-circle" aria-hidden="true"></i> 답변완료' : '<i class="fa fa-times-circle" aria-hidden="true"></i> 답변대기'); ?></div>
|
||||
|
||||
<span class="sound_only">작성자</span><span><?php echo $list[$i]['name']; ?></span>
|
||||
<span class="bo_date"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$i]['date']; ?></span>
|
||||
<div class="li_stat <?php echo ($list[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>"><?php echo ($list[$i]['qa_status'] ? '답변완료' : '답변대기'); ?></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ($i == 0) { echo '<li class="empty_list">게시물이 없습니다.</li>'; } ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="bo_fx">
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<ul class="btn_bo_adm">
|
||||
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -102,15 +104,19 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<!-- 페이지 -->
|
||||
<?php echo $list_pages; ?>
|
||||
|
||||
<div id="bo_list_total">
|
||||
<span>전체 <?php echo number_format($total_count) ?>건</span>
|
||||
<?php echo $page ?> 페이지
|
||||
</div>
|
||||
|
||||
<!-- 게시판 검색 시작 { -->
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<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="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required placeholder="검색어를 입력하세요" id="stx" class="sch_input" size="15" maxlength="15">
|
||||
<button type="submit" value="검색" class="sch_btn"><i class="fa fa-search" aria-hidden="true"></i> <span class="sound_only">검색</span></button>
|
||||
</form>
|
||||
</fieldset>
|
||||
<!-- } 게시판 검색 끝 -->
|
||||
|
||||
@ -51,10 +51,6 @@
|
||||
#bo_w .tbl_frm01 td {}
|
||||
#bo_w .tbl_frm01 textarea, #bo_w .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 {}
|
||||
@ -62,90 +58,122 @@
|
||||
/* ### 기본 스타일 커스터마이징 끝 ### */
|
||||
|
||||
/* 게시판 목록 */
|
||||
#bo_list #list_chk {padding:0 10px }
|
||||
#bo_list {}
|
||||
#bo_list li {background:#fff}
|
||||
|
||||
#bo_list .li_stat{float:right;display:inline-block;height:25px;padding:0 10px;border-radius:15px;margin-top:3px}
|
||||
#bo_list .txt_rdy{border:1px solid #ff63ab;color:#ff63ab;line-height:23px}
|
||||
#bo_list .txt_done{background:#ff63ab;color:#fff;line-height:25px}
|
||||
#bo_list .li_stat {float:right;display:inline-block;height:25px;padding:0 10px;border-radius:15px;margin-top:3px}
|
||||
#bo_list .txt_rdy {background:#ccd1d9;color:#fff;line-height:23px;border-radius:3px}
|
||||
#bo_list .txt_done {background:#f6bb42;color:#fff;line-height:25px;border-radius:3px}
|
||||
|
||||
#bo_list .li_title{display: block;font-weight: bold;margin: 5px 0;}
|
||||
#bo_list .li_title strong{color: #3ca1ff !important;font-weight: normal;text-decoration: none;font-size: 0.92em;}
|
||||
#bo_list .li_info{border-top: 1px solid #eee;margin: 10px 0 0;line-height: 28px;color: #666;position: relative;padding-top: 3px;}
|
||||
#bo_list .li_info:after {display:block;visibility:hidden;clear:both;content:""}#bo_list .profile_img img{border-radius:50%;}
|
||||
#bo_list .li_sbj{display: block;font-weight: bold;margin: 5px 0;font-size: 1.083em;}
|
||||
#bo_list .li_info {line-height:28px;color:#666;position:relative}
|
||||
#bo_list .li_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_list .profile_img img {border-radius:50%}
|
||||
#bo_list .li_sbj {display:block;font-weight:bold;margin:5px 0;font-size:1.083em}
|
||||
|
||||
#bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_cate ul {margin: 10px;padding-left:1px;zoom:1}
|
||||
#bo_cate ul {background:#fff;padding-left:1px;border-bottom:1px solid #d9dce3;zoom:1}
|
||||
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_cate li{display:inline-block;float:left;margin:3px 5px 3px 0}
|
||||
#bo_cate a {display:block;line-height:24px;padding:0 10px;border-radius:13px;background:#fff;}
|
||||
#bo_cate #bo_cate_on {background:#4162ff;color:#fff;
|
||||
-webkit-box-shadow:0 0 5px rgba(65,98,255,0.8);
|
||||
-moz-box-shadow:0 0 5px rgba(65,98,255,0.8);
|
||||
box-shadow: 0 0 8px rgba(65,98,255,0.8);}
|
||||
|
||||
/* 관리자일 때 */
|
||||
#bo_list_admin th label {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#bo_list_admin th:nth-of-type(1) {width:40px}
|
||||
#bo_list_admin th:nth-of-type(3) {width:100px}
|
||||
|
||||
#bo_list_admin td:nth-of-type(1) {text-align:center}
|
||||
#bo_list_admin td:nth-of-type(3) {text-align:center}
|
||||
|
||||
/* 관리자가 아닐 때 */
|
||||
#bo_list th:nth-of-type(2) {width:100px}
|
||||
|
||||
#bo_list td:nth-of-type(2) {text-align:center}
|
||||
#bo_cate li {display:inline-block;float:left}
|
||||
#bo_cate a {display:block;line-height:24px;padding:15px}
|
||||
#bo_cate #bo_cate_on {display:inline-block;position:relative;color:#3a8afd}
|
||||
#bo_cate #bo_cate_on:after {content:"";position:absolute;left:0;bottom:0;width:100%;height:4px;display:inline-block;background:#3a8afd}
|
||||
|
||||
/* 게시판 목록 공통 */
|
||||
.bo_fx {margin-bottom:5px;padding:5px 10px}
|
||||
.bo_fx {margin-bottom:5px;padding:0 10px}
|
||||
.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;padding:0;height:2.5em;line-height:2.5em}
|
||||
.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 10px;height:2em;border:1px solid #e8180c !important;background:#e8180c;color:#fff;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-appearance:none}
|
||||
.bo_notice td {background:#f7f7f7}
|
||||
.bo_notice td a {font-weight:bold}
|
||||
.td_num strong {color:#000}
|
||||
.bo_cate_link {display:inline-block;margin:0 3px 0 0;padding:0 6px 0 0;border-right:1px solid #e7f1ed;color:#999 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */
|
||||
.bo_current {color:#e8180c}
|
||||
.td_subject img {margin-left:3px}
|
||||
#bo_list .cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
|
||||
#bo_list_total {margin:10px;text-align:center;padding:10px;text-align:center;background:#e3e7ec;color:#8b8b8b;border-radius:3px}
|
||||
|
||||
#bo_sch {margin-bottom:10px;padding-top:5px;text-align:center}
|
||||
#bo_sch .btn_submit{width:40px;height:40px}
|
||||
.btn_bo_user > li {float:left;text-align:center;margin-left:5px}
|
||||
.btn_bo_adm button {border:0;padding:0 10px;background:#d13f4a;color:#fff;text-decoration:none;vertical-align:middle}
|
||||
.btn_more_opt {width:30px}
|
||||
.more_opt {display:none;position:absolute;top:50px;right:7px;width:85px;background:#fff;border:1px solid #b8bfc4;z-index:999}
|
||||
.more_opt:before {content:"";position:absolute;top:-8px;right:6px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
|
||||
.more_opt:after {content:"";position:absolute;top:-6px;right:6px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
|
||||
.more_opt li {display:block;border-bottom:1px solid #f1f1f1;padding:10px;margin:0;color:#6b757c;text-align:left}
|
||||
.more_opt li:last-child {border-bottom:0}
|
||||
.more_opt li button, .more_opt li a {width:100%;border:0;background:#fff;color:#6b757c}
|
||||
.more_opt li:hover a,
|
||||
.more_opt li:hover button {color:#000}
|
||||
.more_opt li i {line-height:20px}
|
||||
|
||||
.bo_cate_link {display:inline-block;background:#e2eaf6;padding:0 5px;line-height:20px;border-radius:5px;font-weight:bold;font-size:11px;color:#3ca1ff !important;text-decoration:none;/*font-size:0.92em*/} /* 글제목줄 분류스타일 */
|
||||
.bo_cnt {display:block;width:100%;font-size:1.083em;font-weight:bold;line-height:1.4em}
|
||||
.bo_cnt i {color: #8d96c2;font-size:12px}
|
||||
.bo_cnt .fa-heart {color:#ff0000}
|
||||
.bo_cnt .fa-download {display:inline-block;width:16px;height:16px;line-height:18px;font-size:0.833em;color:#daae37;background:#ffefb9;text-align:center;border-radius:2px;vertical-align:middle}
|
||||
.bo_chk {display:inline-block;float:left;margin-right:5px}
|
||||
|
||||
.selec_chk {position:absolute;top:0;left:0;width:0;height:0;opacity:0;outline:0;z-index:-1;overflow:hidden}
|
||||
.chk_op {margin:10px 0}
|
||||
.chk_op label {vertical-align:baseline}
|
||||
.chk_box {position:relative}
|
||||
.chk_box input[type="checkbox"] + label {padding-left:20px;color:#676e70}
|
||||
.chk_box input[type="checkbox"] + label:hover {color:#2172f8}
|
||||
.chk_box input[type="checkbox"] + label span {position:absolute;top:0;left:0;width:15px;height:15px;display:block;background:#fff;border:1px solid #d0d4df;border-radius:3px}
|
||||
.chk_box input[type="checkbox"]:checked + label {color:#000}
|
||||
.chk_box input[type="checkbox"]:checked + label span {background:url(./img/chk.png) no-repeat 50% 50% #3a8afd;border-color:#1471f6;border-radius:3px}
|
||||
.chk_box input[type="radio"] {position:absolute;top:0;left:0;width:0;height:0;opacity:0;outline:0;z-index:-1;overflow:hidden}
|
||||
.chk_box input[type="radio"] + label {position:relative;padding-left:23px;display:inline-block;color:#676e70}
|
||||
.chk_box input[type="radio"] + label span {position:absolute;top:0;left:0;width:15px;height:15px;display:block;background:#f7f8f9;border:1px solid #cdd6df;border-radius:50%}
|
||||
.chk_box input[type="radio"]:checked + label {color:#ff8080}
|
||||
.chk_box input[type="radio"]:checked + label span {border-color:#ea6060}
|
||||
.chk_box input[type="radio"]:checked + label span:before {width:9px;height:9px;background:#ff8080;content:'';position:absolute;top:3px;left:3px;border-radius:50%}
|
||||
.all_chk.chk_box input[type="checkbox"] + label span {top:18px;left:15px}
|
||||
|
||||
.bo_cmt {background:#e9eff5;color:#3a8afd;font-size:11px;height:16px;line-height:16px;padding:0 5px;border-radius:3px;vertical-align:middle}
|
||||
|
||||
.bo_subject {display:block;width:100%;padding:5px 0}
|
||||
.bo_current {color:#e8180c}
|
||||
.bo_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_info {position:relative;padding-top:5px;line-height:20px;color:#646464;vertical-align:top}
|
||||
.bo_info i {margin-left:5px}
|
||||
.bo_info .comment_icon {background:url(./img/icon_comment.png) no-repeat 50% 50%;display:inline-block;width:20px;height:28px;text-indent:-999px;overflow:hidden;vertical-align:top;background-size:70%;margin:0 0px 0 5px}
|
||||
.bo_info .bo_date {}
|
||||
.bo_info .cnt_cmt {display:inline-block;margin: 0 5px 0 3px}
|
||||
.bo_info .profile_img img {border-radius:50%;vertical-align:top}
|
||||
|
||||
#bo_sch {background:#fff;border:1px solid #d0d3db;position:relative;margin:10px}
|
||||
#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 .sch_input {float:left;width:100%;height:38px;border:0;padding:0;background-color:transparent;padding:0 0 0 10px}
|
||||
#bo_sch .sch_btn {height:38px;position:absolute;top:0;right:0;border:0;width:40px;background:none;font-size:15px}
|
||||
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#bo_w #wr_email, #bo_w #wr_homepage, #bo_w #wr_subject {width:100%}
|
||||
#bo_w {padding:15px}
|
||||
#bo_w .bo_v_option li {display:inline-block;float:left;margin:0 5px 0 0}
|
||||
#bo_w .bo_v_option li label {vertical-align:baseline}
|
||||
#bo_w .bo_v_option:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_w .bo_w_select select {border:1px solid #d0d3db;background:#fff;width:100%}
|
||||
#bo_w .bo_w_link label {position:absolute;top:1px;left:1px;border-radius:3px 0 0 3px;width:45px;height:43px;line-height:43px;font-size:1.2em;text-align:center;color:#b2b2b2}
|
||||
#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;width:45px;height:43px;line-height:43px;font-size:1.2em;text-align:center;color:#b2b2b2}
|
||||
#bo_w .bo_w_flie .frm_file {padding-left:50px}
|
||||
#bo_w .bo_w_flie .file_wr {position:relative;color:#000;vertical-align:middle;margin:0}
|
||||
#bo_w .bo_w_flie .frm_input {margin:5px 0 0}
|
||||
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrp {margin:5px 0 0;text-align:right}
|
||||
#char_count {font-weight:bold}
|
||||
.filebox .btn_file {display:inline-block;position:absolute;right:8px;top:8px;border:1px solid #3a8afd;border-radius:3px;width:60px;height:30px;color:#3a8afd;font-size:1em;line-height:30px;font-weight:bold;background:#fff;text-align:center;vertical-align:middle;cursor:pointer}
|
||||
.filebox .fileName {display:inline-block;position:relative;width:100%;height:45px;padding-left:45px;line-height:30px;border:1px solid #d0d3db;background-color:#fff;color:red;vertical-align:middle;border-radius:0}
|
||||
.filebox input[type="file"] {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
|
||||
|
||||
#qa_subject {width:100%}
|
||||
#bo_w .btn_confirm {text-align:center;margin:20px 0}
|
||||
#bo_w .btn_submit {width:49%;height:45px;padding:0 30px;font-weight:bold;font-size:1.083em}
|
||||
#bo_w .btn_cancel {width:49%;line-height:45px;height:45px;padding:0 30px;font-weight:bold;font-size:1.083em;background:#fff;border-radius:3px;border:1px solid #dcdcdc}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v {margin-bottom:15px;padding-bottom:15px}
|
||||
#bo_v .bo_v_wr{background:#fff;margin:10px;border-radius:5px;padding:15px;
|
||||
-webkit-box-shadow: 0 1px 4px #cbd1df;
|
||||
-moz-box-shadow: 0 1px 4px #cbd1df;
|
||||
box-shadow: 0 1px 4px #cbd1df;}
|
||||
#bo_v {padding:20px 0 0;background:#fff}
|
||||
#bo_v>header {padding:0 15px}
|
||||
|
||||
#bo_v_table {margin:0 0 5px;padding:0 10px;color:#999;font-size:0.9em;font-weight:bold}
|
||||
#bo_v_title {}
|
||||
.bo_v_cate {display:inline-block;background:#e2eaf6;color:#3a8afd;border-radius:13px;line-height:20px;border-radius:5px;padding:0 5px;font-weight:bold}
|
||||
.bo_v_tit {display:block;font-size:1.5em;margin:10px 0 0}
|
||||
|
||||
#bo_v_title {padding:0 0 10px;font-size:1.2em}
|
||||
#bo_v_title span{display:block;font-size:11px;color:#4162ff}
|
||||
|
||||
#bo_v_info {padding:0 0 10px;border-bottom:1px solid #eee;position:relative;}
|
||||
#bo_v_info {position:relative;margin-top:10px;color:#767e86}
|
||||
#bo_v_info h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#bo_v_info strong {display:inline-block;margin:0 ;font-weight:normal}
|
||||
#bo_v_info .info_date{position:absolute;top:0;right:0;color:#777}
|
||||
#bo_v_info .profile_img img{border-radius:50%}
|
||||
#bo_v_info strong {display:inline-block;font-weight:normal}
|
||||
#bo_v_info i {margin-left:5px}
|
||||
#bo_v_info .profile_img img {border-radius:50%}
|
||||
|
||||
#bo_v_file {}
|
||||
#bo_v_file h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
@ -165,11 +193,11 @@ box-shadow: 0 1px 4px #cbd1df;}
|
||||
|
||||
#bo_v_contact {border-bottom:1px solid #eee}
|
||||
#bo_v_contact h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#bo_v_contact dl {margin:0;padding:5px 0;color:#666;list-style:none}
|
||||
#bo_v_contact dl {margin:0;padding:10px 0;color:#666;list-style:none}
|
||||
#bo_v_contact dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_contact dt, #bo_v_contact dd {float:left;margin:0}
|
||||
#bo_v_contact dt {clear:both;padding:3px 0 ;width:30px;text-align:center;font-weight:bold}
|
||||
#bo_v_contact dd {padding:3px 0;width:80%}
|
||||
#bo_v_contact dt {clear:both;margin-right:5px;text-align:center;font-weight:bold}
|
||||
#bo_v_contact dd {width:80%}
|
||||
|
||||
#bo_v_top {margin:0 0 10px;padding:10px}
|
||||
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -181,12 +209,15 @@ box-shadow: 0 1px 4px #cbd1df;}
|
||||
#bo_v_bot h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#bo_v_bot ul {margin:0;padding:0;list-style:none}
|
||||
|
||||
.bo_v_nb {float:left}
|
||||
.bo_v_nb li {float:left;margin-right:5px}
|
||||
.bo_v_com {float:right}
|
||||
.bo_v_com li {float:left;margin-left:5px}
|
||||
.bo_v_nb {position:relative;margin:10px 0 0;border-top:1px solid #e4e4ec;border-bottom:1px solid #e4e4ec;text-align:left}
|
||||
.bo_v_nb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_v_nb li {}
|
||||
.bo_v_nb li a {display:block;padding:15px;color:#777}
|
||||
.bo_v_nb li a i {color:#c5cfdd}
|
||||
.bo_v_nb li.bo_v_prev {border-bottom:1px solid #f8f8f8}
|
||||
.bo_v_nb li.bo_v_next {}
|
||||
|
||||
#bo_v_atc {padding:10px 0;min-height:100px}
|
||||
#bo_v_atc {min-height:200px;padding:15px}
|
||||
#bo_v_atc_title {margin:0;padding:0;height:0;overflow:hidden}
|
||||
|
||||
#bo_v_img {margin:0 0 10px;width:100%;overflow:hidden;zoom:1}
|
||||
@ -209,31 +240,34 @@ box-shadow: 0 1px 4px #cbd1df;}
|
||||
|
||||
#bo_v_addq {margin:0 0 30px;text-align:right}
|
||||
|
||||
#bo_v_ans {}
|
||||
#bo_v_ans h2 {font-size:1.2em;margin:10px}
|
||||
#bo_v_ans h2 span{display:block}
|
||||
#bo_v_ans h2 .tit_rpl{display:inline-block;font-size:11px;padding:0 5px;line-height:23px;font-weight:normal;background:#646982;color:#fff;}
|
||||
#bo_v_ans #ans_datetime {padding:5px 0 10px;border-bottom:1px solid #eee;color:#777}
|
||||
#bo_v_ans #ans_con {margin:10px 0 ;line-height:1.8em}
|
||||
#bo_v_ans #ans_con img{max-width:100%;height:auto}
|
||||
#bo_v_ans #ans_add {text-align:right}
|
||||
#bo_v_ans {margin-top:10px;background:#fff;position:relative}
|
||||
#bo_v_ans h2 {font-size:1.2em;padding:15px 15px 5px}
|
||||
#bo_v_ans h2 span {display:inline-block}
|
||||
#bo_v_ans h2 .tit_rpl {font-size:11px;padding:0 5px;line-height:23px;border-radius:25px;margin-right:5px;font-weight:normal;background:#fff;color:#3a8afd;border:1px solid #a9c6fe}
|
||||
#bo_v_ans h2 .tit_cnt {font-size:1.125em}
|
||||
#bo_v_ans #ans_datetime {padding:10px 0 15px;border-bottom:1px solid #eee;color:#767e86;font-size:0.825em;font-weight:normal}
|
||||
#bo_v_ans #ans_con {padding:15px;line-height:1.8em;border-bottom:1px solid #e4e4ec}
|
||||
#bo_v_ans #ans_con img {max-width:100%;height:auto}
|
||||
|
||||
#bo_v_ans #btn_ans_btn {position:absolute;right:5px;top:10px}
|
||||
#bo_v_ans #ans_add {display:none;position:absolute;right:8px;top:53px;background:#fff;border:1px solid #b8bfc4;z-index:999}
|
||||
#bo_v_ans #ans_add:before {content:"";position:absolute;top:-8px;right:6px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
|
||||
#bo_v_ans #ans_add:after {content:"";position:absolute;top:-6px;right:6px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
|
||||
#bo_v_ans #ans_add a {display:block;border-bottom: 1px solid #f1f1f1;padding:10px;color:#6b757c}
|
||||
.add_qu {display:block;text-align:center;margin:15px;height:45px;line-height:45px;padding:0 10px;border:0;font-weight:bold;background:#3a8afd;color:#fff;border-radius:3px}
|
||||
|
||||
#bo_v_ans #ans_msg {padding:40px 0;background:#f2f5f9;text-align:center}
|
||||
#bo_v_ans .btn_submit{width:100%;height:40px;border-radius:5px}
|
||||
#bo_v_ans .btn_confirm{margin:0 10px}
|
||||
#bo_v_ans .btn_submit {width:100%;height:40px;border-radius:5px}
|
||||
#bo_v_ans .btn_confirm {margin:0 10px}
|
||||
|
||||
#bo_v_rel {}
|
||||
#bo_v_rel h2 {margin:0 10px 10px;font-size:1.2em}
|
||||
#bo_v_rel .li_stat{float:right;display:inline-block;height:25px;padding:0 10px;border-radius:15px;margin-top:3px}
|
||||
#bo_v_rel .txt_rdy{border:1px solid #ff63ab;color:#ff63ab;line-height:23px}
|
||||
#bo_v_rel .txt_done{background:#ff63ab;color:#fff;line-height:25px}
|
||||
|
||||
#bo_v_rel .li_title{display: block;font-weight: bold;margin: 5px 0;}
|
||||
#bo_v_rel .li_title strong{color: #3ca1ff !important;font-weight: normal;text-decoration: none;font-size: 0.92em;}
|
||||
#bo_v_rel .li_info{border-top: 1px solid #eee;margin: 10px 0 0;line-height: 28px;color: #666;position: relative;padding-top: 3px;}
|
||||
#bo_v_rel .li_info:after {display:block;visibility:hidden;clear:both;content:""}#bo_list .profile_img img{border-radius:50%;}
|
||||
#bo_v_rel .li_sbj{display: block;font-weight: bold;margin: 5px 0;font-size: 1.083em;}
|
||||
|
||||
#bo_v_rel .li_stat {float:right;display:inline-block;height:25px;padding:0 10px;border-radius:15px;margin-top:3px}
|
||||
#bo_v_rel .txt_rdy {border:1px solid #ff63ab;color:#ff63ab;line-height:23px}
|
||||
#bo_v_rel .txt_done {background:#ff63ab;color:#fff;line-height:25px}
|
||||
|
||||
#bo_v_rel .li_title {display:block;font-weight:bold;margin:5px 0}
|
||||
#bo_v_rel .li_title strong {color:#3ca1ff !important;font-weight:normal;text-decoration:none;font-size:0.92em}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
#bo_vc {margin:0 0 5px;padding:15px 15px 5px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f7}
|
||||
@ -268,8 +302,3 @@ box-shadow: 0 1px 4px #cbd1df;}
|
||||
#bo_vc_sns input {margin:0 0 0 5px}
|
||||
|
||||
#bo_vc form {padding:0}
|
||||
|
||||
#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:#eee;text-align:center}
|
||||
#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:5px 0 0 }
|
||||
|
||||
@ -3,23 +3,32 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<section id="bo_v_ans" class="bo_v_wr">
|
||||
<h2><span class="tit_rpl">답변</span><span><?php echo get_text($answer['qa_subject']); ?></span></h2>
|
||||
|
||||
<div id="ans_datetime">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $answer['qa_datetime']; ?>
|
||||
</div>
|
||||
<h2>
|
||||
<span class="tit_rpl">답변</span>
|
||||
<span class="tit_cnt"><?php echo get_text($answer['qa_subject']); ?></span>
|
||||
<div id="ans_datetime">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $answer['qa_datetime']; ?>
|
||||
</div>
|
||||
</h2>
|
||||
<div id="ans_con">
|
||||
<?php echo get_view_thumbnail(conv_content($answer['qa_content'], $answer['qa_html']), $qaconfig['qa_image_width']); ?>
|
||||
</div>
|
||||
|
||||
<div id="ans_add">
|
||||
|
||||
<button id="btn_ans_btn" class="btn_b03 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>
|
||||
<div id="ans_add" class="ans_more_opt">
|
||||
<?php if($answer_update_href) { ?>
|
||||
<a href="<?php echo $answer_update_href; ?>" class="btn_b01 btn">답변수정</a>
|
||||
<a href="<?php echo $answer_update_href; ?>">답변수정</a>
|
||||
<?php } ?>
|
||||
<?php if($answer_delete_href) { ?>
|
||||
<a href="<?php echo $answer_delete_href; ?>" class="btn_b01 btn" onclick="del(this.href); return false;">답변삭제</a>
|
||||
<a href="<?php echo $answer_delete_href; ?>" onclick="del(this.href); return false;">답변삭제</a>
|
||||
<?php } ?>
|
||||
<a href="<?php echo $rewrite_href; ?>" class="btn_b02 btn">추가질문</a>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<a href="<?php echo $rewrite_href; ?>" class="add_qu">추가질문</a>
|
||||
|
||||
<script>
|
||||
// 답변 글쓰기 관리자 옵션
|
||||
$("#btn_ans_btn").on("click", function() {
|
||||
$(".ans_more_opt").toggle();
|
||||
})
|
||||
</script>
|
||||
@ -8,24 +8,47 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
|
||||
<ul class="btn_top top btn_bo_user">
|
||||
<li><a href="<?php echo $list_href ?>" class="btn_b03 btn"><i class="fa fa-list" aria-hidden="true"></i><span class="sound_only">목록</span></a></li>
|
||||
<?php if ($write_href) { ?>
|
||||
<li><a href="<?php echo $write_href ?>" class="btn_b03 btn"><i class="fa fa-pencil" aria-hidden="true"></i><span class="sound_only">글쓰기</a></li>
|
||||
<?php } ?>
|
||||
<li>
|
||||
<button type="button" class="btn_more_opt btn_b03 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>
|
||||
<?php ob_start(); ?>
|
||||
<ul class="more_opt">
|
||||
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" onclick="del(this.href); return false;"><i class="fa fa-trash-o" aria-hidden="true"></i> 삭제</a></li><?php } ?>
|
||||
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 수정</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
<script>
|
||||
// 글쓰기 관리자 옵션
|
||||
$(".btn_more_opt").on("click", function() {
|
||||
$(".more_opt").toggle();
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- 게시물 읽기 시작 { -->
|
||||
|
||||
<article id="bo_v">
|
||||
<div class="bo_v_wr">
|
||||
<header>
|
||||
<h2 id="bo_v_title">
|
||||
<span><?php echo $view['category'] ; // 분류 출력 끝 ?></span>
|
||||
<?php echo $view['subject']; // 글제목 출력 ?>
|
||||
</h2>
|
||||
</header>
|
||||
<section id="bo_v_info">
|
||||
<h2>페이지 정보</h2>
|
||||
<span class="sound_only">작성자</span><strong><?php echo $view['name'] ?></strong>
|
||||
<span class="sound_only">작성일</span><strong class="info_date"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $view['datetime']; ?></strong>
|
||||
</section>
|
||||
|
||||
<?php if($view['email'] || $view['hp']) { ?>
|
||||
<section id="bo_v_contact">
|
||||
<header>
|
||||
<h2 id="bo_v_title">
|
||||
<span class="bo_v_cate"><?php echo $view['category'] ; // 분류 출력 끝 ?></span>
|
||||
<span class="bo_v_tit"><?php echo $view['subject']; // 글제목 출력 ?></span>
|
||||
</h2>
|
||||
<div id="bo_v_info">
|
||||
<h2>페이지 정보</h2>
|
||||
<span class="sound_only">작성자</span><strong><?php echo $view['name'] ?></strong>
|
||||
<span class="sound_only">작성일</span><strong><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $view['datetime']; ?></strong>
|
||||
<span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?></strong>
|
||||
<span class="sound_only">댓글</span><strong><i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?></strong>
|
||||
</div>
|
||||
<?php if($view['email'] || $view['hp']) { ?>
|
||||
<div id="bo_v_contact">
|
||||
<h2>연락처정보</h2>
|
||||
<dl>
|
||||
<?php if($view['email']) { ?>
|
||||
@ -37,138 +60,109 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<dd><?php echo $view['hp']; ?></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</header>
|
||||
|
||||
<section id="bo_v_atc">
|
||||
<h2 id="bo_v_atc_title">본문</h2>
|
||||
<section id="bo_v_atc">
|
||||
<h2 id="bo_v_atc_title">본문</h2>
|
||||
|
||||
<?php
|
||||
// 파일 출력
|
||||
if($view['img_count']) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
<?php
|
||||
// 파일 출력
|
||||
if($view['img_count']) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<$view['img_count']; $i++) {
|
||||
//echo $view['img_file'][$i];
|
||||
echo get_view_thumbnail($view['img_file'][$i], $qaconfig['qa_image_width']);
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
for ($i=0; $i<$view['img_count']; $i++) {
|
||||
//echo $view['img_file'][$i];
|
||||
echo get_view_thumbnail($view['img_file'][$i], $qaconfig['qa_image_width']);
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- 본문 내용 시작 { -->
|
||||
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content'], $qaconfig['qa_image_width']); ?></div>
|
||||
<!-- } 본문 내용 끝 -->
|
||||
echo "</div>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($view['qa_type']) { ?>
|
||||
<div><a href="<?php echo $rewrite_href; ?>" class="btn_b01">추가질문</a></div>
|
||||
<?php } ?>
|
||||
<!-- 본문 내용 시작 { -->
|
||||
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content'], $qaconfig['qa_image_width']); ?></div>
|
||||
<!-- } 본문 내용 끝 -->
|
||||
|
||||
|
||||
<?php if($view['download_count']) { ?>
|
||||
<!-- 첨부파일 시작 { -->
|
||||
<section id="bo_v_file">
|
||||
<h2>첨부파일</h2>
|
||||
<ul>
|
||||
<?php
|
||||
// 가변 파일
|
||||
for ($i=0; $i<$view['download_count']; $i++) {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $view['download_href'][$i]; ?>" class="view_file_download">
|
||||
<img src="<?php echo $qa_skin_url ?>/img/icon_file.gif" alt="첨부">
|
||||
<strong><?php echo $view['download_source'][$i] ?></strong>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- } 첨부파일 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="btn_top top">
|
||||
<ul>
|
||||
<li><a href="<?php echo $list_href ?>" class="btn_b01 "><i class="fa fa-list" aria-hidden="true"></i><span class="sound_only">목록</span></a></li>
|
||||
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 게시물 상단 버튼 시작 { -->
|
||||
<div id="bo_v_top">
|
||||
<?php
|
||||
ob_start();
|
||||
?>
|
||||
<?php if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01 btn"><i class="fa fa-angle-left" aria-hidden="true"></i> 이전글</a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01 btn">다음글 <i class="fa fa-angle-right" aria-hidden="true"></i></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php if($view['qa_type']) { ?>
|
||||
<div><a href="<?php echo $rewrite_href; ?>" class="btn_b01">추가질문</a></div>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="bo_v_com">
|
||||
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01 btn"><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" onclick="del(this.href); return false;"><i class="fa fa-trash-o" aria-hidden="true"></i> 삭제</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</div>
|
||||
<!-- } 게시물 상단 버튼 끝 -->
|
||||
|
||||
<?php
|
||||
// 질문글에서 답변이 있으면 답변 출력, 답변이 없고 관리자이면 답변등록폼 출력
|
||||
if(!$view['qa_type']) {
|
||||
if($view['qa_status'] && $answer['qa_id'])
|
||||
include_once($qa_skin_path.'/view.answer.skin.php');
|
||||
else
|
||||
include_once($qa_skin_path.'/view.answerform.skin.php');
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($view['rel_count']) { ?>
|
||||
<section id="bo_v_rel">
|
||||
<h2>연관질문</h2>
|
||||
|
||||
<div class="list_01">
|
||||
|
||||
<?php if($view['download_count']) { ?>
|
||||
<!-- 첨부파일 시작 { -->
|
||||
<section id="bo_v_file">
|
||||
<h2>첨부파일</h2>
|
||||
<ul>
|
||||
<?php
|
||||
for($i=0; $i<$view['rel_count']; $i++) {
|
||||
?>
|
||||
// 가변 파일
|
||||
for ($i=0; $i<$view['download_count']; $i++) {
|
||||
?>
|
||||
<li>
|
||||
<div class="li_title">
|
||||
<strong><?php echo get_text($rel_list[$i]['category']); ?></strong>
|
||||
|
||||
<a href="<?php echo $rel_list[$i]['view_href']; ?>" class="li_sbj">
|
||||
<?php echo $rel_list[$i]['subject']; ?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="li_info">
|
||||
<span class="li_stat <?php echo ($list[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>"><?php echo ($rel_list[$i]['qa_status'] ? '답변완료' : '답변대기'); ?></span>
|
||||
<span class="li_date"><?php echo $rel_list[$i]['date']; ?></span>
|
||||
</div>
|
||||
<a href="<?php echo $view['download_href'][$i]; ?>" class="view_file_download">
|
||||
<img src="<?php echo $qa_skin_url ?>/img/icon_file.gif" alt="첨부">
|
||||
<strong><?php echo $view['download_source'][$i] ?></strong>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 첨부파일 끝 -->
|
||||
<?php } ?>
|
||||
</section>
|
||||
|
||||
<?php if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<?php if ($prev_href) { ?><li class="bo_v_prev"><a href="<?php echo $prev_href ?>"><i class="fa fa-chevron-up" aria-hidden="true"></i><span class="sound_only">이전글</span> <?php echo $prev_wr_subject;?></a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li class="bo_v_next"><a href="<?php echo $next_href ?>"><i class="fa fa-chevron-down" aria-hidden="true"></i><span class="sound_only">다음글</span> <?php echo $next_wr_subject;?></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
<!-- } 게시판 읽기 끝 -->
|
||||
|
||||
<?php
|
||||
// 질문글에서 답변이 있으면 답변 출력, 답변이 없고 관리자이면 답변등록폼 출력
|
||||
if(!$view['qa_type']) {
|
||||
if($view['qa_status'] && $answer['qa_id'])
|
||||
include_once($qa_skin_path.'/view.answer.skin.php');
|
||||
else
|
||||
include_once($qa_skin_path.'/view.answerform.skin.php');
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($view['rel_count']) { ?>
|
||||
<section id="bo_v_rel">
|
||||
<h2>연관질문</h2>
|
||||
|
||||
<div class="list_01">
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
for($i=0; $i<$view['rel_count']; $i++) {
|
||||
?>
|
||||
<li>
|
||||
<div class="li_title">
|
||||
<strong><?php echo get_text($rel_list[$i]['category']); ?></strong>
|
||||
|
||||
<a href="<?php echo $rel_list[$i]['view_href']; ?>" class="li_sbj">
|
||||
<?php echo $rel_list[$i]['subject']; ?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="li_info">
|
||||
<span class="li_stat <?php echo ($list[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>"><?php echo ($rel_list[$i]['qa_status'] ? '답변완료' : '답변대기'); ?></span>
|
||||
<span class="li_date"><?php echo $rel_list[$i]['date']; ?></span>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("a.view_image").click(function() {
|
||||
|
||||
@ -21,18 +21,17 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
if ($is_dhtml_editor) {
|
||||
$option_hidden .= '<input type="hidden" name="qa_html" value="1">';
|
||||
} else {
|
||||
$option .= "\n".'<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="qa_html">html</label>';
|
||||
$option .= "\n".'<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.' class="selec_chk">'."\n".'<label for="qa_html"><span></span>html</label>';
|
||||
}
|
||||
|
||||
echo $option_hidden;
|
||||
?>
|
||||
|
||||
?>
|
||||
<div class="form_01">
|
||||
<ul>
|
||||
<?php if ($category_option) { ?>
|
||||
<li>
|
||||
<li class="bo_w_select">
|
||||
<label for="qa_category" class="sound_only">분류<strong>필수</strong></label>
|
||||
<select name="qa_category" id="qa_category" required class="required" >
|
||||
<select name="qa_category" id="qa_category" required class="required">
|
||||
<option value="">선택하세요</option>
|
||||
<?php echo $category_option ?>
|
||||
</select>
|
||||
@ -42,7 +41,9 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<?php if ($option) { ?>
|
||||
<li>
|
||||
<span class="sound_only">옵션</span>
|
||||
<div class="chk_op chk_box">
|
||||
<?php echo $option; ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
@ -50,8 +51,10 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<li>
|
||||
<label for="qa_email" class="sound_only">이메일</label>
|
||||
<input type="email" name="qa_email" value="<?php echo get_text($write['qa_email']); ?>" id="qa_email" <?php echo $req_email; ?> class="<?php echo $req_email.' '; ?>frm_input full_input email" maxlength="100" placeholder="이메일">
|
||||
<input type="checkbox" name="qa_email_recv" value="1" id="qa_email_recv" <?php if($write['qa_email_recv']) echo 'checked="checked"'; ?>>
|
||||
<label for="qa_email_recv">답변받기</label>
|
||||
<div class="chk_op chk_box">
|
||||
<input type="checkbox" name="qa_email_recv" value="1" id="qa_email_recv" <?php if($write['qa_email_recv']) echo 'checked="checked"'; ?> class="selec_chk">
|
||||
<label for="qa_email_recv"><span></span>답변받기</label>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
@ -60,14 +63,17 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<label for="qa_hp" class="sound_only">휴대폰</label>
|
||||
<input type="text" name="qa_hp" value="<?php echo get_text($write['qa_hp']); ?>" id="qa_hp" <?php echo $req_hp; ?> class="<?php echo $req_hp.' '; ?>frm_input full_input" size="30" placeholder="휴대폰">
|
||||
<?php if($qaconfig['qa_use_sms']) { ?>
|
||||
<input type="checkbox" name="qa_sms_recv" value="1" <?php if($write['qa_sms_recv']) echo 'checked="checked"'; ?>> 답변등록 SMS알림 수신
|
||||
<div class="chk_op chk_box">
|
||||
<input type="checkbox" name="qa_sms_recv" value="1" id="qa_sms_recv" <?php if($write['qa_sms_recv']) echo 'checked="checked"'; ?> class="selec_chk">
|
||||
<label for="qa_sms_recv"><span></span>답변등록 SMS알림 수신</label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li>
|
||||
<li class="bo_w_tit">
|
||||
<label for="qa_subject" class="sound_only">제목<strong>필수</strong></label>
|
||||
<input type="text" name="qa_subject" value="<?php echo get_text($write['qa_subject']); ?>" id="qa_subject" required class="frm_input required" maxlength="255" placeholder="제목">
|
||||
<input type="text" name="qa_subject" value="<?php echo get_text($write['qa_subject']); ?>" id="qa_subject" required class="frm_input full_input required" maxlength="255" placeholder="제목">
|
||||
</li>
|
||||
|
||||
<li>
|
||||
@ -78,21 +84,23 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
</li>
|
||||
|
||||
<li class="bo_w_flie">
|
||||
<div class="file_wr">
|
||||
<span class="lb_icon"><i class="fa fa-download" aria-hidden="true"></i><span class="sound_only">파일 #1</span></span>
|
||||
<input type="file" name="bf_file[1]" title="파일첨부 1 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" class="frm_file">
|
||||
<?php if($w == 'u' && $write['qa_file1']) { ?>
|
||||
<input type="checkbox" id="bf_file_del1" name="bf_file_del[1]" value="1"> <label for="bf_file_del1"><?php echo $write['qa_source1']; ?> 파일 삭제</label>
|
||||
<?php } ?>
|
||||
<div class="file_wr filebox">
|
||||
<input type="text" class="fileName" readonly="readonly" placeholder="파일을 첨부하세요">
|
||||
<label for="bf_file[1]"><i class="fa fa-download lb_icon" aria-hidden="true"></i><span class="sound_only">파일 #1</span><span class="btn_file">파일첨부</span></label>
|
||||
<input type="file" name="bf_file[1]" id="bf_file[1]" title="파일첨부 1 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" class="frm_file uploadBtn">
|
||||
<?php if($w == 'u' && $write['qa_file1']) { ?>
|
||||
<input type="checkbox" id="bf_file_del1" name="bf_file_del[1]" value="1">
|
||||
<label for="bf_file_del1"><?php echo $write['qa_source1']; ?> 파일 삭제</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="bo_w_flie">
|
||||
<div class="file_wr">
|
||||
<span class="lb_icon"><i class="fa fa-download" aria-hidden="true"></i><span class="sound_only">파일 #2</span></span>
|
||||
<input type="file" name="bf_file[2]" title="파일첨부 2 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" class="frm_file">
|
||||
<br>
|
||||
<div class="file_wr filebox">
|
||||
<input type="text" class="fileName" readonly="readonly" placeholder="파일을 첨부하세요">
|
||||
<label for="bf_file[2]"><i class="fa fa-download lb_icon" aria-hidden="true"></i><span class="sound_only">파일 #2</span><span class="btn_file">파일첨부</span></label>
|
||||
<input type="file" name="bf_file[2]" id="bf_file[2]" title="파일첨부 2 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" class="frm_file uploadBtn">
|
||||
<?php if($w == 'u' && $write['qa_file2']) { ?>
|
||||
<input type="checkbox" id="bf_file_del2" name="bf_file_del[2]" value="1"> <label for="bf_file_del2"><?php echo $write['qa_source2']; ?> 파일 삭제</label>
|
||||
<input type="checkbox" id="bf_file_del2" name="bf_file_del[2]" value="1">
|
||||
<label for="bf_file_del2"><?php echo $write['qa_source2']; ?> 파일 삭제</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
@ -100,9 +108,9 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="btn_top top">
|
||||
<a href="<?php echo $list_href; ?>" class="btn_cancel"><i class="fa fa-list" aria-hidden="true"></i><span class="sound_only">목록</span></a>
|
||||
<button type="submit" value="작성완료" id="btn_submit" accesskey="s" class="btn_submit"><i class="fa fa-pencil" aria-hidden="true"></i> 작성완료</button>
|
||||
<div class="btn_confirm">
|
||||
<a href="<?php echo $list_href; ?>" class="btn_cancel">취소</a>
|
||||
<button type="submit" id="btn_submit" accesskey="s" class="btn_submit">작성완료</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@ -169,6 +177,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
var uploadFile = $('.filebox .uploadBtn');
|
||||
uploadFile.on('change', function(){
|
||||
if(window.FileReader){
|
||||
var filename = $(this)[0].files[0].name;
|
||||
} else {
|
||||
var filename = $(this).val().split('/').pop().split('\\').pop();
|
||||
}
|
||||
$(this).siblings('.fileName').val(filename);
|
||||
});
|
||||
</script>
|
||||
</section>
|
||||
<!-- } 게시물 작성/수정 끝 -->
|
||||
Reference in New Issue
Block a user