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.
120 lines
6.1 KiB
PHP
120 lines
6.1 KiB
PHP
<div class="col-xs-24 nopadding search_trigger_box">
|
|
<input type="text" class="search_trigger btn col-xs-20 text-left" style="border-right:none;text-align: left;padding-left: 25px;" placeholder="搜索邮件..." >
|
|
<div class="colx-xs-4 btn pull-right"><span class="glyphicon glyphicon-search" style="background:#fff;"></span></div>
|
|
</div>
|
|
<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('index/index'); ?>">
|
|
<input type="hidden" name="search_order" value="1">
|
|
<div class="form-group">
|
|
<label for="exampleInputName2">订 单 号</label>
|
|
<input type="text" class="form-control input-sm" name="o_orderno" value="<?php echo isset($o_orderno) ? $o_orderno : ''; ?>" placeholder="订单号" >
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputName2">订单状态</label>
|
|
<select name="status" class="form-control input-sm">
|
|
<option value="all">任何状态</option>
|
|
<?php
|
|
foreach ($order_status as
|
|
$key =>
|
|
$status) {
|
|
?>
|
|
<option value="<?php echo $key; ?>" <?php echo (isset($conditions['status']) && $conditions['status']==$key)?'selected':''; ?>><?php echo $status; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
<div class="form-group hidden">
|
|
<label for="exampleInputEmail2">订单类型</label>
|
|
<select name="ordertype" class="form-control input-sm">
|
|
<option value="all">所有类型</option>
|
|
<?php
|
|
foreach ($order_type as
|
|
$key =>
|
|
$type) {
|
|
?>
|
|
<option value="<?php echo $key; ?>" <?php echo (isset($conditions['ordertype']) && $conditions['ordertype']==$key)?'selected':''; ?>><?php echo $type; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail2">出发日期</label>
|
|
<input type="text" name="startdate" class="form-control input-sm datepicker lyydatepicker" value="<?php echo isset($conditions['startdate'])?$conditions['startdate']:''; ?>" autocomplete="off">
|
|
<label for="exampleInputName2" style="width:auto">-</label>
|
|
<input type="text" name="startdate2" class="form-control input-sm datepicker lyydatepicker" value="<?php echo isset($conditions['startdate2'])?$conditions['startdate2']:''; ?>" autocomplete="off">
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail2">产品代号</label>
|
|
<input type="text" name="ordercolno" class="form-control input-sm" value="<?php echo isset($conditions['ordercolno'])?$conditions['ordercolno']:''; ?>" >
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputName2">订单来源</label>
|
|
<input type="text" name="source" value="<?php echo isset($conditions['source'])?$conditions['source']:''; ?>" class="form-control input-sm">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail2">预定日期</label>
|
|
<input type="text" name="applydate" class="form-control input-sm datepicker lyydatepicker" value="<?php echo isset($conditions['applydate'])?$conditions['applydate']:''; ?>" autocomplete="off">
|
|
<label for="exampleInputName2" style="width:auto">-</label>
|
|
<input type="text" name="applydate2" class="form-control input-sm datepicker lyydatepicker" value="<?php echo isset($conditions['applydate2'])?$conditions['applydate2']:''; ?>" autocomplete="off">
|
|
</div>
|
|
<button class="btn btn-sm btn-primary" style="margin-top:-5px;">查 询</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-xs-24 content">
|
|
<table class="table table-striped table-condensed table-hover">
|
|
<tbody>
|
|
<tr class="table-title">
|
|
<th style="padding-left:10px;" scope="row">订单号</th>
|
|
<th>订单状态</th>
|
|
<th>预订人</th>
|
|
<th>产品代号</th>
|
|
<th class="hidden-xs">支付方式</th>
|
|
<th class="hidden-xs">报价</th>
|
|
<th class="hidden-xs">预订日期</th>
|
|
<th class="hidden-xs">出发日期</th>
|
|
<th class="hidden-xs">人数</th>
|
|
<th class="hidden-xs">来源</th>
|
|
<th width="45">操作</th>
|
|
</tr>
|
|
|
|
<?php foreach ($order_list as $key => $o) { ?>
|
|
<tr class="tr_order_list">
|
|
<td style="padding-left:10px;" scope="row"><?php echo $o->o_orderno; ?></td>
|
|
<td><?php echo $o->o_status; if(isset($payrecord[$o->o_sn]) && ($o->o_status=='我的订单' || $o->o_status=='新订单' || $o->o_status=='未预定先联系')) echo '(已付款)'; ?></td>
|
|
<td><?php echo $o->cus_firstname.' '.$o->cus_middlename.' '.$o->cus_lastname; ?></td>
|
|
<td><?php echo $o->occ_circuitcode; ?></td>
|
|
<td class="hidden-xs"><?php echo isset($payrecord[$o->o_sn])?$payrecord[$o->o_sn]->pm_money_type:''; ?></td>
|
|
<td class="hidden-xs">$<?php echo $o->occ_price; ?></td>
|
|
<td class="hidden-xs"><?php echo date('m-d H:i',strtotime($o->o_date)); ?></td>
|
|
<td class="hidden-xs"><?php echo !empty($o->occ_startdate)?date('Y-m-d',strtotime($o->occ_startdate)):'-'; ?></td>
|
|
|
|
<td class="hidden-xs"><?php echo $o->occ_adultcount; ?>/<?php echo $o->occ_childrencount; ?>/<?php echo $o->occ_babycount; ?></td>
|
|
|
|
<td class="hidden-xs"><?php echo $o->o_source; ?></td>
|
|
<td><a href="<?php echo site_url('index/detail/'.$o->o_sn); ?>">查看</a></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="col-xs-24">
|
|
<nav>
|
|
<ul class="pager pull-left" data-search="<?php echo (isset($conditions['search_order']) && $conditions['search_order']==1)? 1 : '0'; ?>">
|
|
<!----><?php echo isset($pageinfo['htmls'])?$pageinfo['htmls']:''; ?>
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(".pager>li>a").on('click',function(event){
|
|
if ($(".pager").attr('data-search')=='1') {
|
|
event.preventDefault();
|
|
var url=$(this).attr('href');
|
|
$(".order_search_group").attr('action',url).submit();
|
|
};
|
|
});
|
|
</script>
|