/home/mjc1/public_html/j3demo/skin/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
<?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;?>">
<!-- 주문상세내역 시작 { -->
        <div class="pt20">            

            <!-- 주문정보확인 시작 { -->
            <section  class="mt20 width_full top_bold_line gray_line_b2">
                <!-- 배송/결제정보 시작 { -->
                <div class="float_l width800 p20_50">
                    <table class="width_full">
                        <caption class="mb20 txt16 bold align_l">배송/결제정보</caption>
                        <colgroup>
                            <col class="width100"><col class="">
                        </colgroup>
                        <tbody>
                        <tr>
                            <th scope="row" class="p7_0 gray2 v_align_t align_l">주문번호</th>
                            <td class="p7_0 custom1 cost1"><?php echo $oinfo['od_id'];?></td>
                        </tr>
                        <tr>
                            <th scope="row" class="p7_0 gray2 v_align_t align_l">배송지정보</th>
                            <td>
                                <p class="p7_0 gray2"><?php echo $oinfo['consignee_name'];?></p>
                                <p class="p7_0 gray2"><?php echo $oinfo['consignee_telno'];?></p>
                                <p class="p7_0 gray2"><?php echo $oinfo['consignee_hpno'];?></p>
                                <p class="p7_0 gray2">(<?php echo $oinfo['consignee_zipcode'];?><?php echo $oinfo['consignee_addr_m']." ".$oinfo['consignee_addr_d'];?></p>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row" class="p7_0 gray2 l_height25 v_align_t align_l">배송메모</th>
                            <td class="p7_0 gray2 l_height25"><?php echo $oinfo['transport_msg'];?></td>
                        </tr>
                        <tr class='<?php if($payinfo_hide=='Y'){?>none<?php // 배송정보 숨김일때 보여주지 않기?>'>
                            <th scope="row" class="p7_0 gray2 v_align_t align_l">결제정보</th>
                            <td>
                                <p class="p7_0 gray2"><?php echo $oinfo['pay_type'];?></p>
<?php if($oinfo['pay_type']=='무통장'){ ?>
                                <p class="p7_0 gray2 cost1">입금은행 : <?php echo $oinfo['s_app_info'];?></p>
                                <p class="p7_0 gray2">입금자명 : <?php echo $oinfo['income_name'];?></p>
                                <p class="p7_0 gray2"><?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>"; }?></p>
<?php } else {?>
    <?php if($oinfo['deposit']=='1'){?>
                                <p class="p7_0 gray2"><?php echo $oinfo['s_app_info'];?></p>
                                <p class="p7_0 gray2">거래번호 : <?php echo $oinfo['s_tno'];?> / 승인번호 : <?php echo $oinfo['s_app_no'];?></p>
                                <p class="p7_0 gray2">승인일시 : <?php echo $oinfo['deposit_time'];?></p>
    <?php } else {?>
                                <p class="p7_0 gray2">미입금 <a class='mt5 box80_25 white align_c bold l_height25 bg_custom2 order_pay_class'>결제하기</a></p>
    <?php }?>
<?php 
?>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!-- } 배송/결제정보 끝 -->

                <!-- 제품정보 시작 { -->
                <div class="float_l width400 p20_50 gray_l_line2">
                    <table class="width_full">
                        <caption class="mb20 txt16 bold align_l">제품정보</caption>
                        <colgroup>
                            <col class="width100"><col class="">
                        </colgroup>
                        <thead>
<?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']).")<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;
?>
                        <tr>
                            <th scope="row" class="p7_0 gray2 align_l gray_line_b2"><img src="<?php echo $thumb_file get_it_thumbnail($info['sc_pcode'],$info['pic1'],80,80);?>" class="box80" alt=""></th>
                            <td class="pt3 l_height20 v_align_t gray_line_b2">
                                <p class="txt14 bold"><?php echo $info['ct_name'];?></p>
                                <p class="gray1"><?php echo $opt_name;?></p>
                                <p class="gray2">수량 : <?php echo $t_qty;?></p>
                                <p class="mt5 gray2 cost3 pb10"><?php echo number_format($t_price);?>원</p>
                            </td>
                        </tr>
<?php
    
}
?>

                        </thead>

                        <tbody>
                        <tr>
                            <th scope="row" class="pt10 pb3 gray2 normal align_l">총 상품금액</th>
                            <td class="pt10 pb3 gray2 align_r"><span class="gray2 cost3"><?php echo number_format($oinfo['cart_price']);?></span>원</td>
                        </tr>
                        <tr>
                            <th scope="row" class="p3_0 gray2 normal align_l">배송비</th>
                            <td class="p3_0 gray2 align_r">(+) <span class="gray2 cost3"><?php echo number_format($oinfo['deli_price']);?></span>원</td>
                        </tr>
                        <tr>
                            <th scope="row" class="pt3 gray2 normal align_l">총 할인금액</th>
                            <td class="pt3 gray2 align_r">(-) <span class="gray2 cost3"><?php echo number_format($oinfo['dc_price']);?></span>원</td>
                        </tr>
                        <tr>
                            <th scope="row" class="pt3 pb10 gray2 normal align_l">총 사용포인트</th>
                            <td class="pt3 pb10 gray2 align_r">(-) <span class="gray2 cost3"><?php echo number_format($oinfo['use_point']);?></span>원</td>
                        </tr>
                        </tbody>

                        <tfoot>
                        <tr>
                            <th scope="row" class="pt15 align_l gray_line_t">결제금액</th>
                            <td class="pt15 align_r gray_line_t"><span class="cost2"><?php echo number_format($oinfo['wdeposit_price']);?></span>원</td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
                <!-- } 제품정보 끝 -->
            </section>
            <!-- } 주문정보확인 끝 -->

            <!--버튼-->
            <div class="mt50 align_c">
                <input type="submit" onclick="location.href='orderview.php?idx=<?php echo $idx;?>'" class="box170_50 white bold line0 bg_custom2 pointer" value="구매내역보기" />
                <input type="button" onclick="location.href='<?php echo $j3_shop_url;?>'" class="box170_50 custom2 bold align_c bg_white custom_line2 pointer" value="메인" />
            </div>
            <!--//버튼-->

        </div>
        <!-- } 주문상세내역 끝 -->
</div>