에티테마

안녕하세요 문의드립니다

페이지 정보

작성자 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,171건 7 페이지
질문답변 목록
번호 제목 날짜
991
시간 : 03-11
03-11
990
시간 : 03-14
03-14
989
시간 : 02-06
02-06
988
시간 : 03-09
03-09
987
시간 : 05-03
05-03
986
시간 : 03-08
03-08
985
시간 : 05-25
05-25
984
시간 : 06-19
06-19
983
시간 : 03-03
03-03
982
시간 : 02-13
02-13
981
시간 : 03-20
03-20
980
시간 : 06-13
06-13
979
시간 : 02-14
02-14
978
시간 : 04-30
04-30
977
시간 : 03-23
03-23
976
시간 : 04-04
04-04
975
시간 : 01-07
01-07
974
시간 : 04-10
04-10
973
시간 : 05-04
05-04
972
시간 : 03-02
03-02
971
시간 : 02-28
02-28
970
시간 : 06-15
06-15
969
시간 : 02-06
02-06
968
시간 : 05-31
05-31
967
시간 : 05-17
05-17
966
시간 : 02-04
02-04
열람중
시간 : 04-06
04-06
964
시간 : 03-01
03-01
963
시간 : 03-19
03-19
962
시간 : 03-17
03-17
게시물 검색

카테고리

카테고리
질문답변
 메뉴얼