火车预售时间修改功能上线

master
赵鹏 1 year ago
parent ba98a93f2a
commit 470590af01

@ -0,0 +1,30 @@
<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">预售时间添加(车站名是中文名)</h3>
</div>
<div class="panel-body">
<form action="/info.php/apps/trainsystem/pages/presale_addsave" name="saletimeform" method="POST">
<table class="table table-condensed table-bordered">
<tr>
<td style="text-align:center;">车站名</td>
<td><input type="text" name="TST_station_cn" value="" /></td>
</tr>
<tr>
<td style="text-align:center;">预售时间8:00 ,18:30)</td>
<td><input type="text" name="TST_saletime" value="" /></td>
</tr>
<tr>
<td style="text-align:center;">车站编码</td>
<td><input type="text" name="TST_station_code" value="" /></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<input type="submit" class="btn btn-warning btn-sm" value="添 加" style="width:120px;" />
</td>
</tr>
</table>
</form>
</div>
</div>
</div>

@ -0,0 +1,31 @@
<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">预售时间修改(车站名尽量不要修改)</h3>
</div>
<div class="panel-body">
<form action="/info.php/apps/trainsystem/pages/presale_editsave" name="saletimeform" method="POST">
<table class="table table-condensed table-bordered">
<tr>
<td style="text-align:center;">车站名</td>
<td><input type="text" name="TST_station_cn" value="<?php echo($info->TST_station_cn) ?>" /></td>
</tr>
<tr>
<td style="text-align:center;">预售时间</td>
<td><input type="text" name="TST_saletime" value="<?php echo($info->TST_saletime) ?>" /></td>
</tr>
<tr>
<td style="text-align:center;">车站编码</td>
<td><input type="text" name="TST_station_code" value="<?php echo($info->TST_station_code) ?>" /></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<input type="submit" class="btn btn-warning btn-sm" value="更 新" style="width:120px;" />
<input type="hidden" name="TST_id" value="<?php echo($info->TST_id) ?>"" />
</td>
</tr>
</table>
</form>
</div>
</div>
</div>

@ -0,0 +1,54 @@
<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>
Loading…
Cancel
Save