/home/mjc1/public_html/j3demo/skin/search/hsearch01.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
Global $qstr_cate$search_range_hide;
$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<!-- 상단 카테고리 내 위치 -->
<style>
#sct_location {display:block;height:32px;z-index:9999;}
#sct_location > a:first-child {line-height:30px;}
#sct_location > a {float:left;height:30px;line-height:30px;}
#sct_location > span {float:left;width:8px;height:16px;margin:7px 16px 0;}

.cate_select {position:relative;float:left;width:198px;height:30px;}
.icon_inequal {display:block;float:right;width:16px;height:16px;text-indent:-9999px;background:url('<?php echo $cur_img_url;?>/location.png') -4px -50px no-repeat;overflow:hidden;zoom:1}
.icon_down {position:absolute;top:50%;right:15px;display:block;width:16px;height:10px;margin-top:-5px;overflow:hidden;zoom:1;vertical-align:top;background:url('<?php echo $cur_img_url;?>/location.png') 0 -94px no-repeat;}
.cate_select .select {display:block;padding-right:30px;text-indent:15px;height:30px;line-height:28px;background:#fff;border:1px solid #ccc;overflow:hidden;}
.cate_select .depth {display:none;position:absolute;top:30px;left:0;width:198px;background-color:#fff;border:1px solid #ccc;border-top:0 none;}
.cate_select .depth > li a {display:block;text-indent:15px;width:100%;height:29px;line-height:29px;border-bottom:1px solid #ccc;overflow:hidden;}
.cate_select .depth > li a:hover {background:#fafafa;}

#sct_search {position:absolute;right:0px;top:0px;}
#sct_search input[type=text] {padding-left:7px;width:188px;height:30px;border:1px solid #ccc;}
#sct_search input[type=image] {display:block;float:right;padding:4px 5px;text-indent:-9999px;border:1px solid #ccc;border-left:0px none;overflow:hidden;zoom:1;}/
</style>
<?php }?>
<div class="class_skin_idx_<?php echo $sk_idx;?>">
        <div id="sct_location" class="mt20 mb40">
            <a href="<?php echo $j3_shop_url;?>">홈</a>
            <span class="icon_inequal"> > </span>
            <div class="cate_select">
                <a class="select">상품검색결과</a>
            </div>
            
        </div><!-- #sct_location -->

        <h2 class="relative mb30 txt32 l_height30 align_c bold">상품검색결과</h2>

<form name='search_form' id='search_form' method='get' action="?" onsubmit='return false;'>
        <!-- 검색영역 시작 { -->
        <div class="mb30">
            <div class="p10_20 custom11 txt15 custom_line11 bg_custom1"><span class="white bold">"<?php echo $skey;?>"</span>에 대한 검색결과 <span class="white bold item_cnt_class">0</span>건입니다.</div>
            <div class="txt14 l_height40 gray_l_line gray_r_line">
                <h4 class="screen_out">검색옵션</h4>
            <?php if($search_range_hide != "Y"){ // 검색범위 히든인 경우 숨기기 유럽상사등?>
                <div class="gray_line_b2">
                    <dl >
                        <dt class="float_l pl40 width140 bold l_height40">검색범위</dt>
                        <dd>
                            <input type="checkbox" id="item_name" class="mr5 v_align_m" name='sf_name' value='1' <?php if($sf_name=='1'){echo "checked"; }?>><label for="item_name" class="mr25 v_align_m pointer">상품명</label>
                            <input type="checkbox" id="item_comm" class="mr5 v_align_m" name='sf_it_explain' value='1' <?php if($sf_it_explain=='1'){echo "checked"; }?>><label for="item_comm" class="mr25 v_align_m pointer" name='sf_name'>상품설명</label>
                            <input type="checkbox" id="item_code" class="mr5 v_align_m" name='sf_code1' value='1' <?php if($sf_code1=='1'){echo "checked"; }?>><label for="item_code" class="mr25 v_align_m pointer">상품코드</label>
                            <input type="checkbox" id="item_remarks" class="mr5 v_align_m" name='sf_remarks' value='1' <?php if($sf_remarks=='1'){echo "checked"; }?>><label for="item_remarks" class="mr25 v_align_m pointer">비고</label>
                            <input type="checkbox" id="item_norm" class="mr5 v_align_m" name='sf_norm' value='1' <?php if($sf_norm=='1'){echo "checked"; }?>><label for="item_norm" class="mr25 v_align_m pointer">규격</label>
                        </dd>
                    </dl>
                </div>
            <?php }?>
                <div class="gray_line_b2">
                    <dl>
                        <dt class="float_l pl40 width140 bold l_height40">상품가격</dt>
                        <dd><input type="text" class="box100_25 gray_line" name='sprice' value='<?php echo $sprice;?>'> ~ <input type="text" class="box100_25 gray_line" name='eprice' value='<?php echo $eprice;?>'> 원 까지</dd>
                    </dl>
                
                </div>
                <div class="gray_line_b2">
                    <dl>
                        <dt class="float_l pl40 width140 bold l_height40">검색어</dt>
                        <dd><input type="text" name='skey' class="mr5 box230_25 gray_line" placeholder="검색어를 입력하세요." value='<?php echo $skey;?>'><input type="button" value="검색" class="box100_25 white bold line0 bg_custom1 pointer search_btn"></dd>
                    </dl>
                </div>
                <div class="p10_40 gray_line_b bg_gray">
                    <p class="l_height25">※ 검색범위를 선택하지 않거나, 상품가격을 입력하지 않으면 <span class="bold">전체</span>에서 검색합니다.</p>
                    <p class="l_height25">※ 검색어는 최대 30글자까지, <span class="bold">여러개의 검색어를 공백으로 구분</span>하여 입력 할 수 있습니다.</p>
                </div>
            </div>
        </div>
        <!-- } 검색영역 끝 -->

        <!-- 상품정렬상단 시작 { -->
        <div class="relative block width_wide height30 mb10" style="z-index:15;">
            <div class="sort_select absolute ab_top_right width200 height30" style="z-index:9999;">
                <a class="block pr30 indent15 l_height28 gray_line"><?php if($orderkey_array[$orderkey]==''){ echo "--출력방법--"; } else { echo $orderkey_array[$orderkey]; } ?><span class="icon_down"></span></a>
                <ul class="absolute ab_top30_left bg_white gray_line line_t0" style="display:none;">
                    <li><a class="block indent15 width198 height30 l_height28 gray_line_b" href='<?php echo "{$j3_shop_url}/search.php?{$qstr_order}&orderkey=";?>'>--출력방법--</a></li>
<?php
    
foreach($orderkey_array as $key=>$val){
?>
                    <li><a class="block indent15 width198 height30 l_height28 gray_line_b" href='<?php echo "{$j3_shop_url}/search.php?{$qstr_order}&orderkey={$key}";?>'><?php echo $val;?></a></li>
<?php
    
}
?>
                </ul>
                <input type='hidden' name='orderkey' value='<?php echo $orderkey;?>'>
            </div>
<script>
$(function() {
    $(".cate_select, .sort_select").mouseenter(function(){
        $(this).children("ul").slideDown();    
    });
    $(".cate_select, .sort_select").mouseleave(function(){
        $(this).children("ul").slideUp();    
    });
});
</script>
        </div>
        <!-- } 상품정렬상단 끝 -->

        <!-- 카테고리 시작 { -->
<style>
a.dot::before {content:"";display:inline-block;width:4px;height:30px;margin-right:7px;vertical-align:middle;background:url('<?php echo $j3_url;?>/img/lhead01/location.png') 0 -129px no-repeat;}
</style>
        <div class="mb20 gray_line">
            <div class="pver15 phor30 gray_line6 cate_sel_class">
<?php if($cate_code==''){?>
                <ul>
                    <li class="box200_30"><a class="dot p0_20 l_height30" >전체<span class="ml5 bold">(<span class='item_cnt_class'>0</span>)</span></a></li>
                </ul>
<?php } else {?>
                <a href='<?php echo "{$j3_shop_url}/search.php?{$qstr_cate}";?>'><=전체 카테고리로 돌아가기</a> &nbsp <span class='ml5 bold'>검색카테고리 : <span class='inner_cate_class'><?php echo $c_array[0]['cate_name'];?></span></span>
<?php }?>
            </div>
        </div>
        <!-- } 카테고리 끝 -->
</form>
</div>
<!-- //상단 카테고리 내 위치 -->