You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/application/third_party/train_it/views/order.php

52 lines
3.3 KiB
PHP

<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 endforeach;?>
<?php if((int)$result["status"]===2):?>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p>占座成功,请在:<?php echo date("Y-m-d H:i:s",strtotime($result["deal_time"])+30*60);?> 前付款,超时将失效</p>
<?php if((strtotime($result["deal_time"])+30*60)<time()):?>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p style="text-align:center;color:red;">订单已超时失效</p>
<?php else:?>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p style="text-align:center;"><a href="cancel_order?order=<?php echo $result['orderid']?>" style="padding:5px 15px;" class="btn btn-warning btn-sm"><span class="glyphicon glyphicon-remove"></span>取消订单</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="pay?order=<?php echo $result['orderid']?>" style="padding:5px 15px;" class="btn btn-success btn-sm">¥支付</a></p>
<?php endif;?>
<?php endif;?>
<?php if((int)$result["status"]===4):?>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p>出票成功</p>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p style="text-align:center;"><a href="refund?order=<?php echo $result['orderid']?>" style="padding:5px 15px;" class="btn btn-warning btn-sm">前往退票 <span class="glyphicon glyphicon-forward"></span></a></p>
<?php endif;?>
<?php if((int)$result["status"]===6):?>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p>正在处理退票</p>
<p style="text-align:center;"><a href="refund?order=<?php echo $result['orderid']?>" style="padding:5px 15px;" class="btn btn-warning btn-sm">查看详情 <span class="glyphicon glyphicon-forward"></span></a></p>
<?php endif;?>
<?php if((int)$result["status"]===7):?>
<p style="border-top:1px dashed #000; height:1px;margin-top:10px;" ></p>
<p><?php echo $result["msg"];?></p>
<p style="text-align:center;"><a href="refund?order=<?php echo $result['orderid']?>" style="padding:5px 15px;" class="btn btn-warning btn-sm">查看详情 <span class="glyphicon glyphicon-forward"></span></a></p>
<?php endif;?>
<?php else:?>
<p><?php echo $result["msg"];?></p>
<?php endif;?>
</div>
</div>
</div>