<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="stationcn" value="<?php echo !empty($stationcn)?"$stationcn":"";?>" autocomplete="off">
          </div>  
          <div class="col-md-5">
            <button type="submit" id="sub" class="btn btn-success btn-sm"><span class="glyphicon glyphicon-search"></span> 搜索</button> 
			&nbsp;&nbsp;<a href="/info.php/apps/trainsystem/pages/presale_add" class="btn btn-warning " style="width: 120px;">新增站点</a>
          </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;" width="5%">序号</th>
                        <th style="text-align:center;" width="5%">ID</th>
  						<th style="text-align:center;" width="25%">车站</th>
  						<th style="text-align:center;" width="25%">预售时间</th>
						<th style="text-align:center;" width="15%">车站编码</th>
						<th style="text-align:center;" width="15%">更新时间</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->TST_id;?></td>
  						<td><?php echo $v->TST_station_cn;?></td>
  						<td><?php echo $v->TST_saletime;?></td>
						<td><?php echo $v->TST_station_code;?></td>
						<td><?php echo $v->TST_updatetime;?></td>
  						<td><a target="_blank" href="presale_edit?tstid=<?php echo $v->TST_id;?>">修改</a></td>
  					</tr>
  				<?php endforeach;?>
  				</tbody>
			</table>
      <div style="text-align:right;"><ul class="pagination"><?php echo $page_link;?></ul></div>
    	</div>
	</div>
</div>