전체검색에 대해서...

전체검색에 대해서...

QA

전체검색에 대해서...

본문

메인에 있는 전체검색에서

 

<fieldset id="hd_sch">

            <legend>사이트 내 전체검색</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">검색어<strong class="sound_only"> 필수</strong></label>

            <input type="text" name="stx" id="sch_stx" maxlength="20" class="text" placeholder="예 : 바다좌대, 24시간, 대부도">

            <input type="submit" id="sch_submit" value="검색">

            </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>

 

 

게시판에 있는 검색으로 바꾸고싶은데요...

 

<fieldset id="bo_sch">

    <legend>게시물 검색</legend>

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

    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">

    <input type="hidden" name="sca" value="<?php echo $sca ?>">

    <input type="hidden" name="sop" value="and">

    <label for="sfl" class="sound_only">검색대상</label>

    <select name="sfl" id="sfl">

<option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>

        <option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>

        <option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>

<option value="wr_1,0"<?php echo get_selected($sfl, 'wr_1,0'); ?>>좌대유형</option>

 

        <option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>

        <option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>

        <option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>

        <option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>

    </select>

    <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="20">

    <input type="submit" value="검색" class="btn_submit">

    </form>

</fieldset>

 

이소스를 전체검색에 넣으면 검색이 되지않는데요...

 

전체검색을 특정게시판(aaa)에서 검색한 결과값이 나오게 하고싶은데요....

 

aaa라는 특정게시판에 있는 검색물만 검색이 되게 하려고 하면 어떻게 해야하는지 알려주시면 감사하겠습니다...

 

 

 

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 123,720 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT