특정게시판의 검색창을 메인에 빼고싶습니다.
본문
<fieldset id="bo_sch" style="position:relative; z-index: 9999; ">
<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" style="width:100px;">
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>업체명</option>
<option value="wr_2"<?php echo get_selected($sfl, 'wr_2'); ?>>내용</option>
<option value="wr_subject||wr_2"<?php echo get_selected($sfl, 'wr_subject||wr_2'); ?>>업체명+지</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 style="width:135px;" type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="frm_input required" size="15" maxlength="15" placeholde="우리업체를 입력해보세요." color="#fff;">
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>
답변 2
메인에서의 검색은 search.php 파일과 스킨이 별도로 있습니다.
search 스킨을 적용해야합니다
<form name="fsearch" method="get">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
이 부분을
<form name="fsearch" method="get" action="<php echo G5_BBS_URL;"/board.php>
<input type="hidden" name="bo_table" value="특정게시판의 bo_table">
위처럼 수정해보세요.
!-->!-->