|
|
|
12년 전
|
조회 1,016
|
|
|
|
12년 전
|
조회 762
|
|
|
|
12년 전
|
조회 2,156
|
|
|
|
12년 전
|
조회 995
|
|
|
|
12년 전
|
조회 2,041
|
|
|
|
12년 전
|
조회 974
|
|
|
|
12년 전
|
조회 924
|
|
|
|
12년 전
|
조회 749
|
|
|
|
12년 전
|
조회 1,586
|
|
|
|
12년 전
|
조회 771
|
|
|
|
12년 전
|
조회 1,578
|
|
|
|
12년 전
|
조회 983
|
|
|
|
12년 전
|
조회 2,939
|
|
|
|
12년 전
|
조회 1,643
|
|
|
|
12년 전
|
조회 746
|
|
|
|
12년 전
|
조회 1,559
|
|
|
|
12년 전
|
조회 1,786
|
|
|
|
12년 전
|
조회 897
|
|
|
|
12년 전
|
조회 740
|
|
|
|
12년 전
|
조회 2,017
|
댓글 5개
그 함수 첫 부분에다 넣어보세요
if(!g4_is_member){alert('로그인 후 이용하세요'); return false;}
<table border="0" cellpadding="0" cellspacing="0">
<form name='frmsearch1' style='margin:0px;' onsubmit='return search_submit(this);'>
<input type='hidden' name='sfl' value='wr_subject||wr_content'>
<input type='hidden' name='sop' value='and'>
<input type='hidden' name='stx' value=''>
<input type='hidden' name='search_flag' value='상품'>
<tr>
<td><input type=text name=search_str class='index_search' value='<?=stripslashes(get_text($search_str))?>'></td>
<td width="3"></td>
<td><input type=image src='<?=$g4[path]?>/img/btn_search.gif' border=0 align=absmiddle></td>
</tr>
</form>
</table>
<script>
function search_submit(f) {
if (f.search_flag.value == '상품') {
f.action = '<?=$g4[shop_path]?>/search.php';
} else {
f.stx.value = f.search_str.value;
f.action = '<?=$g4[bbs_path]?>/search.php';
}
}
<?
if ($search_flag) {
echo "document.getElementById('search_flag').value = '$search_flag';";
}
?>
</script>
<!-- 검색 끝 -->
어디다 넣는지 ??저 초보입니다
function search_submit(f) { <---이게 함수 입니다 다음 행에 넣으세요