2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 07-02-02 23:04
[그누소스] 검색창에 통합검색 셀렉트 박스를 넣는 방법
 글쓴이 : Morning (124.♡.110.84)
조회 : 3,987  
   http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=10067 [1385]
http://artpia.net/  처럼 검색창에 통합검색 셀렉트 박스를 넣는 방법.
아래는 아트피아의 7쟁이님의 답변

아래를 적당한 곳에 넣으시오....
---------------------------------------------------------

<table cellpadding="0" cellspacing="0" width="420">
                                        <tr>
                                            <td width="420" height="10"></td>
                                        </tr>
                                        <tr>
                                            <td width="420" height="25">
                                              <table width="395" height="30" cellspacing="0" cellpadding="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="5"></td> 
                                                  <td width="90" align="center" style="padding-top:1px;"> 
                                                    <? 
                                                    $group_select = "<select id='head_gr_id' name='gr_id' class=select> 
                                                    <option value=''>통합검색"; 
                                                    $sql = " select gr_id, gr_subject from $g4[group_table] 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>"; 
                                                    ?> 
                                                    <?=$group_select?> 
                                                  </td> 
                                                  <td width="5"></td> 
                                                  <td width="120" valign="middle" align="right"> 
                                                  <INPUT name=stx class='text_box' itemname="검색어" size=37 minlength="2" maxlength='20'>
                                                  </td> 
                                                  <td width="5"></td> 
                                                  <td width="51" align="right"><input type="image" src="<?=$g4[path]?>/img/2006/index9/search_btn.gif" border="0"></td> 
                                                  <td width="4"></td> 
                                            </tr> 
                                            </form> 
                                            </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>
                                                </form>
주님과 함께 모닝커피를

 
 

Total 167
번호 제   목 글쓴이 날짜 조회
32 [소스문법] 제어 구조의 대체 문법 Morning 02-03 3916
31 [소스문법] elseif Morning 02-03 3706
30 [소스문법] else Morning 02-03 3970
29 [소스문법] if Morning 02-03 3827
28 [소스문법] for (1) Morning 02-03 3723
27 [그누소스] 검색창에 통합검색 셀렉트 박스를 넣는 방법 Morning 02-02 3988
26 [소스문법] 흐르는 글 Morning 01-31 3903
25 [소스문법] 보더를 이용해서 box 만들기 Morning 01-26 4971
24 [소스문법] A라면 A해라 Morning 01-22 3862
23 [소스문법] gd_gallery image resizing Morning 01-20 5181
22 [그누스킨] 다중게시판 Morning 01-18 3264
21 [그누스킨] morning_webzine1 Morning 01-17 3018
20 [그누스킨] morning_webzine2 Morning 01-14 3168
19 [그누스킨] morning_webzine Morning 01-14 3468
18 [소스문법] 여분필드에 기본값 입력하기 (1) Morning 01-14 4235
 1  2  3  4  5  6  7  8  9  10    

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God