/home/mjc1/public_html/j3demo/skinm/orderview/orderview01.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?php
Global $oinfo$ord_cancel_do ,$ord_delete_do$payinfo_hide;

qstr_extract($_SERVER['QUERY_STRING']); // $qstr을 $_GET변수에 넣는다.
extract($_GET); // $_GET를 변수로 풀어준다.
$cate urldecode($cate);

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

if(
$configshop['ord_man_type']>&& $oinfo['ordstate']==&& $oinfo['deposit']==0){
    
$ord_man_yn "Y";
}

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<!-- 상단 카테고리 내 위치 -->
<style>

</style>
<?php }?>

<div class="class_skin_idx_<?php echo $sk_idx;?>">
        <h1 class="p15_0 align_c">주문상세정보</h1>
        <!-- 주문정보확인 -->
        <section class="pb10 p0_10 gray_line_b2">
            <h3 class="screen_out">주문정보</h3>
            <div class="p7_0 p0_10 bold l_height24 gray_line">
                <p>
                    <em class="block float_l width80 gray3 txt13">주문번호</em>
                    <span class="custom1 txt17"><?php echo $oinfo['od_id']?></span>
                </p>
                <p>
                    <em class="block float_l width80 gray3 txt13">주문일자</em>
                    <span class="txt13"><?php echo str_replace("-",".",$oinfo['orddate']);?></span>
<?php if($oinfo['tracking_number']!='' && $oinfo['ordstate']>='2'){?>
                    <input type="button" value="배송조회" class="block float_r width80 height24 white txt13 align_c bold l_height24 none_line bg_custom1 deli_detail_search">
<?php }?>
                </p>
            </div>
            <div class="mt_1 gray_line">
                <table class="width_full bold align_c l_height15">
                    <caption class="screen_out">결제내역</caption>
                    <colgroup>
                        <col class="width_triple"><col class="width_triple"><col class="width_triple">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="p5_0 txt13 gray_line_r bg_gray">
                            상품금액<br>
                            <span class="txt11">(배송비)</span>
                        </th>
                        <th class="p5_0 txt13 gray_line_r bg_gray">
                            할인<br>
                            <span class="txt11">(적립금)</span>
                        </th>
                        <th class="p5_0 txt13 bg_gray">
                            결제할금액<br>
                            <span class="txt11">(입금액)</span>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="p5_0 l_height19 gray_line_r">
                            <em class="custom1 txt17"><?php echo number_format($oinfo['cart_price']);?></em><br>
                            <span class="txt13">(+) <?php echo number_format($oinfo['deli_price']+$oinfo['deli_price2']);?></span>
                        </td>
                        <td class="p5_0 gray_line_r">
                            <em class="custom2 txt17">(-) <?php echo number_format($oinfo['dc_price']);?></em><br>
                            <span class="txt13">(-) <?php echo number_format($oinfo['use_point']);?></span>
                        </td>
                        <td class="p5_0">
                            <em class="red txt17"><?php echo number_format($oinfo['tot_pay_price']);?></em><br>
                            <span class="txt13"><?php echo number_format($oinfo['deposit_price']);?></span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="mt_1 p7_0 p0_10 l_height19 gray_line bg_gray <?php if($payinfo_hide=='Y'){?>none<?php // 배송정보 숨김일때 보여주지 않기?>">
                <p>
                    <em class="block float_l width80 gray3 txt13 bold">결제수단</em>
                    <span class="custom2 txt13 bold"><?php echo $oinfo['pay_type'];?></span>
                </p>
<?php if($oinfo['pay_type']=='무통장'){ ?>
                <p>
                    <em class="block float_l width80 gray3 txt13 bold">입금은행</em>
                    <span class="txt13"><?php echo $oinfo['s_app_info'];?></span>
                </p>
                <p>
                    <em class="block float_l width80 txt13 bold">입금여부</em>
                    <span class="txt13"><?php if($oinfo['deposit']=='0' && $oinfo['deposit_price']=='0'){ echo "<span class='red bold'>미입금</span> (<em class='bold'>".number_format($oinfo['wdeposit_price'])."</em>원 입금해주시기 바랍니다.)"; }
                    else if(
$oinfo['deposit_price']>&& $oinfo['ord_cancel']=='1'){ echo "환불예정"; }
                    else { echo 
"입금완료"; }?>&nbsp;</span>
                </p>
<?php } else if($oinfo['pay_type']=='가상계좌'){ ?>
                <p>
                    <em class="block float_l width80 gray3 txt13 bold">입금은행</em>
                    <span class="txt13"><?php echo $oinfo['s_app_info'];?>&nbsp;</span>
                </p>
                <p>
                    <em class="block float_l width80 red txt13 bold">입금여부</em>
                    <span class="txt13">
                    <?php if($oinfo['deposit']=='0'){ echo "<span class='red bold'>미입금</span> (<em class='bold'>".number_format($oinfo['wdeposit_price'])."</em>원 입금해주시기 바랍니다.)"; } else { echo "입금완료"; }?>&nbsp;
                    </span>
                </p>
    <?php if($oinfo['s_app_info']=='' && $oinfo['ord_cancel']=='0'){?>
                <p>
                    <em class="block float_l width80 gray3 txt13 bold">결제</em>
                    <span class="txt13">
                    <input type="button" value="결제하기" class="width80 height24 white txt13 align_c bold l_height24 none_line bg_custom1 order_pay_class">&nbsp;
                    </span>
                </p>
    <?php }?>
<?php 
} else {?>
    <?php if($oinfo['deposit']=='1'){?>
                <p>
                    <em class="block float_l width80 gray3 txt13 bold">거래번호</em>
                    <span class="txt13"><?php echo $oinfo['s_tno'];?>&nbsp;</span>
                </p>
                <p>
                    <em class="block float_l width80 red txt13 bold">승인번호</em>
                    <span class="txt13"><?php echo $oinfo['s_app_no'];?>&nbsp;</span>
                </p>
                <p>
                    <em class="block float_l width80 red txt13 bold">승인일시</em>
                    <span class="txt13"><?php echo $oinfo['deposit_time'];?>&nbsp;</span>
                </p>
    <?php } else if($oinfo['ord_cancel']=='0') {?>
                <p>
                    <em class="block float_l width80 gray3 txt13 bold">미입금</em>
                    <span class="txt13">
                    <input type="button" value="결제하기" class="width80 height24 white txt13 align_c bold l_height24 none_line bg_custom1 order_pay_class">&nbsp;
                    </span>
                </p>
    <?php }?>
<?php 
}?>
            </div>
        </section>
        <!-- //주문정보확인 -->

        <!-- 상품내역 -->
        <section class="p15_0 p0_10 gray_line_b2 separate_line">
            <h3 class="pb10 txt14 black_line_b">상품내역</h3>
<?php
    $list_array 
$oinfo['row'];
    for(
$i=0;$i<count($list_array);$i++){
        
$info=$list_array[$i];
        if(
$info['pcode']=='1' && strpos("xx".$info['pname'],"방문수령")>0){ $visit_take $info['pname']; }
        if((
$info['pcode']=='1' && $info['pname']=='쇼핑몰배송비') || ($info['pcode']=='1' && $info['pname']=='도서/산간배송비') || ($info['pcode']=='1' && strpos("xx".$info['pname'],"방문수령")>0)){ continue; } // 배송비는 패스

        
$opt_name "";
        
$ii $i+1;
            
$t_qty $info['qty'];
            
$t_price $info['tot_amt'];
            if(
$info['opt_price']>0){ $buho "+"; } else { $buho ""; }
            if(
$info['opt_mode']!=''){
                
$opt_name $info['pname']."({$buho}".number_format($info['opt_price']).")";
                    if(
$ord_man_yn=="Y"){
                    
$opt_name .= "&nbsp;<input type='checkbox' name='opt_ck[]' value='{$info['midx']}§{$info['seq']}§{$info['pcode']}§{$info['qty']}§{$info['pname']}'>";
                }
                
$opt_name .= "<br>";
            }
            while(
$list_array[$ii]['sc_pcode']==$info['sc_pcode'] && $list_array[$ii]['ev_code']==$info['ev_code']){
                
$nextinfo $list_array[$ii];
                
$t_qty += $nextinfo['qty'];
                if(
$nextinfo['opt_price']>0){ $buho "+"; } else { $buho ""; }
                if(
$nextinfo['opt_mode']!=''){
                    
$opt_name .= $nextinfo['pname']."({$buho}".number_format($nextinfo['opt_price']).")";
                    if(
$ord_man_yn=="Y"){
                        
$opt_name .= "&nbsp;<input type='checkbox' name='opt_ck[]' value='{$nextinfo['midx']}§{$nextinfo['seq']}§{$nextinfo['pcode']}§{$nextinfo['qty']}§{$nextinfo['pname']}'>";
                    }
                    
$opt_name .= "<br>";
                }
                
$t_price += $nextinfo['qty']*$nextinfo['opt_price'];
                
$t_point += $nextinfo['qty']*$nextinfo['ct_point'];

                if(
$ii==100){ exit;; }
                
$ii++;
            }
            
$i=$ii-1;

        if(
$deli_price=="무료배송"){ 
            
$p_deli_price $deli_price
        } else {
            if(
$info['ct_deli_type']=='1'){ 
                
$p_deli_price "무료배송";
            } else { 
                
$p_deli_price "금액에따른 차등"
                
$not_free_deli_price += $t_price;
            }
        }
?>
            <!-- 상품1개 -->
            <table class="width_full txt13 align_l gray_line_b">
                <colgroup>
                    <col class="width100"><col>
                </colgroup>
                <tbody>
                <tr>
                    <td class="p7_0 align_c"><img src="<?php echo $thumb_file get_it_thumbnail($info['sc_pcode'],$info['pic1'],80,80);?>" alt="제품이미지"></td>
                    <td class="p7_0 txt15 bold valign_t">
                        <?php echo $info['ct_name'];?>
                        <!--<a class="mt3 block width80 height24 txt13 align_c l_height24 bg_custom1"><span class="white bold">재구매</span></a>-->
                        <br><span class='txt13 normal l_height30'><?php echo $info['norm'];?></span>
                    </td>
                </tr>
                </tbody>

                <tfoot>
                <tr>
                    <td colspan="2" class="p7_0 p0_10 bg_gray">
                        <p class="gray txt13 l_height19"><?php echo $opt_name;?></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="p0_10 txt12 bg_gray"><em class="txt17 bold"><?php echo number_format($t_price);?></em>원 (<em class="txt14 bold"><?php echo number_format($t_qty);?></em>개)</td>
                </tr>
                <tr>
                    <td colspan="2" class="p0_10 txt14 bg_gray l_height32">
                        <?php echo $p_deli_price?>
                        <em class="float_r txt15 bold align_c"><?php echo $oinfo['od_state'];?></em>
                    </td>
                </tr>
<?php if($ord_man_yn=="Y"){ ?>
                <tr>
                        <td class="p0_10 txt14 bg_gray l_height32" colspan="2">
                            <input type='button' value='수량변경' class='padd_5px item_cancel_class'>
                            <div class='screen_out cancel_box'>
                                <form name='change_form'>
                                    <input type='hidden' name='midx[]' value='<?php echo $info['midx'];?>'>
                                    <input type='hidden' name='seq[]' value='<?php echo $info['seq'];?>'>
                                    <input type='hidden' name='pcode[]' value='<?php echo $info['sc_pcode'];?>'>
                                    <input type='hidden' name='omode' value='item_change'>
                                    <span class='item_name'><?php echo $info['pname'];?> <?php if($info['opt_mode']!=''){ echo "/".$info['opt_name']; }?></span><br><br>
                                    <input type='checkbox' name='c_ck' value='1'> 수량변경 : 
                                    <input type='text' name='cancel_qty' size=10 value='<?php echo $info['qty'];?>'>
                                </form>
                            </div>
        <?php if($configshop['ord_man_type']==2){ ?>
                            <input type='button' value='상품삭제' class='mt5 padd_5px item_del_class'>
                            <div class='screen_out del_box'>
                                <form name='delete_form'>
                                    <input type='hidden' name='midx[]' value='<?php echo $info['midx'];?>'>
                                    <input type='hidden' name='seq[]' value='<?php echo $info['seq'];?>'>
                                    <input type='hidden' name='pcode[]' value='<?php echo $info['sc_pcode'];?>'>
                                    <input type='hidden' name='omode' value='item_delete'>
                                    <span class='item_name'><?php echo $info['pname'];?> <?php if($info['opt_mode']!=''){ echo "/".$info['opt_name']; }?></span><br><br>
                                    <input type='checkbox' name='c_ck' value='1'> 상품삭제 확인
                                </form>
                            </div>
        <?php ?>
                        </td>
                    </tr>
<?php ?>
                </tfoot>
            </table>
            <!-- //상품1개 -->
<?php
    
}
?>
        </section>
        <!-- //상품내역 -->
        
        <!-- 배송내역 -->
        <section class="p15_0 p0_10 gray_line_b2 separate_line">
            <h3 class="pb10 txt14 black_line_b">배송내역</h3>
            <dl class="txt14 gray_line_b">
<?php if($visit_take!=""){ // 방문수령시?>
                <dt class="mb5 p7_0 p0_10 bold l_height24 bg_gray">
                    <em class="block float_l width80 gray3 txt13">배송방법</em>
                    <span><?php echo $visit_take;?></span>
                </dt>
<?php }?>
                <dt class="mb5 p7_0 p0_10 bold l_height24 bg_gray">
                    <em class="block float_l width80 gray3 txt13">수령인</em>
                    <span><?php echo $oinfo['consignee_name'];?></span>
                </dt>
                <dd class="mb5 p0_10 gray">(<?php echo $oinfo['consignee_zipcode'];?><?php echo $oinfo['consignee_addr_m'];?> <?php echo $oinfo['consignee_addr_d'];?></dd>
                <dd class="mb5 p0_10"><img src="<?php echo $j3_url;?>/img/mobile/ico_orderview.png"><?php echo $oinfo['consignee_telno'];?></dd>
                <dd class="mb5 p0_10"><img src="<?php echo $j3_url;?>/img/mobile/ico_orderview.png"><?php echo $oinfo['consignee_hpno'];?></dd>
                <dd class="mb5 p0_10"><?php echo $oinfo['transport_msg'];?></dd>
            </dl>
            <div class="mt7 width_full">
<?php if($oinfo['tracking_number']!='' && $oinfo['ordstate']>='2'){?>
                <a class="block height35 txt13 align_c l_height35 bg_custom1 deli_detail_search"><span class="white bold">배송조회</span></a>
<?php  ?>
            </div>
        </section>
        <!-- //배송내역 -->
        <section class="p15_0 p0_10 height35 bg_gray orderview_btn_class">
<?php
    
if($ord_cancel_do){ // orderview.php의 주문취소 조건을 따름
?>
            <input type="submit" value="주문취소" class="float_l mr5 width_triple height37 txt15 l_height35 gray_line4 bg_white pointer order_cancel_class"/>
<?php
    
}
?>
<?php
    
if($ord_delete_do){ // orderview.php의 주문삭제 조건을 따름
?>
            <input type="submit" value="주문삭제" class="float_l mr5 width_triple height37 white txt15 l_height37 none_line bg_custom3 pointer order_delete_class"/>
<?php
    
}
?>
            <input type="submit" value="메인으로" onclick="document.location.href='<?php echo $j3_shop_url;?>/order.php';" class="float_l width_triple height37 white txt15 l_height37 none_line bg_custom1 pointer"/>
            
        </section>
</div>
<script>
    section_obj_left_align(".orderview_btn_class","input");
</script>