유아원님의 검색엔진 소스 사용법 좀 다르쳐주세요.. 정보
유아원님의 검색엔진 소스 사용법 좀 다르쳐주세요..본문
이 검색엔진을 달고 싶은데..제가 초보라서요..
업로드는 다 시켰고 디자인도 다 만들었습니다..
메인화면에..달려고 하는데..
방법이 나온곳이나...
사용방법 좀 가르쳐주세요....ㅜㅜ
댓글 전체

아래 링크는 최신 버전입니다.
http://sir.co.kr/bbs/tb.php/g4_skin/15563
모르솔라 메인에서 사용되는 검색코드의 일부분 입니다. (http://www.morssola.co.kr/)
아래 sql 구문 중 house, couple, redcast, none, support 부분은 셀렉트박스에서 제외하는 그룹입니다.
====================================
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "죽음이 갈라놓을 때까지, 모르솔라";
include_once("$g4[path]/head.sub.php");
?>
<table bgcolor="#ff3300" width="420" height="75" cellpadding="0" cellspacing="0" border="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="83" height="12"></td>
<td width="288"></td>
<td width="50"></td>
</tr>
<tr>
<td width="83" height="22">
<?
$group_select = "<select style='width:83px; height:19px;' id='gr_id' name='gr_id' class=select><option value=''>통합검색<option value='site'>사이트";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_1 != 'house' and gr_id != 'couple' and gr_id != 'redcast' and gr_id != 'none' and gr_id != 'support' order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
$group_select .= "<option value='$row[gr_id]'>$row[gr_subject]";
$group_select .= "</select>";
echo $group_select;
?></td>
<td width="288" align="center">
<input type="text" name="stx" style="width:275px; height:19px; background:#ffffff;border:1px;" class=scinput tabindex=1></td>
<td width="50">
<input type="image" src="http://www.morssola.co.kr/images/btn_search_r.gif" width="55" height="21" border="0" align="absmiddle" onfocus="this.blur()"></td>
</tr>
</form>
</table>
<script language="JavaScript">
document.onload = document.fsearchbox.stx.focus();
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>
<?
include_once("$g4[path]/tail.sub.php");
?>
http://sir.co.kr/bbs/tb.php/g4_skin/15563
모르솔라 메인에서 사용되는 검색코드의 일부분 입니다. (http://www.morssola.co.kr/)
아래 sql 구문 중 house, couple, redcast, none, support 부분은 셀렉트박스에서 제외하는 그룹입니다.
====================================
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "죽음이 갈라놓을 때까지, 모르솔라";
include_once("$g4[path]/head.sub.php");
?>
<table bgcolor="#ff3300" width="420" height="75" cellpadding="0" cellspacing="0" border="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="83" height="12"></td>
<td width="288"></td>
<td width="50"></td>
</tr>
<tr>
<td width="83" height="22">
<?
$group_select = "<select style='width:83px; height:19px;' id='gr_id' name='gr_id' class=select><option value=''>통합검색<option value='site'>사이트";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_1 != 'house' and gr_id != 'couple' and gr_id != 'redcast' and gr_id != 'none' and gr_id != 'support' order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
$group_select .= "<option value='$row[gr_id]'>$row[gr_subject]";
$group_select .= "</select>";
echo $group_select;
?></td>
<td width="288" align="center">
<input type="text" name="stx" style="width:275px; height:19px; background:#ffffff;border:1px;" class=scinput tabindex=1></td>
<td width="50">
<input type="image" src="http://www.morssola.co.kr/images/btn_search_r.gif" width="55" height="21" border="0" align="absmiddle" onfocus="this.blur()"></td>
</tr>
</form>
</table>
<script language="JavaScript">
document.onload = document.fsearchbox.stx.focus();
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>
<?
include_once("$g4[path]/tail.sub.php");
?>
근데 이 검색엔진은 네이버 api 로 상용으로 사용할 수는 없는거죠?
상용으로 사용할 수 없다는 것의 범위가 무엇인지요?
상용서비스를 하는 페이지에서는 사용할 수 없다는 겁니까?
상용으로 사용할 수 없다는 것의 범위가 무엇인지요?
상용서비스를 하는 페이지에서는 사용할 수 없다는 겁니까?

위 링크는 네이버 오픈 api 항목이 제외 되었습니다.