사용자: #30 FAQ 스킨 마크업
This commit is contained in:
@ -264,22 +264,6 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
#ctt_con {padding:10px 0}
|
||||
.ctt_img {text-align:center}
|
||||
|
||||
/* FAQ 관리 */
|
||||
#faq_wrap {margin:10px 0}
|
||||
#faq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
.faq_admin {text-align:right}
|
||||
#faq_wrap ol {margin:0;padding:0;list-style:none}
|
||||
#faq_list {margin:0 0 10px;border:1px solid #ccc}
|
||||
#faq_list li {border-bottom:1px solid #fff;background:#f2f5f9}
|
||||
#faq_list a {display:block;padding:10px;font-weight:bold;text-decoration:none}
|
||||
#faq_list a:focus, #faq_list a:hover {background:#626870;color:#fff}
|
||||
#faq_con {border:1px solid #e9e9e9;border-top:0}
|
||||
#faq_con li {padding:0 0 10px}
|
||||
#faq_con h3 {padding:10px;background:#f2f5f9;border-top:1px solid #e9e9e9}
|
||||
#faq_con #con_inner {padding:10px;line-height:1.8em}
|
||||
.faq_tolist {padding:0 10px;text-align:right}
|
||||
.faq_img {text-align:center}
|
||||
|
||||
/* 자바스크립트 alert 대안 */
|
||||
#validation_check {margin:100px auto;width:500px}
|
||||
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
|
||||
|
||||
@ -17,13 +17,6 @@ if ($himg_src)
|
||||
echo '<div id="faq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
?>
|
||||
|
||||
<form name="faq_search_form" method="get">
|
||||
<input type="hidden" name="fm_id" value="<?php echo $fm_id;?>">
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $stx;?>" required id="stx" class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if( count($faq_master_list) ){
|
||||
?>
|
||||
@ -63,7 +56,7 @@ if( count($faq_master_list) ){
|
||||
<h3><a href="#none" onclick="return faq_open(this);"><?php echo conv_content($v['fa_subject'], 1); ?></a></h3>
|
||||
<div class="con_inner">
|
||||
<?php echo conv_content($v['fa_content'], 1); ?>
|
||||
<button type="button" class="btn_faq_close">닫기</button>
|
||||
<div class="con_closer"><button type="button" class="closer_btn">닫기</button></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
@ -77,10 +70,10 @@ if( count($faq_master_list) ){
|
||||
if($stx){
|
||||
echo '<p>검색된 게시물이 없습니다.</p>';
|
||||
} else {
|
||||
echo '<p>등록된 FAQ가 없습니다.';
|
||||
echo '<div class="empty_list">등록된 FAQ가 없습니다.';
|
||||
if($is_admin)
|
||||
echo '<br><a href="'.G5_ADMIN_URL.'/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
|
||||
echo '</p>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -95,6 +88,17 @@ echo '<div id="faq_thtml">'.stripslashes($fm['fm_tail_html']).'</div>';
|
||||
if ($timg_src)
|
||||
echo '<div id="faq_timg" class="faq_img"><img src="'.$timg_src.'" alt=""></div>';
|
||||
?>
|
||||
|
||||
<fieldset id="faq_sch">
|
||||
<legend>FAQ 검색</legend>
|
||||
|
||||
<form name="faq_search_form" method="get">
|
||||
<input type="hidden" name="fm_id" value="<?php echo $fm_id;?>">
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $stx;?>" required id="stx" class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
<!-- } FAQ 끝 -->
|
||||
|
||||
<?php
|
||||
@ -105,7 +109,7 @@ if ($admin_href)
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
$(".btn_faq_close").on("click", function() {
|
||||
$(".closer_btn").on("click", function() {
|
||||
$(this).closest(".con_inner").slideToggle();
|
||||
});
|
||||
});
|
||||
|
||||
@ -8,3 +8,16 @@
|
||||
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none}
|
||||
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
|
||||
|
||||
#faq_wrap {margin:10px 0 30px}
|
||||
#faq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
.faq_admin {text-align:right}
|
||||
#faq_wrap ol {margin:0;padding:0;list-style:none}
|
||||
#faq_con {border:1px solid #e9e9e9;border-top:0}
|
||||
#faq_con h3 a {display:block;padding:10px;border-top:1px solid #e9e9e9;background:#f2f5f9;text-decoration:none}
|
||||
#faq_con .con_inner {display:none;padding:10px;line-height:1.8em}
|
||||
#faq_con .con_closer {text-align:right}
|
||||
#faq_con .closer_btn {margin:0;padding:0;border:0;background:transparent}
|
||||
.faq_tolist {padding:0 10px;text-align:right}
|
||||
.faq_img {text-align:center}
|
||||
|
||||
#faq_sch {text-align:center}
|
||||
Reference in New Issue
Block a user