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
|
<?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_cnt_m']; $colcnt = 1; $list = prod_event_get($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;?>"> <!-- 이벤트상단 --> <section class="p10 separate_line"> <h2 class="screen_out">이벤트 상단이미지</h2> <?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='이벤트상단이미지' width=100%;>"; } if($ev_info['ev_hd_content']!=''){ echo $ev_info['ev_hd_content']; } // 상단 내용이 있을경우 뿌려줌 ?> </section> <!-- //이벤트상단 -->
<!-- 이벤트상품 --> <section class="pt10 p0_10"> <h2 class="screen_out">이벤트상품</h2> <!-- 첫줄 --> <!-- ul : 높이값 = (이미지높이 + 하단마진) * 상품갯수 --> <ul class="width_full" style="height:426px;"> <?php for($i=0;$i<count($list);$i++){ $info = $list[$i]; if($i>0 && ($i+1)%$rowcnt==0){ // 마지막 li일경우 우측마진조정하고 $add_li_class = " mr0"; } else { $add_li_class = " mr20"; } if($i>0 && $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_m'], $ev_info['ev_height_m']); ?> <li class="sct_li relative float_l mb10 width_full gray_line" style="height:<?php echo $ev_info['ev_height_m'];?>px;"> <div class="sct_img float_l mr10"><a href="<?php echo $info['href'];?>"><img src="<?php echo $info['img_url'] ;?>" alt="제품이미지" style=""></a></div> <?php include("./list_ico.inc.php"); // 리스트에서 아이콘 처리 ?> <div class="sct_txt p0_5 pt5 txt14 bold"><a href="<?php echo $info['href'];?>"><?php echo $info['name']?></a></div> <?php if($info['remarks']!=''){ ?> <div class="sct_basic p0_5 mt3 gray txt13"><a href="<?php echo $info['href'];?>"><?php echo $info['remarks'];?></a></div> <?php } ?> <?php if($info['norm']!=''){ ?> <div class="sct_basic p0_5 mt3 gray txt13"><a href="<?php echo $info['href'];?>"><?php echo $info['norm'];?></a></div> <?php } ?> <div class="sct_cost absolute ab_bot5_right p0_10"><a href="<?php echo $info['href'];?>"> <?php if($configshop['price_level']<=$cinfo['mb_lv']){ // 가격표시권한이 있을경우만?> <?php if($info['marketprice']>0){?><strike class="mr5 gray2 txt10"><?php echo $info['marketprice'];?></strike><?php }?> <em class="txt16 bold"><?php echo $info['saleprice'];?></em><span class="txt10">원</span> <?php } else { echo " "; } ?> </a></div> <?php include("../shop/list_cart.inc.php"); // 리스트에서 장바구니/보관함 담기 모듈 ?> </li> <?php } ?> </ul>
<div class='pg_wrap' style='padding-top:0px;'> <?php echo get_paging($list_num, $page, $total_page, "?$qstr");?> </div> </section> <!-- //이벤트상품 -->
<!-- 이벤트하단 --> <section class="pb10 p0_10 gray_line_b2"> <h2 class="screen_out">이벤트 하단이미지</h2> <?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='이벤트하단이미지' width=100%>"; } if($ev_info['ev_ft_content']!=''){ echo $ev_info['ev_ft_content']; } // 하단 내용이 있을경우 뿌려줌 ?> </section> <!-- //이벤트하단 --> </div>
|