/home/mjc1/public_html/j3demo/skinm/list/lhead01.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
<?php
Global $cateinfo$cate_item_search$app_id;

$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

$cate0array cate_lv0_list_get();
$cate1array cate_lv1_list_get($cateinfo['code2_1']);
if(
$cateinfo['lv']>=1){ // 분류가 중분류,소분류일때만 보임
    
$cate2array cate_lv2_list_get($cateinfo['code2_1'].$cateinfo['code2_2']);
}
if(
$cateinfo['lv']=='0'){
    
$cate_list $cate1array;
} else if(
$cateinfo['lv']=='1'){
    
$cate_list $cate2array;
}

if(
$cateinfo['lv']=='0'){
    
$p_catecode "all";
} else if(
$cateinfo['lv']=='1'){
    
$p_catecode substr($cateinfo['code2'],0,3)."000000";
} else {
    
$p_catecode substr($cateinfo['code2'],0,6)."000";
}

if(
$cateinfo['lv']=='3'){
    
$p_catecode "all";
}

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<style>
    .category_section ul li { width:111px; }
</style>
<?php
}
?>
<div class="class_skin_idx_<?php echo $sk_idx;?>">
        <!-- 상품주문 -->
        <section class="block pb10 bg_gray over_h category_section width_full" style='top:0px;'>
            <h2 class="screen_out">분류 카테고리</h2>
            <ul class="p10">
<?php
    
if($app_id=='lulucosmetic'){
?>
                <li class="float_l mr1 mb1 height37 align_c l_height32 bg_white ellipsis" ><a class="block mt3 custom1 txt13 bold space_1" href='<?php echo "{$j3_shop_url}/list.php?code=all";?>'>전체</a></li>
<?php
    
} else {
?>
                <li class="float_l mr1 mb1 height37 align_c l_height32 bg_white ellipsis" ><a class="block mt3 custom1 txt13 bold space_1" href='<?php echo "{$j3_shop_url}/list.php?code={$p_catecode}";?>'>전체</a></li>
<?php
    
}

    if(
$cateinfo['lv']==''){
        
$cateviewarray $cate0array;        
    } else if(
$cateinfo['lv']==0){ // 분류가 중분류일때만 보임
        
$cateviewarray $cate1array;        
    } else if(
$cateinfo['lv']==1){ // 분류가 소분류일때만 보임
        
$cateviewarray $cate2array;        
    }
    if(
$app_id=='lulucosmetic'){
        
$cateviewarray cate_lv2_list_get();
    }
    foreach(
$cateviewarray as $key=>$cate){
?>
                    <li class="float_l mr1 mb1 height37 align_c l_height32 bg_white ellipsis" ><a class="block mt3 gray3 txt13 bold space_1" href='<?php echo "{$j3_shop_url}/list.php?code={$cate['code2']}";?>'><?php echo $cate['name']?></a></li>
<?php
    
}
?>
            </ul>
        </section>
        <!-- //상품주문 -->

        <section class="relative width_full height40 gray_line_t custom_line12">
            <div class="float_l ml10 txt12 l_height40">총 <span class="custom1 bold item_cnt_class">0</span>개</div>
            <div class="align_r">
<?php
    
foreach($orderkey_array as $key=>$val){
?>
                <a class="p0_5 gray txt12 l_height40 space_1 ellipsis" href='<?php echo "{$j3_shop_url}/list.php?{$qstr_order}&orderkey={$key}";?>'><?php echo $val;?></a>
<?php
        
}
?>
            </div>
        </section>
</div>
<script>
$(function() {
    $(".cate_select, .sort_select").mouseenter(function(){
        $(this).children("ul").slideDown();    
    });
    $(".cate_select, .sort_select").mouseleave(function(){
        $(this).children("ul").slideUp();    
    });
});
</script>