/home/mjc1/public_html/j3demo/shop/mail/order_mail.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
<?php
$cont_st 
'margin:0 auto 20px;width:94%;border:0;border-collapse:collapse';
$caption_st 'padding:0 0 5px;font-weight:bold';
$th_st 'padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa';
$td_st 'padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9';
$ft_a_st 'display:block;padding:30px 0;background:#484848;color:#fff;text-align:center;text-decoration:none';
?>

<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
    <div style="border:1px solid #dedede">
        <h1 style="margin:0 0 20px;padding:30px 30px 20px;background:#f7f7f7;color:#555;font-size:1.4em">
            <?php echo $config['cf_title'];?> - 주문내역 처리 안내
        </h1>

        <?php if (count($oinfo['row'])) { ?>
        <table style="<?php echo $cont_st?>">
        <caption style="<?php echo $caption_st?>">주문상품 확인</caption>
        <colgroup>
            <col>
            <col>
            <col style="width:70px">
        </colgroup>
        <thead>
        <tr>
            <th scope="col" style="<?php echo $th_st?>">품명</th>
            <th scope="col" style="<?php echo $th_st?>">옵션</th>
            <th scope="col" style="<?php echo $th_st?>">상태</th>
        </tr>
        <thead>
        <tbody>
        <?php for ($h=0$h<count($oinfo['row']); $h++) { ?>
        <tr>
            <td style="<?php echo $td_st?>">
                <a href="<?php echo $j3_shop_url?>/item.php?code=<?php echo $oinfo['row'][$h]['code1']; ?>" target="_blank" style="text-decoration:none">
                    <?php echo $oinfo['row'][$h]['ct_name']; ?><?php if($oinfo['row'][$h]['pcode']=='1'){?><?php echo $oinfo['row'][$h]['pname']; ?><?php }?></a>
            </td>
            <td style="<?php echo $td_st?>;text-align:center"><?php if($oinfo['row'][$h]['opt_mode']!=''){?><?php echo $oinfo['row'][$h]['pname']; ?><?php }?></td>
            <td style="<?php echo $td_st?>;text-align:center"><?php echo $oinfo['od_state']; ?></td>
        </tr>
        <?php // end for ?>
        </tbody>
        </table>
        <?php // end if ?>

        <?php if ($oinfo['pay_type']!='무통장') { // 무통장 이외의 경우?>
        <table style="<?php echo $cont_st?>">
        <caption style="<?php echo $caption_st?>"><?php echo $oinfo['pay_type'];?> 결제 확인</caption>
        <colgroup>
            <col style="width:130px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">결제예정금액</th>
            <td style="<?php echo $td_st?>"><?php echo number_format($oinfo['wdeposit_price']); ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">승인일시</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['deposit_time']; ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">승인금액</th>
            <td style="<?php echo $td_st?>"><?php echo number_format($oinfo['deposit_price']); ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">트렌젝션 번호</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['s_tno']; ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">승인번호</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['s_app_no']; ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">결제정보</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['s_app_info']; ?></td>
        </tr>
        </tbody>
        </table>
        <?php ?>

        <?php if ($oinfo['pay_type']=='가상계좌' && $oinfo['s_app_info']!='') { // 가상계좌에 계좌설정한 경우?>

        <table style="<?php echo $cont_st?>">
        <caption style="<?php echo $caption_st?>"><?php echo $oinfo['pay_type'];?> 결제 확인</caption>
        <colgroup>
            <col style="width:130px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">결제예정금액</th>
            <td style="<?php echo $td_st?>"><?php echo number_format($oinfo['wdeposit_price']); ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">입금계좌(가상계좌)</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['s_app_info']; ?></td>
        </tr>
        </tbody>
        </table>
        <?php ?>


        <?php if ($oinfo['pay_type']=='무통장') { ?>
        <table style="<?php echo $cont_st?>">
        <caption style="<?php echo $caption_st?>">무통장 입금 확인 완료</caption>
        <colgroup>
            <col style="width:130px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">결제예정금액</th>
            <td style="<?php echo $td_st?>"><?php echo number_format($oinfo['wdeposit_price']); ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">확인일시</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['deposit_time']; ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">입금액</th>
            <td style="<?php echo $td_st?>"><?php echo number_format($oinfo['deposit_price']); ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">입금자명</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['income_name']; ?></td>
        </tr>
        </tbody>
        </table>
        <?php ?>

        <?php if ($oinfo['ordstate']=='2') { ?>
        <table style="<?php echo $cont_st?>">
        <caption style="<?php echo $caption_st?>">배송 안내</caption>
        <colgroup>
            <col style="width:130px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">배송회사</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['deli_company']; ?> <a href='https://search.naver.com/search.naver?where=nexearch&sm=top_hty&fbm=0&ie=utf8&query=<?php echo $oinfo['deli_company']." ".$oinfo['tracking_number'];?>' target='_blank' onclick="alert('조회버튼을 꼭 눌러주세요.')">[배송조회]</a></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">운송장번호</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['tracking_number']; ?></td>
        </tr>
        <tr>
            <th scope="row" style="<?php echo $th_st?>">배송일시</th>
            <td style="<?php echo $td_st?>"><?php echo $oinfo['deli_time']; ?></td>
        </tr>
        </tbody>
        </table>
        <?php ?>

        <?php if ($oinfo['transport_msg']!='') { ?>
        <p style="margin:0 auto 20px;width:94%">
            <strong>배송메모</strong>
            <?php echo $oinfo['transport_msg']; ?>
        </p>
        <?php ?>

        <a href="<?php echo $j3_shop_url?>" target="_blank" style="<?php echo $ft_a_st?>"><?php echo $config['shop_title'?></a>
    </div>
</div>