<div style="width:90%;margin:30px auto;">
  <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">订单搜索</h3>
      </div>
      <div class="panel-body">
        <div class="row">
         <form style="" action="" method="get">
          <div class="col-md-6">
            <input class="form-control" type="text" placeholder="汉特订单号或聚合订单号" name="order" value="<?php echo !empty($order)?"$order":"";?>">
          </div>  
		  <div class="col-md-4">
            <select class="form-control" name="web_code">
			  <option value ="分站点查询，默认商旅" disabled="disabled" selected>分站点查询，默认全站</option>
			  <option value ="CHT">商旅</option>
			  <option value ="jp">日本</option>
			  <option value="train_vac">西班牙</option>
			  <option value="train_it">意大利</option>
			  <option value="train_ru">俄罗斯</option>
			  <option value="train_vc">法国</option>
			</select>
          </div>  
		  <!--<div class="col-md-5">
			<input type="text" name="from_date" class="date" value="" class="">
			至
			<input type="text" name="to_date" class="date" value="">
		  </div>-->
          <div class="col-md-5">
            <button type="submit" id="sub" class="btn btn-success btn-sm"><span class="glyphicon glyphicon-search"></span> 搜索</button> 
          </div>    
          </form> 
        </div>  
      </div>
  </div>
	<div class="panel panel-primary">
	    <div class="panel-heading">
	    	<h3 class="panel-title">订单列表</h3>
	    </div>
    	<div class="panel-body">
    		<table class="table table-striped"  style="text-align:center;">
  				<thead>
  					<tr>
  						<th style="text-align:center;">序号</th>
  						<th style="text-align:center;">汉特订单号(商家订单号)</th>
  						<th style="text-align:center;">聚合订单号</th>
  						<th style="text-align:center;">车次</th>
  						<th style="text-align:center;">出发</th>
  						<th style="text-align:center;">到达</th>
  						<th style="text-align:center;">状态</th>
  						<th style="text-align:center;">价格</th>
  						<th style="text-align:center;">提交时间</th>
						<th style="text-align:center;">所属部门</th>
						<th style="text-align:center;">出票方式</th>
						<th style="text-align:center;">是否发送邮件</th>
  						<th style="text-align:center;">操作</th>
  					</tr>
  				</thead>
  				<tbody>
  					<?php $num=0; foreach($data as $v):?>
  					<tr>
  						<td><?php echo ++$num;?></td>
  						<td><?php echo $v->COLI_ID.'('.$v->JOL_COLD_SN.')';?></td>
  						<td><?php echo $v->JOL_JuheOrder;?></td>
  						<td><?php echo $v->JOL_TrainCode;?></td>
  						<td><?php echo $v->JOL_FromStation;?></td>
  						<td><?php echo $v->JOL_ToStation;?></td>
  						<td><?php echo $v->info;?></td>
  						<td><?php echo $v->JOL_Price;?></td>
  						<td><?php echo $v->JOL_SubTime;?></td>
						<td><?php echo $v->COLI_WebCode;?></td>
						<?php 
						if($v->JOL_IsAuto == 1){
							echo '<td>自动</td>';
						}elseif($v->JOL_IsAuto == 0){
							echo '<td>手动</td>';
						}elseif($v->JOL_IsAuto == 3){
							echo '<td>抢票</td>';
						}
						?>
						<?php 
						if($v->JOL_SendMail == 1){
							if($v->JOL_M_SN){
								echo '<td><a target="_blank" href="http://www.mycht.cn/info.php/apps/train/index/get_mailinfo/'.$v->JOL_M_SN.'">是</a></td>';
							}else{
								echo '<td>是</td>';
							}
						}else{
							echo '<td>否</td>';
						}
						?>
  						<td><a target="_blank" href="order?order=<?php echo $v->JOL_JuheOrder;?>">详情</a></td>
  					</tr>
  				<?php endforeach;?>
  				</tbody>
			</table>
      <div style="text-align:right;"><ul class="pagination"><?php echo $page_link;?></ul></div>
    	</div>
	</div>
</div>