/home/mjc1/public_html/html/millennium/receipt_pop.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
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.sub.php"); ?>
<?
    set_session
("nomem_hash".date("H",time()), $_SERVER['REMOTE_ADDR']);

    
    
//ÁÖ¹®³»¿ë °¡Á®¿À±â
    
$ordNo $_GET['ordNo'];
    
$idx $_GET['idx'];

    
$sql "SELECT * FROM mBoard_order WHERE rOrdNo = '{$ordNo}' AND idx = '{$idx}'";
    
$res mysql_query($sql);
    while(
$info=mysql_fetch_array($res)){
        
$info_arr[] = $info;
    }
?>

<!-- ¸ÞÀΠ³»¿ë ½ÃÀÛ ------------->
<style>
.table01
{font-size:12px;color:#707070; text-decoration:none;line-height:16px;text-align:left; padding:10px;}

.table02
{font-size:12px;color:#707070;text-decoration:none;line-height:16px;padding-left:18px;}

.font
{font-family:'gulim';font-size:9pt;color:#63635c;text-decoration:none;line-height:16px;}

a:link
{color:#663635c;text-decoration:none;}

a:visited
{color:#63635c;text-decoration:none;}

a:hover
{color:#669e02;text-decoration:underline;}

.img
{border:0px;}

.order_table tr {border-bottom:1px solid #eee;}

.print_btn, .print_btn:hover {
    text-align: center;
    display: block;
    margin: 0 auto;
    background: #012D6A;
    width: 120px;
    height: 50px;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    line-height: 49px;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: bold;
    text-decoration: unset;
}
.table_start {margin: 0 auto;}
</style>



<!--¹«ÅëÀå½ÃÀÛ -->
<table class="table_start" width="1200" align="center" border="0" cellspacing="0" cellpadding="0" nowrap>
    <tr>
        <td height="10"></td>
    </tr>
    <tr>
        <td align="center">
            <table border="0" cellpadding="0" cellspacing="0" >

                <tr height="50" style="background-color:#012D6A;">
                    <td style="padding:10px;color:#fff;">
                        <i class="fas fa-receipt" style="font-size:22px;margin-right:4px;"></i><span style="font-size:24px;padding-right:10px; font-weight:bold;">¹«ÅëÀå ÁÖ¹®Á¢¼ö</span><span>°í°´´Ô²²¼­ ÁÖ¹®ÇϽŠ¿ëÁö»óǰ ÁÖ¹®³»¿ªÀÔ´Ï´Ù.</span>
                    </td>
                </tr>
                <!--------- °ËÀº¼± -------->

    <?php foreach($info_arr as $key => $info) { ?>
                 <tr style="border:0;"> 
                    <td>    
                        <table class="order_table" width="1200" border="0" cellspacing="0" cellpadding="0">
                            <tr height="40">
                                <td style="font-size:16px; font-weight:bold;"><i class="fas fa-caret-right"></i>ÁÖ¹®Á¤º¸</td>
                            </tr>
                            <tr bgcolor="#33CCFF" style="border-top:1px solid #eee;"> 
                                <td bgcolor="#dcdcdc">
                                    <table width="1200" border="0" cellspacing="1" cellpadding="0" style="border:1px solid #eee;">
                                        <tr height="25"> 
                                            <td width="105" bgcolor="#f8f8f8" class="table01">ÁÖ¹®¹øÈ£</td>
                                            <td colspan="3" bgcolor="#ffffff" class="table02"><?php echo $info['rOrdNo']; ?></td>
                                        </tr>

                                        <tr height="25"> 
                                            <td width="105" bgcolor="f8f8f8" class="table01">ÁÖ¹®»óǰ</td>
                                            <td colspan="3" bgcolor="#ffffff" class="table02">
                                            <?php
                                             
if ($info['rProdNm']) { echo "<p style='margin:10px 0;'>".$info['rProdNm']."</p>"; }
                                             if (
$info['rProdNm2']) { echo "<p style='margin:10px 0;'>".$info['rProdNm2']."</p>"; }
                                             if (
$info['rProdNm3']) { echo "<p style='margin:10px 0;'>".$info['rProdNm3']."</p>"; }
                                             if (
$info['rProdNm4']) { echo "<p style='margin:10px 0;'>".$info['rProdNm4']."</p>"; }
                                            
?>
                                            </td>
                                        </tr>

                                        <tr height="25"> 
                                            <td width="105" bgcolor="f8f8f8" class="table01">ÁÖ¹®ÀÚ¸í</td>
                                            <td width="150" bgcolor="#ffffff" class="table02"><?php echo $info['OrdNm']; ?></td>
                                            <td width="105" bgcolor="f8f8f8" class="table01">¿¬¶ôó</td>
                                            <td width="150" bgcolor="#ffffff" class="table02"><?php echo $info['OrdPhone']; ?></td>
                                        </tr>

                                        <tr height="25"> 
                                            <td width="105" bgcolor="f8f8f8" class="table01">ÁÖ¼Ò</td>
                                            <td colspan="3" bgcolor="#ffffff" class="table02"><?php echo $info['DlvAddr']; ?></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr height="40">
                                <td style="font-size:16px; font-weight:bold;"><i class="fas fa-caret-right"></i>°áÁ¦Á¤º¸</td>
                            </tr>

                            <tr bgcolor="#33CCFF"> 
                                <td bgcolor="#dcdcdc">
                                    <table width="1200" border="0" cellspacing="1" cellpadding="0" style="border:1px solid #eee;">
                                        <tr height="25"> 
                                            <td width="105" bgcolor="f8f8f8" class="table01">½ÂÀγ¯Â¥</td>
                                            <td width="150" bgcolor="#ffffff" class="table02"><?php echo $info['reg_date']; ?></td>
                                            <td width="105" bgcolor="f8f8f8" class="table01">°áÁ¦±Ý¾×</td>
                                            <td width="150" bgcolor="#ffffff" class="table02" style="font-weight:bold;font-size:1.3em;color:#ff0000;"><?php echo number_format($info['rAmt']);?> ¿ø (Åùèºñ Æ÷ÇÔ)&nbsp;&nbsp;</td>
                                        </tr>

                                        <tr height="25"> 
                                            <td width="105" bgcolor="f8f8f8" class="table01">ÀԱݰèÁ¹øÈ£</td>
                                            <?php
                                                
//ÀºÇà
                                                
$bank $info['bank'];
                                                if(
$bank == "1") { $_bank  =  "¿ì¸®ÀºÇà 1005-280-777337"; }
                                                else if(
$bank == "2"){ $_bank  =  "³óÇù 093-02-307376"; }
                                                else if(
$bank == "3"){ $_bank  =  "½ÅÇÑ 110-530-409508"; }
                                                
                                            
?>
                                            <td colspan="3" bgcolor="#ffffff" class="table02"><?php echo $_bank?></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr height="40">
                                <td style="font-size:16px; font-weight:bold;"><i class="fas fa-caret-right"></i>±¸ÀÔó</td>
                            </tr>

                            <tr bgcolor="#33CCFF"> 
                                <td bgcolor="#dcdcdc">
                                    <table width="1200" border="0" cellspacing="1" cellpadding="0" style="border:1px solid #eee;">
                                        <tr height="25"> 
                                            <td width="60" bgcolor="f8f8f8" class="table01">»óÈ£</td>
                                            <td width="280"  bgcolor="#ffffff" class="table02">¿¥Á¦À̼ÒÇÁÆ®</td>
                                        </tr>

                                        <tr height="25"> 
                                            <td width="50" bgcolor="f8f8f8" class="table01">ÀüÈ­¹øÈ£</td>
                                            <td  bgcolor="#ffffff" class="table02">1566-8680</td>
                                        </tr>
                                        <tr height="25"> 
                                            <td width="50" bgcolor="f8f8f8" class="table01">ȨÆäÀÌÁöÁÖ¼Ò</td>
                                            <td bgcolor="#ffffff" class="table02">http://www.mijinsoft.co.kr</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr height="40">
                                <td style="font-size:16px; font-weight:bold;"><i class="fas fa-caret-right"></i>¹è¼ÛÁ¤º¸</td>
                            </tr>

                            <tr bgcolor="#33CCFF"> 
                                <td bgcolor="#dcdcdc">
                                    <table width="1200" border="0" cellspacing="1" cellpadding="0" style="border:1px solid #eee;">
                                        <tr height="25"> 
                                            <td width="60" bgcolor="f8f8f8" class="table01">¼ÛÀå¹øÈ£</td>
                                            <td width="280"  bgcolor="#ffffff" class="table02">
                                                <?
    
if ($info['InvoiceNum'] <> '') {
?>


<? if ($info['Deliver'] == "¼¼µ¦½º") { ?>

            <a onclick='go_check(<?=$info['InvoiceNum'];?>)' style="cursor:pointer;"><?=$info['InvoiceNum'];?> <FONT COLOR="#FF3333">[¹è¼ÛÁ¶È¸]</FONT>
            <IMG SRC="./img/mypage/click_btn001.gif" WIDTH="27" HEIGHT="13" BORDER="0" valign = "bottom">

<? ?>


<? if ($info['Deliver'] == "CJÅùè") { ?>

            <a onclick='go_check_CJ(<?=$info['InvoiceNum'];?>)' style="cursor:pointer;"><?=$info['InvoiceNum'];?> <FONT COLOR="#FF3333">[¹è¼ÛÁ¶È¸]</FONT>
            <IMG SRC="./img/mypage/click_btn001.gif" WIDTH="27" HEIGHT="13" BORDER="0" valign = "bottom">

<? ?>


<? if ($info['Deliver'] == "ÇÑÁøÅùè") { ?>

            <a onclick='go_check_hanjin(<?=$info['InvoiceNum'];?>)' style="cursor:pointer;"><?=$info['InvoiceNum'];?> <FONT COLOR="#FF3333">[¹è¼ÛÁ¶È¸]</font>
            <img src="./img/mypage/click_btn001.gif" WIDTH="27" HEIGHT="13" BORDER="0" valign = "bottom">

<? ?>
            
            
</a><? ?>
                                            </td>
                                        </tr>

                                        <tr height="25"> 
                                            <td width="50" bgcolor="f8f8f8" class="table01">Åùèȸ»ç</td>
                                            <td  bgcolor="#ffffff" class="table02"><?php echo $info['Deliver']; ?></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr style="border:0;height:40px;"> 
                                <td class="font">°èÁ·Π¼Û±ÝÇϽаæ¿ì È¨ÆäÀÌÁö¿¡¼­ ÀüÀÚ°è»ê¼­¼­ ½Åû ÀÛ¼ºÈÄ ¹ßÇàÀÌ °¡´ÉÇÕ´Ï´Ù.</td>
                            </tr>
                    </table>
                </td>
            </tr>
    <?php ?>

            </table>
            
            <a class="print_btn">ÀμâÇϱâ</a>
            
        </td>
    </tr>
</table>
<!--¹«ÅëÀå ³¡-->

<script>
function go_check(query){ //ÇÑÅØ½º¼ÛÀå¹øÈ£Á¶È¸
    var obj = document.OrderSelect
    window.open('', 'popup','scrollbars=yes, width=900, height=490');
    
    obj.target = "popup";

    location.href = "http://ptop.e-pointerex.co.kr:8080/jsp/tr/detailSheet.jsp?iSheetNo="+query;

    return true;
}

function go_check_CJ(query){ //CJ¼ÛÀå¹øÈ£Á¶È¸
    var obj = document.OrderSelect
    window.open('', 'popup','scrollbars=yes, width=900, height=490');
    
    obj.target = "popup";

    location.href = "http://nexs.cjgls.com/web/tracking_hth_pop.jsp?slipno="+query;

    return true;
}

function go_check_hanjin(query){ //ÇÑÁøÅùè¼ÛÀå¹øÈ£Á¶È¸

    //window.open("http://www.hanjin.co.kr/delivery_html/inquiry/result_waybill.jsp?wbl_num="+query,"","width=1024,height=768,scrollbars=yes");
    window.open("https://www.hanjin.co.kr/kor/CMS/DeliveryMgr/WaybillResult.do?mCode=MN038&wblnum="+query+"&schLang=KR&wblnumText=","","width=1024,height=768,scrollbars=yes");
}
$(function(){
    $(".print_btn").css("cursor","pointer").click(function(){
        window.print();
    });
});
</script>