<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>订单来源页面搜索</title>
    <link href="/css/webht/bootstrap.min.css" rel="stylesheet">
    <link href="/css/nav/nav.css?v=20150723" rel="stylesheet">
    <link href="/css/webht/jquery-ui-1.10.0.custom.css" rel="stylesheet">
    <script src="/min?f=/js/jquery.min.js,/js/bootstrap.min.js,/js/navigation.js,/js/jquery.form.min.js"></script>
    <script src="/js/jquery-ui.min.js?v=1"></script>
<!--[if lt IE 9]>
<script src="/js/respond.min.js" type="text/javascript"></script>
<![endif]-->

</head>
<body>
<nav class="navbar navbar-inverses" style="margin-bottom:0;border-bottom:1px solid #ddd;">
  <div class="container-fluid search_container nopadding">
    <div class="navbar-header" style="float:none;">
      <a class="navbar-brand text-muted" style="padding-top: 7px;padding-left: 30px;" href="<?php echo site_url('index/index'); ?>">
          <img width="150" style="height:40px;" src="/css/nav/img/6000.png">
      </a>
    </div>
  </div>
</nav>
<h1 class="text-center">AH订单统计(按线路代号)</h1>
<table class="table table-bordered">
	<tr>
		<th>线路代号</th>
		<th>订单数量</th>
		<th>具体订单号</th>
	</tr>
	<?php 
		$table_body = '';
		//print_r($orders);
		foreach ($orders as $key=>$items){
			$table_body .= '<tr>';
			$table_body .= '<td>'.$key.'</td>';
			$table_body .= '<td>'.count($items).'</td>';
			$table_body .= '<td class="order_detail">';
			$orders_num = 0;
			foreach ($items as $value){
				$orders_num++;
				if($orders_num == count($items)){
					$table_body .= $value->COLI_ID;
				}else{
					$table_body .= $value->COLI_ID.'、';
				}
			}
			
			$table_body .= '</td>';
			$table_body .= '</tr>';
		}
		echo $table_body;
	?>
</table>


</body>
</html>