/home/mjc1/public_html/j3demo/skinm/ordercomp/ordercomp01.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
<?php
Global $oinfo$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(
$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="pb15 p0_10 gray_line_b2">
            <h3 class="pb10 txt14 black_line_b">제품정보</h3>
            <!-- 상품1개 -->
<?php
    $list_array 
$oinfo['row'];
    for(
$i=0;$i<count($list_array);$i++){
        
$info=$list_array[$i];
        if((
$info['pcode']=='1' && $info['pname']=='쇼핑몰배송비') || ($info['pcode']=='1' && $info['pname']=='도서/산간배송비')){ 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']).")<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']).")<br>";
                }
                
$t_price += $nextinfo['tot_amt'];
                
$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;
            }
        }
        if(
$oinfo['deposit']=='0'){
            
$od_state "미입금";
        } else if(
$oinfo['deposit']=='1'){
            if(
$oinfo['ordstate']=='0'){
                
$od_state "입금완료";
            } else if(
$oinfo['ordstate']=='1'){
                
$od_state "배송준비중";
            } else if(
$oinfo['ordstate']=='2'){
                
$od_state "배송중";
            } else if(
$oinfo['ordstate']=='3'){
                
$od_state "배송완료";
            }
        }
?>
            <!-- 상품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>-->
                    </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 $od_state;?></em>
                    </td>
                </tr>
                </tfoot>
            </table>
            <!-- //상품1개 -->
<?php
    
}
?>


            <table class="width_full txt13 align_l gray_line_b">
                <tfoot>
                <tr>
                    <th class="p0_10 gray3 l_height19">총 상품금액</th>
                    <td class="p0_10 txt15 bold align_r l_height19">
                        <?php echo number_format($oinfo['cart_price']);?><span class="txt12 normal">원</span>
                    </td>
                </tr>
                <tr>
                    <th class="p0_10 gray3 l_height19">배송비</th>
                    <td class="p0_10 txt15 bold align_r l_height19">
                        <span class="txt12 normal">(+)</span> <?php echo number_format($oinfo['deli_price']);?><span class="txt12 normal">원</span>
                    </td>
                </tr>
                <tr>
                    <th class="p0_10 gray3 l_height19">도서/산간 배송비</th>
                    <td class="p0_10 txt15 bold align_r l_height19">
                        <span class="txt12 normal">(+)</span> <?php echo number_format($oinfo['deli_price2']);?><span class="txt12 normal">원</span>
                    </td>
                </tr>
                <tr>
                    <th class="p0_10 gray3 l_height19">총 할인금액</th>
                    <td class="p0_10 txt15 bold align_r l_height19">
                        <span class="txt12 normal">(-)</span> <?php echo number_format($oinfo['dc_price']);?><span class="txt12 normal">원</span>
                    </td>
                </tr>
                <tr>
                    <th class="p0_10 gray3 l_height19">총 사용포인트</th>
                    <td class="p0_10 txt15 bold align_r l_height19">
                        <span class="txt12 normal">(-)</span> <?php echo number_format($oinfo['use_point']);?><span class="txt12 normal">원</span>
                    </td>
                </tr>
                <tr>
                    <th class="pl10 gray3 align_l l_height35 bg_gray">결제금액</th>
                    <td class="pr10 align_r l_height35 bg_gray"><em class="red txt17 bold"><?php echo number_format($oinfo['wdeposit_price']);?></em>원</td>
                </tr>
                </tfoot>
            </table>
            <!-- //상품1개 -->
        </section>
        <!-- //제품정보 -->

        <!-- 결제액 -->
        <section class="gray_line_b2 separate_line">
            <h3 class="p0_10 txt14 l_height35 gray_line_b2">배송/결제정보</h3>
            <table class="m10_0 float_c width_96 txt13">
                <colgroup>
                    <col class="width_30"><col class="width_70">
                </colgroup>
                <tr>
                    <th class="pl10 gray3 align_l">주문번호</th>
                    <td class="p5_0 pr10 custom1 txt17 bold"><?php echo $oinfo['od_id'];?></td>
                </tr>
                <tr>
                    <th rowspan="4" class="pl10 gray3 align_l">배송지정보</th>
                    <td class="pt5 pr10"><?php echo $oinfo['consignee_name'];?></td>
                </tr>
                <tr>
                    <td class="pr10"><?php echo $oinfo['consignee_telno'];?></td>
                </tr>
                <tr>
                    <td class="pr10"><?php echo $oinfo['consignee_hpno'];?></td>
                </tr>
                <tr>
                    <td class="pb5 pr10 align_j">(<?php echo $oinfo['consignee_zipcode'];?><?php echo $oinfo['consignee_addr_m']." ".$oinfo['consignee_addr_d'];?></td>
                </tr>
                <tr>
                    <th class="pl10 gray3 align_l">배송메모</th>
                    <td class="p5_0 pr10"><?php echo $oinfo['transport_msg'];?></td>
                </tr>
                <tr class='<?php if($payinfo_hide=='Y'){?>none<?php // 배송정보 숨김일때 보여주지 않기?>'>
                    <th rowspan="4" class="pl10 gray3 align_l">결제정보</th>
                    <td class="pt5 pr10"><?php echo $oinfo['pay_type'];?></td>
                </tr>
<?php if($oinfo['pay_type']=='무통장'){ ?>
                <tr class='<?php if($payinfo_hide=='Y'){?>none<?php // 배송정보 숨김일때 보여주지 않기?>'>
                    <td class="pr10"><em class="bold"><?php echo $oinfo['s_app_info'];?></em></td>
                </tr>
                <tr class='<?php if($payinfo_hide=='Y'){?>none<?php // 배송정보 숨김일때 보여주지 않기?>'>
                    <td class="pr10">입금자명 : <?php echo $oinfo['income_name'];?></td>
                </tr>
                <tr class='<?php if($payinfo_hide=='Y'){?>none<?php // 배송정보 숨김일때 보여주지 않기?>'>
                    <td class="pr10"><?php if($oinfo['deposit']=='0'){ echo "<span class='red bold'>미입금</span> ( <span class='bold'>".number_format($oinfo['wdeposit_price'])."</span>원 입금해주시기 바랍니다.)"; } else { echo "<span class='blue bold'>입금완료</span>"; }?></td>
                </tr>
<?php } else {?>
    <?php if($oinfo['deposit']=='1'){?>
                <tr>
                    <td class="pb5 pr10"><?php echo $oinfo['s_app_info'];?></td>
                </tr>
                <tr>
                    <td class="pb5 pr10">거래번호 : <?php echo $oinfo['s_tno'];?> / 승인번호 : <?php echo $oinfo['s_app_no'];?></td>
                </tr>
                <tr>
                    <td class="pb5 pr10">승인일시 : <?php echo $oinfo['deposit_time'];?></td>
                </tr>
    <?php } else {?>
                <tr>
                    <td class="pb5 pr10">미입금 <a class='mt5 box80_25 white align_c bold l_height25 bg_custom2 order_pay_class'>결제하기</a></td>
                </tr>
    <?php }?>
<?php 
?>
            </table>
        </section>
        <!-- //결제액 -->

        <section class="p15_0 p0_10 height35 bg_gray">
            <input type="submit" value="구매내역보기" class="float_l mr5 width_49 height37 white txt15 l_height37 none_line bg_custom3 pointer" onclick="location.href='orderview.php?idx=<?php echo $idx;?>'"/>
            <input type="button" value="메인" class="float_l width_49 height37 txt15 l_height35 gray_line4 bg_white pointer" onclick="location.href='<?php echo $j3_shop_url;?>'"/>
        </section>
</div>