list.skin.php에 있는 검색기능을 수정하고 싶은데요.
본문
<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"<?php echo get_selected($sfl, 'wr_subject', true); ?>>소재지</option>
<option value="wr_1"<?php echo get_selected($sfl, 'wr_1'); ?>>건평</option>
<option value="wr_2"<?php echo get_selected($sfl, 'wr_2'); ?>>대지</option>
<option value="wr_3"<?php echo get_selected($sfl, 'wr_3'); ?>>층/총</option>
<option value="wr_4"<?php echo get_selected($sfl, 'wr_4'); ?>>분양가</option>
<option value="wr_5"<?php echo get_selected($sfl, 'wr_5'); ?>>융자금</option>
<option value="wr_6"<?php echo get_selected($sfl, 'wr_6'); ?>>특징</option>
<option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>담당자</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>
융자금이나 분양가, 건평, 대지는
~를 넣어서 10만원부터 20만원 이런식으로 검색되게 하고 싶은데 어떻게 해야될까요?
도움부탁드립니다.
!-->
답변 1
common.lib.php 파일에 검색구분을 얻어오는 function 인 get_sql_search 이 있습니다.
해당 부분을 수정해주세요. 건평.대지 일때 (wr_1,wr_2) 일때 처리를 추가처리 해주시면 됩니다.
답변을 작성하시기 전에 로그인 해주세요.