/home/mjc1/public_html/j3demo/shopm/sch_item.inc1.php


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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!-- 상단메뉴고정 -->
    <header class="relative height40 align_c gray_line_b bg_white" style="z-index:999;height:45px;">
        <h1 class="l_height40 txt17">검색</h1>
        <a class="absolute ab_top_left block p5 box30 close_sch_item"><img src="<?php echo $j3_imgm_url;?>/ico_back.png" alt="이전" class="box_full"></a>
    </header>
    <!-- //상단메뉴고정 -->

    <div id="container">
        <div class="relative block m15 height40 custom_line25 bg_white" style="border: 5px solid #444;">
<form name='total_search_form' id='total_search_form' method='get' action='<?php echo "{$j3_shop_url}/search.php";?>' >
            <label class="absolute ab_top_right p3 width40 box32 total_search_btn"><img src="<?php echo $j3_imgm_url;?>/sch_ico.png" alt="검색" class="box_full"></label>
            <input id="sch_str" name='skey' type="text" placeholder="검색어를 입력하세요." class="ml10 width_80 height40 none_line">
</form>
        </div>

        <div class="m15 gray_line">
<style>
.tab_nav .on {color:#fff;font-weight:600;background:#d00846;}
</style>
            <ul class="tab_nav">
                <a rel="tab1" value="1" class="on float_l width_50 height40 l_height40 gray2 txt14 align_c bg_gray">추천검색어</a>
                <a rel="tab2" value="2" class="float_l width_50 height40 l_height40 gray2 txt14 align_c bg_gray">최근검색어</a>
            </ul>
            <div id="item_tab1" class="tab_cont bg_white" style="display:block;">
                <ul>
<?php
    $cnt 
0;
    foreach(
$kword_list as $key=>$val){
        if(
count($kword_list)-1==$cnt){    $glb "  ";    } else { $glb " gray_line_b "; } // 마지막라인엔 줄이 없음
?>
                    <li class="<?php echo $glb;?>"><a href="<?php echo "{$j3_shop_url}/search.php?skey={$val['k_word']}";?>" class="relative block p_0_5 width_90 height40 gray3 l_height40 txt14 bg_white over_h"><?php echo $val['k_word'];?></a></li>
<?php
        $cnt
++;
    }
?>
                </ul>
            </div>
            <div id="item_tab2" class="tab_cont bg_white" style="display:none;">
<?php
    $ss_sk 
$_SESSION['search_keyword'];
    if(
count($ss_sk)>0){
?>
                <ul class='recent_search_class'>
    <?php
        
for($i=count($ss_sk)-1;$i>=count($ss_sk)-6;$i--){
            if(
$ss_sk[$i]==''){ continue; }
    
?>
                    <li class="gray_line_b"><a href="<?php echo "{$j3_shop_url}/search.php?skey={$ss_sk[$i]}";?>" class="relative block p_0_5 width_90 height40 l_height40 txt14 bg_white over_h"><?php echo $ss_sk[$i];?></a></li>
    <?php
        
}
    
?>
                </ul>
<?php
    
} else {
?>
                <!-- 검색내용이 없을 때 -->
                <ul>
                    <li class="s_height250 gray2 align_c l_height250">내용없음</li>
                </ul>
<?php
    
}
?>
            </div>
        </div>