@ -18,7 +18,7 @@ class IPayLinks_model extends CI_Model {
$fieldsql = $orderinfo == false ? '' : " ,* ";
//先查商务订单B,APP订单A、再查传统订单T
if ($ordertype == 'B' || $ordertype == 'A') {
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode, COLI_Department,COLI_PayManner,COLI_State $fieldsql from BIZ_ConfirmLineInfo
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode, COLI_Department,COLI_PayManner,COLI_State $fieldsql from BIZ_ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_ID =?";
$query = $this->HT->query($sql, array($COLI_ID));
@ -26,7 +26,7 @@ class IPayLinks_model extends CI_Model {
}
//后查传统订单的原因是因为传统订单的订单号去掉外联名字首字母后可能会和商务订单的重合。
if (empty($result) && ($ordertype == 'T')) {
$sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode,COLI_State $fieldsql from ConfirmLineInfo
$sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode,COLI_State $fieldsql from ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_ID like '%$COLI_ID'";
$query = $this->HT->query($sql);
@ -36,7 +36,7 @@ class IPayLinks_model extends CI_Model {
$sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode $fieldsql from ConfirmLineInfo
$sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode $fieldsql from ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_AddCode =? ";
$query = $this->HT->query($sql, array($COLI_ID));
@ -44,7 +44,7 @@ class IPayLinks_model extends CI_Model {
}
if (empty($result) && ($ordertype == 'M')) {
$sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode $fieldsql from ConfirmLineInfo cli
$sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode $fieldsql from ConfirmLineInfo cli
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where
EXISTS (
@ -60,7 +60,7 @@ class IPayLinks_model extends CI_Model {
//订单号查询不到尝试使用团号查询
if (empty($result) && $ordertype == 'B') {
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode,COLI_Department,COLI_State $fieldsql from BIZ_ConfirmLineInfo
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode,COLI_Department,COLI_State $fieldsql from BIZ_ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_GroupCode like '%-$COLI_ID%'";
$query = $this->HT->query($sql);
@ -174,7 +174,7 @@ class IPayLinks_model extends CI_Model {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns=http://www.w3.org/1999/xhtml><head><metahttp-equiv=Content-Typecontent="text/html; charset=utf-8"><title>Your Submission Was Successful! - China Highlights</title><styletype=text/css>*{margin:0;font-family:Verdana,Arial,Helvetica,sans-serif;}body{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;color:#545454;right:auto;}img,ul,ulli{padding:0;margin:0;border:0;}#warp{border-top:8pxsolid#a31022!important;}#logo{border:none!important}#logo,#surveyContent{width:210mm;margin:5pxauto;padding:5px;}h1{margin:15px010px0;font-size:24px;border-bottom:1pxsolid#d9d9d9;color:#545454;}h2{margin:15px010px0;font-size:20px;color:#545454;}.tableSurveytabletd{padding:5px;}.tableSurveytabletdstrong{margin-top:8px;}.tableSurvey1{border:1pxsolid#e1e1e1;}.tableSurvey1th{border:1pxsolid#fff;height:30px;padding-right:10px;text-align:right;background:#f1f1f1;}.tableSurvey1td{border:1pxsolid#f9f9f9;padding:5px;text-align:center;width:80px;}.tableSurvey2{border:1pxsolid#e1e1e1;}.tableSurvey2th{border:1pxsolid#fff;padding:5px10px;text-align:right;background:#f1f1f1;font-weight:normal;}.tableSurvey2td{border:1pxsolid#f9f9f9;padding:5px;text-align:center;width:80px;}.blue{color:#0070C0}.text-bold{font-weight:bold;}.text-right{text-align:right;}.title-bold{font-weight:bold;background-color:#ddd;padding:3px0;}</style></head><body><divid=warp><divid=surveyContent><?php$c_gross=str_replace("-","",$total_amount);?><p>Dear <?phpecho$payer?>,</p><br><p>China Highlights has refunded to your account today - <?phpecho$c_gross?><?phpecho$currency?>. The transaction to appear on your account may take up to 2-weeks.</p><br><p>Please find below details of your refund transaction:</p><br><pclass=title-bold>Transaction details</p><p><?phpecho$payment_date?></p><p>Payment status: <?phpecho$payment_status?></p><br><pclass=title-bold>Payment details</p><p>Gross amount</p><pclass=text-right><?phpecho$total_amount?><?phpecho$currency?></p><br><pclass=title-bold>Invoice ID</p><p><?phpecho$invoice?></p><br><pclass=title-bold>Contact information</p><p><?phpecho$payer?></p><p><?phpecho$payer_email?></p><br><br><prestyle="font-family: Verdana, Arial, Helvetica, sans-serif;font-size:13px;">