통합검색 결과를 새창에 불러오는법.. 정보
통합검색 결과를 새창에 불러오는법..본문
그누 x초보입니다.
통합검색 결과를 새창에 띄우고 싶은데 아무리 검색해도
모르겠네요 ;ㅂ;
---------------------------------------------------------------------------------------------------------
<?
$g4_path = "./board";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
?>
<HTML>
<HEAD>
$g4_path = "./board";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
?>
<HTML>
<HEAD>
</HEAD>
<BODY leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<p style="text-indent:0px; line-height:0px; margin:0px;">
<BODY leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<p style="text-indent:0px; line-height:0px; margin:0px;">
<!-- 검색어 입력 부분 -->
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);" target="_blank">
<input type="hidden" name="sfl" value="wr_subject" style="margin:0px;">
<input type="hidden" name="sop" value="and">
<INPUT name="stx" maxlength="20" size="16" tabIndex=1 class=search>
<INPUT type=image src="<?=$g4[path]?>/img/btn_search.gif" width="42" height="19" border="0" align="absmiddle">
<input type="hidden" name="sfl" value="wr_subject" style="margin:0px;">
<input type="hidden" name="sop" value="and">
<INPUT name="stx" maxlength="20" size="16" tabIndex=1 class=search>
<INPUT type=image src="<?=$g4[path]?>/img/btn_search.gif" width="42" height="19" border="0" align="absmiddle">
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4[bbs_path]?>/search.php";
f.submit();
}
</script>
<!-- 검색어 입력 끝 부분 -->
</p>
</BODY>
</HTML>
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4[bbs_path]?>/search.php";
f.submit();
}
</script>
<!-- 검색어 입력 끝 부분 -->
</p>
</BODY>
</HTML>
---------------------------------------------------------------------------------------------------------
댓글 전체
대충 해보면.. 검색 버튼에
onclick="javascript:win_pop('');" 넣어주고
하단 스크립트에 이 내용 넣으시고
function win_pop(frm_name) {
url = "<?=$g4[bbs_path]?>/search.php";
win_open(url, "winZip", "left=50,top=50,width=616,height=460,scrollbars=1");
}
그러면 될듯하네요.. 다른형태로 바끄셔도 되고..
onclick="javascript:win_pop('');" 넣어주고
하단 스크립트에 이 내용 넣으시고
function win_pop(frm_name) {
url = "<?=$g4[bbs_path]?>/search.php";
win_open(url, "winZip", "left=50,top=50,width=616,height=460,scrollbars=1");
}
그러면 될듯하네요.. 다른형태로 바끄셔도 되고..
오.. 돼네요 고맙습니다 ^^