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.php

121 lines
5.0 KiB
PHTML

<div class="search_order_box well" style="margin: -10px 0 0 0;">
<form class="form-inline order_search_group" method="post" action="<?php echo site_url('ht/index'); ?>">
<div class="form-group">
<label for="exampleInputName2">订 单 号</label>
<input type="text" class="form-control input-sm" name="coli_id" value="<?php echo isset($coli_id) ? $coli_id : ''; ?>" placeholder="订单号" >
</div>
<div class="form-group">
<label for="exampleInputEmail2">出发日期</label>
<input type="text" name="startdate_bettwen" class="form-control input-sm datepicker lyydatepicker" value="<?php echo isset($startdate_bettwen)?$startdate_bettwen:''; ?>" autocomplete="off">
<label for="exampleInputName2" style="width:auto">-</label>
<input type="text" name="startdate_and" class="form-control input-sm datepicker lyydatepicker" value="<?php echo isset($startdate_and)?$startdate_and:''; ?>" autocomplete="off">
</div>
<button class="btn btn-sm btn-primary" style="margin-top:-5px;">查 询</button>
</form>
</div>
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th class="col-sm-1">订单号</th>
<th class="col-sm-1">订单状态</th>
<th class="col-sm-2">预订人</th>
<th class="col-sm-2">预订日期</th>
<th class="col-sm-1">来源</th>
<th class="col-sm-1">产品号</th>
<th class="col-sm-1">人数</th>
<th class="col-sm-4">酒店</th>
<th class="col-sm-2">出发日期</th>
<th class="col-sm-1">天数</th>
<th class="col-sm-1"></th>
</tr>
</thead>
<tbody>
<?php
$perv_coli_id = '';
foreach ($order_list as $key => $item) {
?>
<tr>
<?php if ($perv_coli_id == $item->COLI_ID) { ?>
<td colspan="5"></td>
<?php } else { ?>
<td><a href="<?php echo site_url('/index/new_detail/' . $item->COLI_ID) ?>" target="_blank"><?php echo $item->COLI_ID; ?></a></td>
<td><?php echo biz_orderstatus($item->COLI_State); ?></td>
<td>预订人</td>
<td><?php echo $item->COLI_ApplyDate; ?></td>
<td><?php echo $item->COLI_WebCode; ?></td>
<?php } ?>
<td> <a href="javascript:void(0);" onclick="show_guide_modal('<?php echo $item->COLD_SN; ?>');"> <?php echo $item->PAG_Code; ?></a></td>
<td><?php echo $item->COLD_PersonNum . '/' . $item->COLD_ChildNum . '/' . $item->COLD_BabyNum; ?></td>
<td><?php echo str_replace('HotelName:', '', $item->POI_Hotel); ?></td>
<td><?php echo date('Y-m-d', strtotime($item->COLD_StartDate)); ?></td>
<td><?php echo $item->PAG_NeedTime; ?></td>
<td></td>
</tr>
<?php
$perv_coli_id = $item->COLI_ID;
}
?>
</tbody>
</table>
</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>