검색스킨을 index.php 또는 head.php 정보
검색스킨을 index.php 또는 head.php본문
위의 검색스킨을 index.php 또는 head.php
부착할려고 합니다!!
인쿨루드 및 개별 독립페이지로 설정해도 스킨은 나오는데
검색이 되지 않네요~~
위 검색스킨 인쿨루드 방법 부탁드려요!!
댓글 전체
head.php에 검색스킬 넣을 자리에 아래 소스를 넣어주면 되거드면 .
<!-- 검색 시작 -->
<table width="430" cellpadding="0" cellspacing="0">
<tr>
<td width="51" height="11"></td>
<td width="347"> </td>
</tr>
<tr>
<td width="51" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
<td>
<table width="375" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="195" height="25" valign="middle"><span id=c2>
<INPUT name=stx id="stx" style="WIDTH: 230px" accesskey=s tabindex=2 onfocus="return s BACKGROUND-REPEAT: no-repeat" maxlength="20">
</span></td>
<td width="8"> </td>
<td width="62"><span id=c3>
<span id=c3><input type=image src=../images/btn_schL.gif tabindex=3 style="width:55px;height:25px" title="검색" onmouseover="this.src='../images/btn_schH.gif'" onmouseout="this.src='../images/btn_schL.gif'" onmousedown="this.src='../images/btn_schA.gif'"></span>
</span></td>
<td width="18"> </td>
</tr>
<tr>
<td height="8" colspan="4"><span id=c3>
</span> </td>
</tr>
</form>
</table></td>
</tr>
</table>
<script language="JavaScript">
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>
<!-- 검색 끝 -->
<!-- 검색 시작 -->
<table width="430" cellpadding="0" cellspacing="0">
<tr>
<td width="51" height="11"></td>
<td width="347"> </td>
</tr>
<tr>
<td width="51" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
<td>
<table width="375" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="195" height="25" valign="middle"><span id=c2>
<INPUT name=stx id="stx" style="WIDTH: 230px" accesskey=s tabindex=2 onfocus="return s BACKGROUND-REPEAT: no-repeat" maxlength="20">
</span></td>
<td width="8"> </td>
<td width="62"><span id=c3>
<span id=c3><input type=image src=../images/btn_schL.gif tabindex=3 style="width:55px;height:25px" title="검색" onmouseover="this.src='../images/btn_schH.gif'" onmouseout="this.src='../images/btn_schL.gif'" onmousedown="this.src='../images/btn_schA.gif'"></span>
</span></td>
<td width="18"> </td>
</tr>
<tr>
<td height="8" colspan="4"><span id=c3>
</span> </td>
</tr>
</form>
</table></td>
</tr>
</table>
<script language="JavaScript">
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>
<!-- 검색 끝 -->
안되는데요!!
Forbidden
You don't have permission to access /search.php on this server.
--------------------------------------------------------------------------------
오류가 떠요!
You don't have permission to access /search.php on this server.
--------------------------------------------------------------------------------
오류가 떠요!