|
|
|
@ -41,6 +41,7 @@
|
|
|
|
|
return date;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
.export_form_area{display: inline-block;padding: 6px;border: 1px solid #ccc;background-color: #ccc;position: absolute;top: 0;left: 17%;}
|
|
|
|
@ -123,8 +124,8 @@
|
|
|
|
|
<li class="col-sm-4"><strong>客人邮箱</strong></li>
|
|
|
|
|
<li class="col-sm-4 "><strong>交易号</strong></li>
|
|
|
|
|
<li class="col-sm-3 "><strong>收款(北京)时间</strong></li>
|
|
|
|
|
<li class="col-sm-3 "><strong>通知时间</strong></li>
|
|
|
|
|
<li class="col-sm-2 "><strong>通知状态</strong></li>
|
|
|
|
|
<li class="col-sm-2 "><strong>通知时间</strong></li>
|
|
|
|
|
<li class="col-sm-3 "><strong>通知状态</strong></li>
|
|
|
|
|
</a>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php
|
|
|
|
@ -142,13 +143,16 @@
|
|
|
|
|
<li class="col-sm-4 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;"><?php echo $item->pn_txn_id; ?></li>
|
|
|
|
|
|
|
|
|
|
<li class="col-sm-3 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;"><?php echo date('Y-m-d H:i:s', strtotime($item->pn_payment_date) + 3600 * 8); ?></li>
|
|
|
|
|
<li class="col-sm-3 nopadding-L" ><?php echo $item->pn_datetime; ?></li>
|
|
|
|
|
<li class="col-sm-2" >
|
|
|
|
|
<li class="col-sm-2 nopadding-L" ><?php echo $item->pn_datetime; ?></li>
|
|
|
|
|
<li class="col-sm-3" >
|
|
|
|
|
<?php
|
|
|
|
|
$show_send = '';
|
|
|
|
|
$class_css = '';
|
|
|
|
|
$show_record = '查看录入状态';
|
|
|
|
|
if ($item->pn_send == 'send') {
|
|
|
|
|
$show_send = $item->pn_send;
|
|
|
|
|
} elseif ($item->pn_send == 'closeRecord') {
|
|
|
|
|
$show_send = $show_record = '已忽略';
|
|
|
|
|
} else if ($item->pn_payment_status == 'Completed') {
|
|
|
|
|
$class_css = 'btn-danger';
|
|
|
|
|
$show_send = $item->pn_send;
|
|
|
|
@ -157,6 +161,12 @@
|
|
|
|
|
$show_send = $item->pn_payment_status;
|
|
|
|
|
}
|
|
|
|
|
?><a href="javascript:void(0);" onclick="show_order_modal('<?php echo $item->pn_txn_id; ?>', '')" class="btn btn-sm <?php echo $class_css; ?>"><?php echo $show_send; ?></a>
|
|
|
|
|
<br>
|
|
|
|
|
<a href="javascript:void(0);" class="text_padding text-primary" style="padding: 10px;"
|
|
|
|
|
onclick="show_gai_modal('<?php echo $item->pn_txn_id; ?>','<?php echo $item->pn_sn; ?>')"
|
|
|
|
|
>
|
|
|
|
|
<?php echo $show_record; ?>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
@ -186,6 +196,27 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 收款记录详情 -->
|
|
|
|
|
<div class="modal" id="modal_set_gai" tabindex="-1" role="dialog" aria-labelledby="gaiModalLabel">
|
|
|
|
|
<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">×</span></button>
|
|
|
|
|
<h4 class="modal-title" id="gaiModalLabel">收款记录修正操作</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body" id="modal_set_gai_body">
|
|
|
|
|
...
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer" style="color: #333;font-weight: 700;">
|
|
|
|
|
<button type="button" class="btn btn-warning pull-left" onclick="close_gai()" >忽略此条收款</button>
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|
|
|
|
<button type="button" class="btn btn-warning" onclick="submit_gai_modal()">保存</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
function show_order_modal(pn_txn_id, pn_invoice) {
|
|
|
|
@ -234,6 +265,52 @@
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function show_gai_modal(pn_txn_id, pn_id, new_order) {
|
|
|
|
|
$('#modal_set_gai').modal('show');
|
|
|
|
|
var url = '/webht.php/apps/paypal/index/gai_modal/' + pn_txn_id + '/' + pn_id;
|
|
|
|
|
if (new_order) url += '/' + new_order;
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "get",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: url,
|
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
|
$('#modal_set_gai_body').html(data);
|
|
|
|
|
$('#modal_set_gai').modal('show');
|
|
|
|
|
},
|
|
|
|
|
error: function(msg) {
|
|
|
|
|
alert('\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYOYO...');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function close_gai() {
|
|
|
|
|
var pn_txn_id = $('#pn_txn_id').val();
|
|
|
|
|
if (confirm('是否忽略此记录: ' + pn_txn_id)) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "get",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: '/webht.php/apps/paypal/index/closeGai/' + pn_txn_id,
|
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
|
alert(data);
|
|
|
|
|
},
|
|
|
|
|
error: function(msg) {
|
|
|
|
|
alert('\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYOYO...');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function submit_gai_modal() {debugger
|
|
|
|
|
$('#form_modal_gai').ajaxSubmit({
|
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
|
alert(data);
|
|
|
|
|
},
|
|
|
|
|
error: function(msg) {
|
|
|
|
|
alert('\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYOYO...');
|
|
|
|
|
},
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
timeout: 30000
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|