<div style="width:90%;margin:30px auto;">
	<div class="panel panel-primary" style="width:60%;margin:0 auto;">
      <div class="panel-heading">
        <h3 class="panel-title"><?php echo $result["train_date"];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $result["checi"];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo isset($result["ordernumber"])?$result["ordernumber"]:"";?></h3>
      </div>
      <div class="panel-body">
      	<?php if((int)$result["status"]>1):?>
	      	<p><?php echo $result["from_station_name"];?><span class="glyphicon glyphicon-arrow-right"></span><?php echo $result["to_station_name"];?></p>
	      	<?php foreach ($result["passengers"] as $v):?>
	      		<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
	      		<p><?php echo @$v["passengersename"]."({$v['piaotypename']})&nbsp;&nbsp;&nbsp;&nbsp;{$v['zwname']}&nbsp;&nbsp;{$v['cxin']}&nbsp;&nbsp;&nbsp;&nbsp;票价：￥{$v['price']}";?></p>
            <?php if(empty($v["refundTimeline"])){?>
  	      		<p>
                <a href="refund_do?order=<?php echo $result['orderid']?>&name=<?php echo $v['passengersename']?>&passportseno=<?php echo $v['passportseno']?>&passporttypeseid=<?php echo $v['passporttypeseid']?>&ticket_no=<?php echo $v['ticket_no']?>" style="padding:5px 15px;" class="btn btn-warning btn-sm"><span class="glyphicon glyphicon-remove"></span>退票
                </a>
              </p>
            <?php }else{?>  
              <p>
                <table class="table table-bordered table-hover"  style="text-align:center;">
                  <tr>
                    <th colspan="2" style="text-align:center;">退票处理</th>
                  </tr>
                  <?php foreach ($v["refundTimeline"] as $v_refund) {?>
                  <tr>
                    <td><?php echo $v_refund["time"]?></td>
                    <td><?php echo $v_refund["msg"]?></td>
                  </tr>
                  <?php }?>
                </table>
              </p>
            <?php }?>
	      	<?php endforeach;?>
	      	
	    <?php else:?>
	    	<p><?php echo $result["msg"];?></p>  	
	    <?php endif;?>  	
      </div>
  	</div>
</div>      	


