/home/mjc1/public_html/j3demo/skinm/menu/menu02.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
$cur_img_url 
$j3_imgm_url."/".$sk['sk_img_path'];

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<style>
.main-sidebar {display:none; position:fixed;top:0;bottom:0;width: 270px;;z-index:30000;left:0;}
.main-sidebar-wrapper {position:relative;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;}
.btn_go {background:url('<?php echo $cur_img_url;?>/ico_go.png') top right no-repeat;}

.all_cate li.cate_first { position:relative; }
.all_cate li.cate_first a {background:#fff; /*background: url("<?php echo $cur_img_url;?>/cate_plus.png") #fff no-repeat 240px 15px;*/}
.all_cate li.cate_first .plus_img { position:absolute; top:15px;  right:10px;   }
.all_cate li.cate_first .plus2_img {position:absolute; top:10px;  right:10px; filter: invert(); }
.all_cate li.cate_first li a {background:#39404a;}
.all_cate li.cate_first .cate2_ul, .all_cate li.cate_first ul.cate_third {display:none;}
.all_cate li.cate_first ul.cate_third a {background: #b8bfc9;}
.all_cate li.cate_first .cate2_ul li { position:relative; }
</style>
<?php
}
    
$cate_array cate_lv0_list_get();
?>
<!--좌측메뉴(보여드릴려고 2차 3차 다 보이게 뒀구요~처음에 메뉴눌렀을땐 1차만 보이고 눌렀을때 2차 -> 3차 보이게 하면 됩니다.)-->
    <div id="main-sidebar" class="main-sidebar class_skin_idx_<?php echo $sk_idx;?>">
        <div id="main-sidebar-wrapper" class="main-sidebar-wrapper bg_gray2">
            <nav>
                <div class="height_full">
                    <h1 class="p7_0 p0_10 height30 bg_custom5">
                        <!-- 로그인 전 -->
<?php if($id_ccode==''){ ?>
                        <a href="<?php echo $j3_shopm_url;?>/login.php" class="block width80 height26 l_height26 align_c circle white_line p0_5"><span class="white txt14 bold">로그인</span></a>
<?php } else {?>
                        <a href="<?php echo $j3_shopp_url;?>/logout.php" class="block width80 height26 l_height26 align_c circle white_line p0_5"><span class="white txt14 bold">로그아웃</span></a><em class="ml10 white txt15 l_height26" style='position: absolute;left: 100px;top: 10px;'><?php echo $id_cname;?><span class="txt12 normal">님</span></em>
<?php ?>
                        <a href="#" class="close-sb absolute ab_top10_right10 box24"><img src="<?php echo $cur_img_url;?>/ico_close.png" alt="" class="box_full"></a>
                    </h1>
                    <!--전체바로가기-->
                    <div id="gnb" class="block over_h">
                        <h2 class="mt15 mb5 pl10 height24 txt14">전체 카테고리</h2>
                        <div class="all_cate">
                            <ul>
                                <!--1차카테고리-->
<?php 
    
for($i=0;$i<count($cate_array);$i++){ 
        
$cate $cate_array[$i];
        
$cate2_array cate_lv1_list_get(substr($cate['code2'],0,3));
?>
                                <li class="cate_first">
                                    <a href='<?php echo "{$j3_shop_url}/list.php?code={$cate['code2']}";?>' class="gray_line_t p10_0 pl10 txt14 bold block">
                                    <?php if(file_exists("{$j3_data_path}/ico/cate_{$cate['code']}")){?><img src="<?php echo "{$j3_data_url}/ico/cate_{$cate['code']}";?>" alt="<?php echo $cate['name'];?>" class="mr5"><?php }?>
                                    <?php echo $cate['name'];?></a>
    <?php
        
if(count($cate2_array)>0){
    
?>
                                    <img src='<?php echo $cur_img_url;?>/cate_plus.png' class='plus_img'>
                                    <ul class='cate2_ul'>
                                        <!--2차카테고리-->
    <?php
            
foreach($cate2_array as $key=>$cate2){
                
$cate3_array cate_lv2_list_get(substr($cate2['code2'],0,6));
    
?>
                                        <li>
                                            <a href="<?php echo "{$j3_shop_url}/list.php?code={$cate2['code2']}";?>" class="block p10_0 pl10 custom_line21 txt14 white"><?php echo $cate2['name'];?></a>
                                            <img src='<?php echo $cur_img_url;?>/cate_plus.png' class='plus2_img'>
        <?php
            
if(count($cate3_array)>0){
        
?>
                                            <ul class="cate_third">
        <?php
                
foreach($cate3_array as $key=>$cate3){
        
?>
                                                <li><a href="<?php echo "{$j3_shop_url}/list.php?code={$cate3['code2']}";?>" class="block p10_0 pl10 custom_line22 txt14 custom4"><?php echo $cate3['name']?></a></li>
        <?php
                
}
        
?>
                                            </ul>
        <?php
            
}
        
?>
                                        </li>
    <?php
            
}
    
?>
                                    </ul>

    <?php
        
}
    
?>
                                </li>
<?php
    
}    
?>
                            </ul>
                        </div>
                    </div>
                    
                    <!--회원바로가기-->
                    <div class="mb10 block over_h">
                        <h2 class="mt15 pl10 height24 txt14">회원 바로가기</h2>
                        <ul class="p0_10">
                            <li class="float_l mr1 mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_join_class">회원가입</a></li>
                            <!--<li class="float_l mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_login_class">로그인</a></li>-->
                            <li class="float_l mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_faq_class">FAQ</a></li>
                            <li class="float_l mr1 mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_11_class">1:1문의</a></li>
                            <li class="float_l mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_cart_class">장바구니</a></li>
                            <li class="float_l mr1 mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_order_class">주문리스트</a></li>
                            <li class="float_l mb1 pl10 width_half height35 l_height35 bg_white"><a class="block mt3 gray3 txt13 bold space_1 btn_go hdgnb_wish_class">위시리스트</a></li>
                        </ul>
                    </div>
                    
                    <!--고객센터-->
                    <footer class="pt10 pb15 width_full align_c bg_custom5">
                        <h2 class="black txt14 l_height14">CS center</h2>
                        <a class="height24 white txt24 bold" href='tel:<?php echo $configshop['telno1'];?>'><?php echo $configshop['telno1'];?></a>
                        <p class="black txt11 l_height16 space_1"><?php echo nl2br($configshop['work_time']);?></p>
                    </footer>
                </div>
            </nav>
        </div>
    </div>
    <!-- //좌측메뉴 -->
<script src="<?php echo $j3_js_url;?>/simple-sidebar/dist/jquery.simpler-sidebar.min.js"></script>
<script>
    $(document).ready(function() {
<?php if(!($sample_idx!='' && $pos=='menu')){?>
        $('#main-sidebar').simplerSidebar({
            opener: '.lnb_open',
            top: 0,                    
            animation: {
                easing: "easeOutQuint"
            },
            sidebar: {
                closingLinks: '.close-sb',
                width:270,
                align:'left'
            }
        });
<?php }?>        
        $("#main-sidebar").show();

        $(".all_cate li.cate_first .plus_img").click(function(){ // 중분류 열고 닫고
            $(this).closest("li").find(".cate2_ul").toggle();
        });

        $(".all_cate li.cate_first .plus2_img").click(function(){ // 하분류 열고 닫고
            $(this).closest("li").find(".cate_third").toggle();
        });
        
    });
</script>