에티테마

faq 문제입니다

페이지 정보

작성자 no_profile 톨릭 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 1건 작성일 21-02-16 16:38

본문

faq 관리자들어가서 글남기면 위아래로만 나오고 가운데에는 데이터가 안들어갑니다 테마 스킨 잘입혔는데 왜 그럴까요???







소스는

<?php

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가


// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('<link rel="stylesheet" href="'.$faq_skin_url.'/style.css">', 0);


// if ($admin_href)

//    echo '<div class="faq_admin"><a href="'.$admin_href.'" class="btn_admin btn">FAQ 수정</a></div>';


?>

<div class="position-relative overflow-hidden p-md-5 text-center bg-gray2 bg-sub-1 ety-mt-main margin-bottom-50">

  <div class="col-md-5 p-lg-5 mx-auto my-5">

  <h1 class="display-4 font-weight-normal">FAQ</h1>

  <p class="lead font-weight-normal ko1">

    백그라운드 이미지를 변경해서 사용해주세요.

  </p>

  </div>

  <div class="product-device shadow-sm d-none d-md-block"></div>

  <div class="product-device product-device-2 shadow-sm d-none d-md-block"></div>

</div>



<!-- FAQ 시작 { -->

<div class="container ety-mt margin-bottom-50">

<?php

if ($himg_src)

    echo '<div id="faq_himg" class="faq_img"><img src="'.$himg_src.'" alt=""></div>';


// 상단 HTML

echo '<div id="faq_hhtml">'.conv_content($fm['fm_head_html'], 1).'</div>';

?>


<fieldset id="faq_sch">

    <form name="faq_search_form" method="get">

    <span class="sch_tit">FAQ 검색</span>

    <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="faq-input" maxlength="15">

    <button type="submit" value="검색" class="btn_submit"><i class="fa fa-search" aria-hidden="true"></i> 검색</button>

    </form>

</fieldset>



<?php

if( count($faq_master_list) ){

?>

<nav id="bo_cate">

    <h2>자주하시는질문 분류</h2>

    <ul id="bo_cate_ul">

        <?php

        foreach( $faq_master_list as $v ){

            $category_msg = '';

            $category_option = '';

            if($v['fm_id'] == $fm_id){ // 현재 선택된 카테고리라면

                $category_option = ' id="bo_cate_on"';

                $category_msg = '<span class="sound_only">열린 분류 </span>';

            }

        ?>

        <li><a href="<?php echo $category_href;?>?fm_id=<?php echo $v['fm_id'];?>" <?php echo $category_option;?> ><?php echo $category_msg.$v['fm_subject'];?></a></li>

        <?php

        }

        ?>

    </ul>

</nav>

<?php } ?>


<div id="faq_wrap" class="faq_<?php echo $fm_id; ?>">

    <?php // FAQ 내용

    if( count($faq_list) ){

    ?>

    <section id="faq_con">

        <h2><?php echo $g5['title']; ?> 목록</h2>

        <ol>

            <?php

            foreach($faq_list as $key=>$v){

                if(empty($v))

                    continue;

            ?>

            <li>

                <h3><span class="tit_bg">Q</span><a href="#none" onclick="return faq_open(this);"><?php echo conv_content($v['fa_subject'], 1); ?></a></h3>

                <div class="con_inner">

                    <span class="tit_bg">A</span>

                    <?php echo conv_content($v['fa_content'], 1); ?>

                    <div class="con_closer"><button type="button" class="closer_btn btn_b03">닫기</button></div>

                </div>

            </li>

            <?php

            }

            ?>

        </ol>

    </section>

    <?php


    } else {

        if($stx){

            echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';

        } else {

            echo '<div class="empty_list">등록된 FAQ가 없습니다.';

            if($is_admin)

                echo '<br><a href="'.G5_ADMIN_URL.'/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';

            echo '</div>';

        }

    }

    ?>

</div>


<?php echo get_paging($page_rows, $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr.'&amp;page='); ?>


<?php

// 하단 HTML

echo '<div id="faq_thtml">'.conv_content($fm['fm_tail_html'], 1).'</div>';


if ($timg_src)

    echo '<div id="faq_timg" class="faq_img"><img src="'.$timg_src.'" alt=""></div>';

?>


</div><!-- /container -->

<!-- } FAQ 끝 -->




<?php

if ($admin_href)

    echo '<div class="faq_admin"><a href="'.$admin_href.'" class="btn_admin btn">FAQ 수정</a></div>';

?>


<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>

<script>

$(function() {

    $(".closer_btn").on("click", function() {

        $(this).closest(".con_inner").slideToggle();

    });

});


function faq_open(el)

{

    var $con = $(el).closest("li").find(".con_inner");


    if($con.is(":visible")) {

        $con.slideUp();


    } else {

        $("#faq_con .con_inner:visible").css("display", "none");


        $con.slideDown(

            function() {

                // 이미지 리사이즈

                $con.viewimageresize2();

            }

        );

    }


    return false;

}

</script>



  • 트위터로 보내기
  • 페이스북으로 보내기
  • 구글플러스로 보내기

댓글목록

Total 1,163건 7 페이지
질문답변 목록
번호 제목 날짜
983
시간 : 04-16
04-16
982
시간 : 04-14
04-14
981
시간 : 04-14
04-14
980
시간 : 04-14
04-14
979
시간 : 04-10
04-10
978
안녕하세요 댓글+ 1
시간 : 04-10
04-10
977
시간 : 04-08
04-08
976
시간 : 04-07
04-07
975
시간 : 04-06
04-06
974
시간 : 04-06
04-06
973
시간 : 04-04
04-04
972
시간 : 04-03
04-03
971
시간 : 04-03
04-03
970
시간 : 03-30
03-30
969
시간 : 03-29
03-29
968
시간 : 03-26
03-26
967
시간 : 03-23
03-23
966
시간 : 03-20
03-20
965
시간 : 03-20
03-20
964
시간 : 03-20
03-20
963
시간 : 03-19
03-19
962
시간 : 03-19
03-19
961
시간 : 03-18
03-18
960
시간 : 03-17
03-17
959
시간 : 03-17
03-17
958
시간 : 03-17
03-17
957
시간 : 03-16
03-16
956
시간 : 03-16
03-16
955
시간 : 03-15
03-15
954
시간 : 03-14
03-14
게시물 검색

카테고리

카테고리
질문답변
 메뉴얼