/home/mjc1/public_html/j3demo/skin/main/maincate01.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
<?php
Global $configshop$cinfo;
$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

if(
$orderkey==''){    $orderkey "d.code2, p_sort, a.code desc"; }

$row_list $sk['sk_line_cnt'];
$limit $sk['sk_max_cnt'];
$box_width $sk['sk_box_width'];
$img_width $sk['sk_img_width'];
$img_height $sk['sk_img_height'];
if (
$page 1) { $page 1; }
$cateinfo cate_info_get($sk['sk_bn_pos']);
$list prod_list_by_cate($cateinfo['lv2_cate_code'],$orderkey,1,$row_list,$limit); // 해당 분류의 상품을 가져온다.

if($skin_css!=''){
    echo 
$skin_css;
} else {
?>
<style>
/*가장 핫한 신상품*/
#main_option_01 span{font-size:14px;font-weight:400;color:#676767;}
#main_option_01 .new_list{display:table;}
#main_option_01 .new_list li{position: relative;float:left;margin-right: 40px;text-align: left;margin-top: 40px;}
#main_option_01 .new_list li:last-child{margin-right:0;}
/*#new_wrap .new_list .sct_img a img{margin-bottom:10px;}*/
#main_option_01 .sct_best_num{position: absolute;left: -5px;top: -5px; width: 45px;height: 47px; background:url('./img/sct_best_num.png')no-repeat;z-index:9999;color:#fff;font-size:18px;text-align:left;padding: 5px 10px;}
#main_option_01 .best_sct_color{color: #616161;}
#main_option_01 .new_list .sct_icon_dotted{border-top: 1px dotted #b9b6b6;height:30px;margin-top: 15px;padding-top: 3px;}
#main_option_01 .sct_icon_dotted .sct_icon{display: inline-block;}
#main_option_01 .sct_more{margin-top: 50px !important;width: 300px;margin: 0 auto;border-radius: 30px;}
#main_option_01 .sct_more a{height:50px;line-height:50px;}
#main_option_01 .sct_img a { display:block;overflow:hidden; }
#main_option_01 .sct_img a img {-webkit-transition: transform 0.3s ease-in-out;-moz-transition: transform 0.3s ease-in-out;-ms-transition: transform 0.3s ease-in-out;-o-transition: transform 0.3s ease-in-out;transition: transform 0.3s ease-in-out;}
#main_option_01 .sct_img a:hover img {-webkit-transform: scale(1.1);-moz-transform: scale(1.1);-ms-transform: scale(1.1);-o-transform: scale(1.1);transform: scale(1.1);}
</style>
<script>
$(function(){
    setTimeout(function(){
        $(".class_skin_idx_<?php echo $sk_idx;?> .bx").bxSlider({
            mode: 'vertical',
            slideWidth: 1200,
            auto : true,
            pager:true,
            controls:false,
            minSlides:2,
            maxSlides:2,
            moveSlides:1
        });
    },500);
});
</script>
<?php }?>
        <!--꽃다발-->
        <section id="main_option_01" class="mt40 mb40 class_skin_idx_<?php echo $sk_idx;?>">
            <div id="wrapper">
                <div class="align_c">
                    <h2 class="txt21 pt10 pb15"><?php if($sk['sk_title']!=''){ echo $sk['sk_title']; }?></h2>
                    <span><?php if($sk['sk_desc']!=''){?><?php echo $sk['sk_desc'];?><?php }?></span>
                    <div class="bx bx_slider_<?php echo $sk_idx;?>">
<?php
    $cnt 
0;
    foreach(
$list as $key=>$info){
        if(
$cnt==0){ // 첫번째일경우 ul을 일단 세팅한다.
            
echo "<ul class=\"new_list\">";
        }
        if(
$cnt>&& $cnt%$row_list==0){ // 새로운 ul 처리
            
echo "</ul>".chr(10)."<ul class=\"new_list\">";
        }

        
$info['img_url'] = get_it_thumbnail($info['code'],$info['pic1'],$img_width$img_height);

?>
                        <li class="sct_li" style="width:<?php echo $box_width;?>px;">
                            <div class="sct_img"><a class="sct_a" href="<?php echo $info['href'];?>"><img src="<?php echo $info['img_url'];?>" alt=""></a></div>
                            <div class="sct_title"><a href="<?php echo $info['href'];?>" class="ellipsis txt14 bold mt10 block"><?php echo $info['name']?></a></div>
                            <div class="sct_txt "><a href="<?php echo $info['href'];?>" class="ellipsis txt13 mt5 block best_sct_color"><?php echo $info['remarks'];?></a></div>
                            <div class="sct_basic "><a href="<?php echo $info['href'];?>" class="ellipsis txt13 mt5 block best_sct_color"><?php echo $info['norm'];?></a></div>
                            <div class="sct_cost mt5">
                            <?php if($configshop['price_level']<=$cinfo['mb_lv']){ // 가격표시권한이 있을경우만?>
                                <a href="<?php echo $info['href'];?>">
                                <?php if($info['marketprice']>0){?><strike class="txt13 best_sct_color"><?php echo $info['marketprice'];?></strike>    <?php }?>                        
                                가격 : <em class="cost2 txt16"><?php echo $info['saleprice'];?></em><span class="txt13 best_sct_color">원</span>
                                </a>
                            <?php } else { echo "&nbsp;"; } ?>
                            </div>
                            <div class="sct_icon_dotted">
<?php include("./list_ico.inc.php"); // 리스트에서 아이콘 처리 ?>
<?php 
include("../shop/list_cart.inc.php"); // 리스트에서 장바구니/보관함 담기 모듈 ?>
                            </div>
                        </li>
<?php
        $cnt
++;
    }
    echo 
"</ul>";
?>
                </div>
                <div class="sct_more"><a href="<?php echo "{$j3_shop_url}/list.php?code={$sk['sk_bn_pos']}";?>"><?php if($sk['sk_title']!=''){ echo $sk['sk_title']; }?> 전체보기 &gt;</a></div>
            </div><!--wrapper-->
        </section>
<script>
$(function(){
    //li_max_height_align(".class_skin_idx_<?php echo $sk_idx;?> .sct_li","");    
});
</script>