You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/destination/views/index/new_detail.php

187 lines
10 KiB
PHP

<div class="col-xs-24 content">
<div class="col-xs-24 nopadding">
<div class="bs-example bs-example-tabs" data-example-id="togglable-tabs">
<ul id="myTabs" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true" style="font-size:20px;padding: 6px 12px;">订单信息</a></li>
</ul>
<div id="myTabContent" class="tab-content" style="padding:30px 15px;">
<div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab">
<div class="row orderinfobox" >
<div class="table-responsive">
<table class="table table-striped " align="center" border="1" cellpadding="1" cellspacing="0" >
<tr>
<td class="col-xs-6">订单号:<?php echo $orderinfo->COLI_ID; ?> </td>
<td class="col-xs-6">订单状态:<?php echo biz_orderstatus($orderinfo->COLI_State); ?></td>
<td class="col-xs-6">订单总价:<?php
$order_total_price = 0;
foreach ($product_info as $k => $order) {
?>
<?php empty($order->COLD_TotalPrice) ? '' : $order_total_price+=$order->COLD_TotalPrice; ?> <?php } ?>
$<?php echo $order_total_price; ?></td>
<td class="col-xs-6">订单来源:<?php echo $orderinfo->sourcetype; ?>/<?php echo $orderinfo->o_device; ?></td>
</tr>
<tr>
<td>联系人:<?php echo $orderinfo->GUT_FirstName . ' ' . $orderinfo->GUT_LastName; ?></td>
<td>联系邮箱:<?php echo $orderinfo->GUT_Email; ?></td>
<td>其他邮箱:<?php echo $orderinfo->GUT_Email2; ?></td>
<td>联系电话:<?php echo $orderinfo->GUT_TEL; ?></td>
</tr>
<tr>
<td>性 别:<?php echo $orderinfo->cus_sex; ?>
</td>
<td>客人国籍:
<?php
foreach ($country as $key => $na) {
if ($orderinfo->GUT_NationalityID == $key)
echo $na;
}
?>
</td>
<td>护照号码:<?php echo $orderinfo->GUT_Passport; ?></td>
<td>护照有效期: <?php echo $orderinfo->GUT_PassExpdate < date('Y-m-d', strtotime(1901 - 1 - 1)) ? '待告' : date('Y-m-d', strtotime($orderinfo->GUT_PassExpdate)); ?></td>
</tr>
</table>
</div>
</div>
<div class="col-xs-24 nopadding">
<legend style="border-bottom:none;">
产品信息
</legend>
<div class="table-responsive">
<table class="table table-bordered pt_refresh" >
<tbody>
<tr class="table-title" style="background:#f0f0f0;" >
<th width="120">产品代号</th>
<th width="80">出发日期</th>
<th width="80">行程时间(h)</th>
<th width="80">大人数</th>
<th width="90">小孩人数</th>
<th width="80">婴儿人数</th>
<th width="90">订单报价</th>
<th width="90">导游信息</th>
</tr>
<?php foreach ($product_info as $key => $value) { ?>
<tr >
<td><?php echo $value->PAG_Code; ?></td>
<td><?php echo $value->COLD_StartDate == NULL ? '待告' : date('Y-m-d', strtotime($value->COLD_StartDate)); ?></td>
<td><?php echo $value->PAG_NeedTime == -1 ? '待告' : $value->PAG_NeedTime; ?></td>
<td><?php echo $value->COLD_PersonNum; ?></td>
<td><?php echo $value->COLD_ChildNum; ?></td>
<td><?php echo $value->COLD_BabyNum; ?></td>
<td><?php echo $value->COLD_TotalPrice; ?></td>
<td><a href="javascript:void(0);" onclick="show_guide_modal('<?php echo $value->COLD_SN; ?>');">设置</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<div class="col-xs-24 nopadding">
<legend style="border-bottom:none;">
付款记录
</legend>
<table class="table table-bordered payment-table">
<tbody>
<tr class="table-title" style="background:#f0f0f0;">
<th width="120">支付方式</th>
<th width="80">支付币种</th>
<th width="80">支付金额</th>
<th width="90">支付日期</th>
<th width="100">实收金额(¥)</th>
<th width="90">实收日期</th>
<th width="90">客人名字</th>
<th>客人邮件</th>
<th width="90">收款公司</th>
<th>备注</th>
</tr>
<?php foreach ($payments as $key => $pay) { ?>
<tr >
<td><?php echo $pay->pm_money_type; ?></td>
<td><?php echo $pay->GAI_SQJECurrency; ?></td>
<td><?php echo $pay->GAI_SQJE; ?></td>
<td><?php echo date('Y-m-d', strtotime($pay->GAI_SQDate)); ?></td>
<td><?php echo $pay->GAI_SSJE; ?></td>
<td><?php echo date('Y-m-d', strtotime($pay->GAI_SSDate)); ?></td>
<td><?php echo $pay->GAI_CusName; ?></td>
<td><?php echo $pay->GAI_CusEmail; ?></td>
<td><?php echo 'cht' ?></td>
<td style="max-width: 250px;"><?php echo $pay->GAI_Memo; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="col-xs-24 btn-lg"></div>
<div class="col-xs-24 btn-lg"></div>
</div>
</div>
</div>
</div>
</div>
<!-- 设置导游信息 -->
<div class="modal" id="modal_set_guide" tabindex="-1" role="dialog" aria-labelledby="guideModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="guideModalLabel">导游信息</h4>
</div>
<div class="modal-body" id="modal_set_guide_body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" onclick="submit_guide_modal();">保存并发送通知</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function show_guide_modal(cold_sn) {
$.ajax({
type: "get",
dataType: "json",
url: '<?php echo site_url('ht/detail_modal/'); ?>' + '/' + cold_sn,
success: function(data, textStatus) {
$('#modal_set_guide_body').html(data);
$('#modal_set_guide').modal('show');
},
error: function(msg) {
alert('\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC...');
}
});
}
function submit_guide_modal() {
$('#form_modal_guide').ajaxSubmit({
success: function(data, textStatus) {
alert(data);
},
error: function(msg) {
alert('\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC...');
},
dataType: 'json',
timeout: 30000
});
return false;
}
</script>