/home/mjc1/public_html/j3demo/skinm/item/iform01.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?php
Global $prodinfo$cateinfo$hasWishcnt$is_soldout$opt_array$addopt_array;
Global 
$configshop$cinfo$app_id;

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

$prodinfo['img_url'] = get_it_thumbnail($prodinfo['code'],$prodinfo['pic1'],$configshop['img_max_width'], $configshop['img_max_height']);

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<style>
.sit_view_tab_fix { position:fixed;top:0px;}
#sit_ov_wrap:after {display:block;visibility:hidden;clear:both;content:"";}

.point::before {content:"";display:inline-block;width:18px;height:15px;vertical-align:middle;background:url('<?php echo $cur_img_url;?>/item.png') no-repeat;}
.point { position:absolute; left:0px; margin-top:5px; }
.dotline {height:13px;background:url('<?php echo $cur_img_url;?>/dotline.png') 0 6px no-repeat;}
.more::after {content:"";display:inline-block;width:16px;height:30px;margin-left:5px;vertical-align:middle;background:url('<?php echo $cur_img_url;?>/location.png') 0 -45px no-repeat;}

.wish_ico_off { background:url('<?php echo $cur_img_url;?>/item.png') 0 -88px no-repeat; }
.wish_ico_on { background:url('<?php echo $cur_img_url;?>/item.png') 0 -138px no-repeat; }
</style>
<?php
}
?>

<div class="class_skin_idx_<?php echo $sk_idx;?>">
<!-- 상품이미지 -->
        <section class='item_bx_section'>
            <h2 class="screen_out">상품이미지</h2>
            <ul class='item_bx_slider'>
                <li class='img_li_class'><img src="<?php echo $prodinfo['img_url'];?>" class="box_full item_img_class"></li>
            </ul>
<style>
    .bx-wrapper .bx-pager, .bx-wrapper .bx-controls-auto {bottom:10px !important;}
    .bx-wrapper {margin-bottom:0px !important;}
</style>
<script>
$(function(){
    setTimeout(function(){
        $(".img_li_class").removeClass("screen_out");
        var bxslider<?php echo $sk_idx;?> = $('.item_bx_slider').bxSlider({
            responsive: true,
            adaptiveHeight:true,
            pager: true,
            controls : true,
            auto: true
        });
    },1000);    
});
</script>
        </section>
        <!-- //상품이미지 -->

        <!-- 상품주문 -->
        <section class="pt15 pb15 p0_15 gray_line_b2">
            <h2 class="screen_out">상품정보</h2>
            <div>
                <p class="bold"><?php echo $prodinfo['name']?></p>
                <p class="mt3 gray txt14"><?php echo $prodinfo['remarks']?></p>
                <p class="p7_0 align_r gray_line_b2">
                <?php if($configshop['price_level']<=$cinfo['mb_lv']){  // 가격표시권한이 있을경우만?>
                    <?php if($prodinfo['marketprice']>&& $prodinfo['p_price_tel']!='1'){ // 시중가가 있을경우만 표시?><strike class="mr5 gray2 txt13"><?php echo number_format($prodinfo['marketprice']);?></strike><?php }?>
<?php
    
if($prodinfo['p_price_tel']=='1'){
                                echo 
"<em class='custom2 txt24 bold'>{$prodinfo['price_msg']}</em>";
    } else {
?>
<?php 
if($prodinfo['point']>&& $configshop['po_use']=='1'){ // 포인트가 있을경우만 표시?>
                                <span class="point ml10"><?php echo number_format($prodinfo['point']);?></span>
<?php ?>
                    <em class="custom2 txt24 bold"><?php echo number_format($prodinfo['saleprice']);?></em><span class="custom2 txt13">원</span>
<?php
    
}
?>
                <?php } else { echo "&nbsp;"; }?>
                </p>

                <table class="mt7 width_full txt13 l_height24">
                    <colgroup>
                        <col class="width_30"><col class="width_70">
                    </colgroup>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ배송비</th>
                        <td class="gray2"><?php echo $prodinfo['deli_txt'];?></td>
                    </tr>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ규격/단위</th>
                        <td class="gray2"><?php echo $prodinfo['norm']?> / <?php echo $prodinfo['unit']?></td>
                    </tr>
<?php if($prodinfo['maker_code']>0){?>
                    <tr class='<?php if($app_id=='europe0515'){ echo "none"; } // 유로상사일경우 제조사 숨김?>'>
                        <th class="gray3 bold align_l">ㆍ제조사</th>
                        <td class="gray2"><?php echo $prodinfo['maker_name'];?></td>
                    </tr>
<?php ?>
<?php 
if($prodinfo['p_origin']!=""){?>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ원산지</th>
                        <td class="gray2"><?php echo $prodinfo['p_origin'];?></td>
                    </tr>
<?php ?>
<?php 
if($prodinfo['p_expdate']!=""){?>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ유통기한</th>
                        <td class="gray2"><?php echo $prodinfo['p_expdate'];?></td>
                    </tr>
<?php ?>
<?php 
if($prodinfo['opt_yn']==1){ // 옵션상품일경우 ?>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ상품선택</th>
                        <td>
                                    <select id="opt" title="옵션선택" class="width_full height24 gray3 gray_line">
                                        <option value=''> 선택 </option>
<?php
    $jego_cnt 
0;
    foreach(
$opt_array as $key=>$opt){
        if(
$opt['p_soldout']!='1'){
            if(
$opt['jego']>0){ $jego_cnt += $opt['jego']; }
        }
?>
                                        <option value='<?php echo $opt['code']?>'>
                                            <?php echo $opt['name']." ".$opt['opt_price'];?>
                                            <?php 
                                                
if($opt['jego']<"0" || $opt['p_soldout']==1){
                                                    echo 
"[품절]"
                                                } else {
                                                    if(
$configshop['qty_hidden']!='1'){
                                                        echo 
"[재고:".number_format($opt['jego'])."]"
                                                    }
                                                }
                                            
?>
                                        </option>
<?php
    
}
    if(
$jego_cnt=='0'){ $is_soldout true; }
?>
                                    </select>
                        </td>
                    </tr>
<?php } else { ?>
    <?php if($configshop['qty_hidden']!='1'){?>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ재고</th>
                        <td class="gray2"><?php echo $prodinfo['jego'];?>개</td>
                    </tr>
    <?php }?>
<?php 
?>
<?php
if(count($addopt_array)>0){
?>
                    <tr>
                        <th class="gray3 bold align_l">ㆍ추가구성</th>
                        <td>
                                    <select id="opt_add" title="옵션선택" class="width_full height24 gray3 gray_line">
                                        <option value=''> 선택 </option>
<?php
    
foreach($addopt_array as $key=>$opt){
?>
                                        <option value='<?php echo $opt['code']?>'>
                                            <?php echo $opt['name']." +".$opt['saleprice'];?>
                                            <?php 
                                                
if($opt['jego']<"0" || $opt['p_soldout']==1){
                                                    echo 
"[품절]"
                                                } else {
                                                    if(
$configshop['qty_hidden']!='1'){
                                                        echo 
"[재고:".number_format($opt['jego'])."]"
                                                    }
                                                }
                                            
?>
                                        </option>
<?php
    
}
?>                                        
                                    </select>
                        </td>
                    </tr>
<?php
}
?>
                </table>
<form name='item_cart_form' id='item_cart_form' method='post'> <!-- 옵션 선택 항목이 이곳에 표시됨 -->
    <input type='hidden' name='code' value='<?php echo $prodinfo['code'];?>'>
    <input type='hidden' name='ct_name' value='<?php echo $prodinfo['name'];?>'>
    <input type='hidden' name='ct_price' value='<?php echo $prodinfo['saleprice'];?>'>
    <input type='hidden' name='dmode' value=''>
                    <div class='opt_sel_class mt15'>
                    </div> <!-- .opt_sel_class end-->
</form>
                <!-- 다른데는 공유랑 찜만 놔두고, 장바구니를 하단에 fix 해서 만들던데... -->
                
                <div class="mt_1 p5_0 p0_10 height24 gray2 txt14 bold l_height24 gray_line bg_gray">
                    <ul>
                        <li class="float_l">옵션 총수량 <span class="black all_qty_class">0</span>개</li>
                        <li class="float_r">총금액 <span class="black all_price_class <?php if($configshop['price_level']>$cinfo['mb_lv']){ echo "screen_out"; }?>">0</span>원</li>
                    </ul>
                </div>

                <!--<div id="sit_ov_soldout" class="mt15 red align_c txt14 bold">상품의 재고가 부족하여 구매할 수 없습니다.</div>-->
            </div>

            <div class="block mt15 height35">
<?php if($is_soldout){?>
                <input type="submit" value="품절상품입니다." class="float_l mr5 width_66 white txt15 l_height35 none_line bg_custom3 pointer"/>
<?php } else {?>
                <input type="submit" id="sit_btn_buy" value="바로구매" class="float_l mr5 width_triple white txt15 l_height35 none_line bg_custom1 pointer"/>
                <input type="submit" id="sit_btn_cart" value="장바구니" class="float_l mr5 width_triple white txt15 l_height35 none_line bg_custom3 pointer"/>
<?php }?>
                <a id="sit_btn_wish" title="위시리스트" class="float_l width_triple white txt15 align_c l_height35 none_line pointer <?php if($hasWishcnt>0){?>bg_red<?php } else {?>bg_gray3<?php }?>">찜하기</a>
            </div>
        </section>
        <!-- //상품주문 -->
</div>