게시판 검색창을..

어느 한 A라는 게시판이 있으면 그 게시판 검색창을 따로 빼서 하나의 페이지에 넣고 사용할 수있는 방법이 없을까요?
그러니까 다시 말씀드리면
제가 A게시판에 여러가지 여분필드를 이용해서 입력창을 만들고
게시판페이지내의 검색창에도 여분필드를 검색할 수있게 해놓았거든요..
그런데 이 검색창만 따로 일반 php파일에 넣어서 검색할수 있게 만들고 싶어서요.
부탁드립니다!
|

댓글 1개

<form name="fsearch" method="get" action="javascript:fsearch_submit(document.fsearch);">
<input type="hidden" name="bo_table" value="검색할 게시판">
<input type="hidden" name="sca" value="<?=$sca?>">
<select name="sfl">
<option value="wr_subject">제목</option>
<option value="wr_content">내용</option>
<option value="wr_subject||wr_content">제목+내용</option>
<option value="mb_id,1">회원아이디</option>
<option value="mb_id,0">회원아이디(코)</option>
<option value="wr_name,1">글쓴이</option>
<option value="wr_name,0">글쓴이(코)</option>
</select>
<input name="stx" class="stx" maxlength="15" itemname="검색어" required value='<?=stripslashes($stx)?>'>
<input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" border='0' align="absmiddle">
<input type="radio" name="sop" value="and">and
<input type="radio" name="sop" value="or">or
</form>

<script type="text/javascript">
function fsearch_submit(f)
{
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';

if ('<?=$sop?>' == 'and')
document.fsearch.sop[0].checked = true;

if ('<?=$sop?>' == 'or')
document.fsearch.sop[1].checked = true;
} else {
document.fsearch.sop[0].checked = true;
}

f.action = "/bbs/board.php";
f.submit();
}
</script>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,453
14년 전 조회 1,622
14년 전 조회 1,519
14년 전 조회 1,547
14년 전 조회 1,614
14년 전 조회 1,540
14년 전 조회 1,530
14년 전 조회 1,562
14년 전 조회 1,824
14년 전 조회 1,574
14년 전 조회 1,596
14년 전 조회 1,523
14년 전 조회 2,002
14년 전 조회 1,552
14년 전 조회 1,455
14년 전 조회 1,652
14년 전 조회 1,519
14년 전 조회 1,521
14년 전 조회 1,719
14년 전 조회 1,554