/home/mjc1/public_html/j3demo/skin/event/event01.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
<?php
Global $ev_info$orderkey_array$ev_list$page;
Global 
$configshop$cinfo;

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

if(
$page==''){ $page 1; }
$rowcnt $ev_info['ev_row_cnt'];
$colcnt $ev_info['ev_col_cnt'];
$list prod_event_get($ev_info['idx'], $where2$page$rowcnt*$colcnt""); // 이벤트 상품을 가져온다.
$total_page $list[0]['total_page'];
$list_num $list[0]['list_num'];
$total_count $list[0]['total_count'];

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<!-- 상단 카테고리 내 위치 -->
<style>
.event_header img {max-width:1200px;}
.event_footer img {max-width:1200px;}
</style>
<?php }?>
<div class="class_skin_idx_<?php echo $sk_idx;?>">
        
        <!-- 상단배너영역 시작 { -->
        <div class="mb30 event_header">
<?php 
    
if(file_exists("{$j3_data_path}/ico/ev_hd_image_{$ev_info['idx']}")){ // 상단 이미지 있을경우 뿌려줌
        
echo " <img src='{$j3_data_url}/ico/ev_hd_image_{$ev_info['idx']}' alt='이벤트상단이미지' >";
    }
    if(
$ev_info['ev_hd_content']!=''){ echo $ev_info['ev_hd_content']; } // 상단 내용이 있을경우 뿌려줌
?>
        </div>
        <!-- } 상단배너영역 끝 -->

        <!-- 상품목록 시작 { -->
        <div id="slt_10" class="pt20 gray_line_t">
            <ul class="sct_ul">
<?php
    
for($i=0;$i<count($list);$i++){
        
$info $list[$i];
        if(
$i>&& ($i+1)%$rowcnt==0){ // 마지막 li일경우 우측마진조정하고
            
$add_li_class " mr0";
        } else {
            
$add_li_class " mr20";
        }
        if(
$i>&& $i%$rowcnt==0){ // 새로운 ul 처리
            
echo "</ul>".chr(10)."<ul class=\"sct_ul\">";
        }

        
$info['img_url'] = get_it_thumbnail($info['pcode'],$info['pic1'],$ev_info['ev_width'], $ev_info['ev_height']);
?>
                <li class="sct_li relative float_l mb20 <?php echo $add_li_class;?> gray_line2" style="width:380px;"><!-- (1200px - 20px * 2) / 3 -->
                    <div class="block float_l pr10 sct_img"><a href='<?php echo $info['href'];?>'><img src="<?php echo $info['img_url'] ;?>" alt="상품이미지"></a></div>

    <?php include("./list_ico.inc.php"); // 리스트에서 아이콘 처리 ?>
                    <div class="sct_txt mt10"><a href="<?php echo $info['href'];?>" class="title custom3 txt14 align_j"><?php echo $info['name']?></a></div>
    <?php if($info['remarks']!=''){ ?>
                    <div class="sct_basic mt10"><a href="<?php echo $info['href'];?>" class="gray2 txt13 align_j"><?php echo $info['remarks'];?></a></div>
    <?php ?>
    <?php if($info['norm']!=''){ ?>
                    <div class="sct_basic mt10"><a href="<?php echo $info['href'];?>" class="gray2 txt13 align_j"><?php echo $info['norm'];?></a></div>
    <?php ?>
                    <div class="sct_cost absolute ab_btm10_right10 cost">
                    <?php if($configshop['price_level']<=$cinfo['mb_lv']){ // 가격표시권한이 있을경우만?>
                        <?php if($info['marketprice']>0){?><strike class="gray bold"><?php echo $info['marketprice'];?></strike><?php }?>
                        <em class="cost2 custom2"><?php echo $info['saleprice'];?></em><span class="custom2">원</span></a>
                    <?php } else { echo "&nbsp;"; } ?>
                    </div>
    <?php include("../shop/list_cart.inc.php"); // 리스트에서 장바구니/보관함 담기 모듈 ?>
                </li>
<?php
    
}
?>
<!-- 1줄에3개 끝 -->


            </ul>
        </div>
        <!-- } 상품목록 끝 -->

        <div class='pg_wrap' style='padding-top:0px;'>
            <?php echo get_paging($list_num$page$total_page"?$qstr");?>
        </div>

        <!-- 하단배너영역 시작 { -->
        <div class="mb30 event_footer">
<?php 
    
if(file_exists("{$j3_data_path}/ico/ev_ft_image_{$ev_info['idx']}")){ // 하단 이미지 있을경우 뿌려줌
        
echo " <img src='{$j3_data_url}/ico/ev_ft_image_{$ev_info['idx']}' alt='이벤트하단이미지' >";
    }
    if(
$ev_info['ev_ft_content']!=''){ echo $ev_info['ev_ft_content']; } // 하단 내용이 있을경우 뿌려줌
?>
        </div>
        <!-- } 하단배너영역 끝 -->
</div>