에티테마

안녕하세요 문의드립니다

페이지 정보

작성자 no_profile thinkjiae 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 1건 작성일 23-04-06 12:14

본문

테마명 : ety_theme_wide_17

에티테마 와이드 17 사용중입니다.
메인 페이지에 기존 그누보드의 검색기능을 추가 하고 싶은데 어떤 코드를 수정해야할지 여쭤봅니다 ㅜㅜ
  • 트위터로 보내기
  • 페이스북으로 보내기
  • 구글플러스로 보내기

댓글목록

소프트존님의 댓글

소프트존 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

안녕하세요. 외부에 있어서 답변이 늦었습니다.

    <div class="container">
        <div class="row">
            <div class="col-md-12">
                    <div class="hd_sch_wr" style="margin: 0 auto;">
                        <fieldset id="hd_sch" >
                            <legend style="line-height: 0.1;">사이트 내 전체검색</legend>
                            <form name="fsearchbox" method="get" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);">
                            <input type="hidden" name="sfl" value="wr_subject||wr_content">
                            <input type="hidden" name="sop" value="and">
                            <label for="sch_stx" class="sound_only">검색어 필수</label>
                            <input type="text" name="stx" id="sch_stx" maxlength="20" placeholder="검색어를 입력해주세요">
                            <button type="submit" id="sch_submit" value="검색"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
                            </form>
                            <script>
                            function fsearchbox_submit(f)
                            {
                                if (f.stx.value.length < 2) {
                                    alert("검색어는 두글자 이상 입력하십시오.");
                                    f.stx.select();
                                    f.stx.focus();
                                    return false;
                                }

                                // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
                                var cnt = 0;
                                for (var i=0; i<f.stx.value.length; i++) {
                                    if (f.stx.value.charAt(i) == ' ')
                                        cnt++;
                                }

                                if (cnt > 1) {
                                    alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
                                    f.stx.select();
                                    f.stx.focus();
                                    return false;
                                }
                                return true;
                            }
                            </script>
                        </fieldset>
               
                        <?php echo popular('theme/basic'); // 인기검색어, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정  ?>
                    </div>
            </div>
        </div><!-- /row -->
    </div>


위와 같은 코드가 기존에 검색에 사용되던 코드 입니다.
적절히 수정하시거나 원하시는 위치에서 사용해주시면 좋을것 같습니다.
감사합니다.



Total 1,163건 6 페이지
질문답변 목록
번호 제목 날짜
1013
시간 : 06-15
06-15
1012
시간 : 06-15
06-15
1011
시간 : 06-14
06-14
1010
시간 : 06-14
06-14
1009
시간 : 06-13
06-13
1008
시간 : 06-13
06-13
1007
시간 : 06-13
06-13
1006
시간 : 06-11
06-11
1005
시간 : 06-05
06-05
1004
시간 : 06-05
06-05
1003
시간 : 05-31
05-31
1002
시간 : 05-30
05-30
1001
시간 : 05-25
05-25
1000
시간 : 05-25
05-25
999
시간 : 05-25
05-25
998
나중에 지... 댓글+ 10
시간 : 05-24
05-24
997
시간 : 05-22
05-22
996
시간 : 05-18
05-18
995
시간 : 05-17
05-17
994
시간 : 05-17
05-17
993
시간 : 05-12
05-12
992
시간 : 05-12
05-12
991
시간 : 05-10
05-10
990
시간 : 05-09
05-09
989
시간 : 05-07
05-07
988
시간 : 05-04
05-04
987
시간 : 05-04
05-04
986
시간 : 05-04
05-04
985
시간 : 05-03
05-03
984
시간 : 04-30
04-30
게시물 검색

카테고리

카테고리
질문답변
 메뉴얼