헤드부분의 전체검색에서 검색어입력하고 엔터치면 검색결과가 나오는데요, 검색어입력하고 옆에 검색버튼 누르면 아무내용이 안나와요...허휴~ > 그누4 질문답변

그누4 질문답변

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

헤드부분의 전체검색에서 검색어입력하고 엔터치면 검색결과가 나오는데요, 검색어입력하고 옆에 검색버튼 누르면 아무내용이 안나와요...허휴~ 정보

헤드부분의 전체검색에서 검색어입력하고 엔터치면 검색결과가 나오는데요, 검색어입력하고 옆에 검색버튼 누르면 아무내용이 안나와요...허휴~

본문

그림참조하시고. 도와주시면 감사드릴께요...^^
  • 복사

댓글 전체

<td width="31"><a href="http://pcink.co.kr/bbs/search.php"><img src=/image/3_3.gif width="31" height="25" border="0"></a></td>
버튼 부분입니다
요기서  버튼 이미지 앞의 요넘<a href="http://pcink.co.kr/bbs/search.php"> 하고 버튼뒤의 </a>를 지우세요~~~~
에궁......답변 수정 합니다.

위에 지우라는 부분 지우시고

<img src=/image/3_3.gif width="31" height="25" border="0"> 를

<input type="image" src="<?=$g4[path]?>/image/3_3.gif width="31" height="25" border="0"> 로 바꾸세요
^^;
지워도 안되는데요...
소스를 올려볼까요?

--소스--

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>

<!-- 상단 배경 시작 -->
<table cellpadding="0" cellspacing="0" width="992">
    <tr>
        <td width="992" colspan="4" height="48"><img src=/image/1_1.gif width="1004" height="41" border="0" usemap="#ImageMap1"><map name="ImageMap1">
            <area shape="rect" coords="11, 14, 151, 38" href="http://pcink.co.kr">
            <area shape="rect" coords="154, 15, 322, 39" href="http://www.pcink.co.kr/bbs/board.php?bo_table=myinfo">
            <area shape="rect" coords="866, 22, 907, 39" href="http://pcink.co.kr">
            <area shape="rect" coords="915, 22, 954, 40" href="http://www.pcink.co.kr/bbs/board.php?bo_table=admin_page">
            <area shape="rect" coords="961, 21, 990, 39" href="http://www.pcink.co.kr/bbs/board.php?bo_table=map">
            </map></td>
    </tr>
    <tr>
        <td width="992" colspan="4"><img src=/image/2_1.gif width="1004" height="32" border="0" usemap="#ImageMap2"><map name="ImageMap2">
            <area shape="rect" coords="516, 8, 571, 27" href="http://www.pcink.co.kr/bbs/board.php?bo_table=mok">
            <area shape="rect" coords="580, 8, 613, 27" href="http://www.pcink.co.kr/bbs/board.php?bo_table=toner">
            <area shape="rect" coords="623, 8, 651, 27" href="http://www.pcink.co.kr/bbs/board.php?bo_table=ink">
            <area shape="rect" coords="662, 9, 716, 27" href="http://www.pcink.co.kr/bbs/board.php?bo_table=moohan">
            <area shape="rect" coords="727, 7, 756, 28" href="http://www.pcink.co.kr/bbs/board.php?bo_table=ip">
            <area shape="rect" coords="766, 9, 796, 27" href="http://www.pcink.co.kr/bbs/board.php?bo_table=chul">
            <area shape="rect" coords="806, 9, 863, 26" href="http://www.pcink.co.kr/bbs/board.php?bo_table=help">
            <area shape="rect" coords="872, 9, 903, 28" href="http://www.pcink.co.kr/bbs/board.php?bo_table=moon">
            <area shape="rect" coords="914, 9, 992, 28" href="http://www.pcink.co.kr/bbs/board.php?bo_table=jamoon">
            <area shape="rect" coords="15, 4, 335, 31" href="http://www.pcink.co.kr/bbs/board.php?bo_table=toner17500">
            </map></td>
    </tr>
    <tr>
        <td width="579"><img src=/image/3_1.gif width="579" height="25" border="0"></td>
        <td width="301" background="/image/3_2.gif">
<!-- ★★검색창 스크립트 2-1 ★★ 시작 -->
  <table width="100%"  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 valign=middle width=174></td><td><INPUT name="stx" maxlengt="20" style="BORDER : 0px solid; width: 125px; HEIGHT: 16px; maxlength=20"></td>
          <!--  <td width="48"><input type="image" src="<?=$g4[path]?>/img/search_button.gif" width="48" height="25" border="0"> </td> -->
            </tr>
        </form>
        </table> 
<!-- ★★ 검색창 스크립트 2-1 끝 ★★ -->
</td>
        <td width="31"><a href="http://pcink.co.kr/bbs/search.php"><img src=/image/3_3.gif width="31" height="25" border="0"></a></td>
        <td width="81"><img src=/image/3_4.gif width="93" height="25" border="0"></td>
    </tr>
  </table>
 
 
 
           

</td>
    </tr>
</table>


<!-- 상단 배경 끝 -->



<!-- </td> -->
   




<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>
<!-- 검색 끝 -->

<div style='height:18px;'></div>

<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
    vertical-align:top;
    float:left;
}
#middiv #mleft  { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>

<table width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
    <td width=5></td>
    <!-- 왼쪽 메뉴 -->
    <td width=220 valign=top>
        <?=outlogin("basic"); // 외부 로그인 ?>

        <div style='height:10px;'></div>

        <?=poll("basic"); // 설문조사 ?>

        <div style='height:10px;'></div>

        <?=visit("basic"); // 방문자수 ?>

        <div style='height:10px;'></div>

        <?=connect(); // 현재 접속자수 ?>
    </td>
    <!-- 중간 -->
    <td width=683 valign=top>
수정전의 소스에서 엔터를 눌렀을때의 주소창과 이미지를 클릭했을때의 주소창을 비교해 보시면 도움이 됩니다.

수정 전이라도 엔터키를 누르면  검색어를 가지고 검색버튼 아래에 있는 action을 통해 해당 검색어로 검색을 하지만

우측 이미지를 누르면 입력한 검색어와는 무관하게 bbs/search.php로 이동 하라는 내용이어서 결과가 안나옵니다....ㅎㅎㅎ
© SIRSOFT
현재 페이지 제일 처음으로