그누보드5 게시판 내 필드검색
본문
<!-- 게시판 검색 시작 { -->
<fieldset id="bo_sch" class="well well-sm text-center">
<form name="fsearch" method="get" class="form-inline">
<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">
<select name="sfl" id="sfl" class="input-sm form-control" style="margin:5px 0px;">
<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_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</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>
<option value="wr_2,1"<?php echo get_selected($sfl, 'wr_2,1'); ?>>주소</option>
</select>
<div class="input-group" style="margin:5px 0px;">
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="input-sm form-control required" size="30" maxlength="30" placeholder="검색어를 입력하세요">
<div class="input-group-btn">
<button type="submit" class="btn btn-default btn-sm">검색</button>
</div>
</div>
</form>
</fieldset>
<!-- } 게시판 검색 끝 -->
파일은 skin - board - basic - list.skin.php 이고요.
맨 밑에 wr_2,1 저거는 제가 추가한 부분인데요. 게시판 내에서 검색할때
게시물 안에 wr_2 라는 필드에 있는 내용을 검색되게 하고 싶습니다.
이 방법 저 방법 해봐도 안되네요
저게 생기긴 하는데 검색할 내용 입력하고 검색 누르면
그냥 먹통이네요..
!-->
답변을 작성하시기 전에 로그인 해주세요.