<script type="text/javascript">


    
    $(function() {
		   
		   //开始日期
        $("#order_startdate").datepicker({
            showButtonPanel: true,
			   dateFormat:'yy-mm-dd'
        });
		   //结束日期
		   $("#order_enddate").datepicker({
            showButtonPanel: true,
				  dateFormat:'yy-mm-dd'
        });
    })
</script>


<div class="row-fluid">
  <div class="span2">	
	<ul class="nav nav-list">
	  <li class="nav-header">远程值班要求</li>
	  <li><a href="/技术远程值班规定.docx">技术远程值班规定.docx</a></li>
		<li class="nav-header">订单测试要点</li>	 
		<li><a href="#">  共有14个网站，检查2次，需填写至少106个测试订单, 所有的测试订单用户名使用自己的名字，邮箱使用</a> jstest@chinahighlights.com </li>
		<li class="nav-header">值班汇报</li>	 
		<li><a href="#">请按模板发送值班记录邮件，每天发送两次：</a></li>
	  <li>ycc@chinahighlights.com</li>
		<li>抄送：victorshu@chinahighlights.com</li>   
		   <li>steven@chinahighlights.com</li>   
		   <li class="divider"></li>

	  
	</ul> 
	
		 
		 
		 	<div class="span11">	 <legend>查询</legend>
		
			  <form role="form" id="form_order_search" name="form_order_search" method="post" action="<?php echo site_url('look_order'); ?>">
					 <div class="form-group">
							<label for="exampleInputEmail1">开始日期</label>
							<input type="text" class="form-control span11" id="order_startdate" name="order_startdate" value="<?php echo $start_date; ?>">
					 </div>
					 <div class="form-group">
							<label for="exampleInputPassword1">结束日期</label>
							<input type="text" class="form-control span11" id="order_enddate" name="order_enddate" value="<?php echo $end_date; ?>">
					 </div>
					 
					 <button type="submit" class="btn btn-default pull-right">查询</button>
						 </form></div>  
		 
  </div>
 
	   
	   
	   
  <div class="span10">
	
    
	<legend>订单列表</legend>
		<table class="table table-striped">
		  <thead>
			<tr>
			  <th class="span1">#</th>
			  <th class="span2">客人姓名</th>
			  <th class="span3">客人邮件</th>
			  <th class="span2">预定日期</th>
			  <th class="span2">来源网站</th>
			 <th class="span2">订单类型</th>
			</tr>
		  </thead>
		  <tbody>
				 <?php if (isset($order_list)){ ?>
        <?php
		foreach ($order_list as $key => $item){
		?>
			<tr>
			  <td><?php echo $key+1; ?></td>
			  <td><?php echo $item->MEI_FirstName.' '.$item->MEI_LastName; ?></td>
			  <td><?php echo $item->MEI_MailList; ?></td>
			  <td><?php echo $item->COLI_ApplyDate; ?></td>
			  <td><?php echo $item->WCI_Describe; ?></td>
				   <td><?php echo $item->SYC2_CodeDiscribe; ?></td>
			</tr>
		<?php } ?> <?php } ?>
		  </tbody>
		</table>  		
	
    
   
		
  </div>


</div>