<?php
define(
'IN_ECS'
, true);
require
(dirname(
__FILE__
) .
'/includes/init.php'
);
if
(
$id
=
intval
(
$_REQUEST
[
'id'
])) {
$sql_select
=
'SELECT consignee,mobile,tel,tracking_sn,shipping_code,shipping_name FROM '
.
$GLOBALS
[
'ecs'
]->table(
'order_info'
).
" WHERE order_id=$id"
;
$order_info
=
$GLOBALS
[
'db'
]->getRow(
$sql_select
);
$shipping_code
=
array
(
'ems'
=>
'ems'
,
'ems2'
=>
'ems'
,
'sto_express'
=>
'zjs'
,
'sto_nopay'
=>
'zjs'
,
'zto'
=>
'zhongtong'
,
'sto'
=>
'shentong'
,
'yto'
=>
'yuantong'
,
'sf'
=>
'shunfeng'
,
'emssn'
=>
'ems'
,
'sf2'
=>
'shunfeng'
,
'yunda'
=>
'yunda'
,
);
$logistics_code
=
$shipping_code
[
$order_info
[
'shipping_code'
]] ?
$shipping_code
[
$order_info
[
'shipping_code'
]] :
$order_info
[
'shipping_code'
];
$aikuaidi_key
=
'xxx'
; 爱快递申请
$logistics_info
=
file_get_contents
(
$logistics_url
);
echo
<<<EOF
<span>收货人:<strong>{
$order_info
[
'consignee'
]}</strong></span>
<span>联系电话:<strong>{
$order_info
[
'mobile'
]}
<span>配送:<strong>{
$order_info
[
'shipping_name'
]}</strong></span>
<span>运单号:<strong>{
$order_info
[
'tracking_sn'
]}</strong></span><br><br>
EOF;
echo
$logistics_info
;
echo
"<br><br><a href='$logistics_url' target='_self'>点我点我</a>"
;
}