-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.php
64 lines (58 loc) · 2.7 KB
/
list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div class="row panel panel-default list ">
<!-- 搜索区域 -->
<div class="col-md-12 list-cond">
<form class="form-inline" action="" method="get">
<?php foreach ($cols as $col):?><?php if(strpos($col['list'],'S')!==false): ?><div class="form-group">
<label for=""><?=$col['colCn']?></label>
<input type="text" class="form-control" name="<?=$col['col']?>" value="<<?=$mark?>=$_GET['<?=$col['col']?>']?>" placeholder="" />
</div>
<?php endif; ?><?php endforeach;?>
<div class="form-group">
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> 搜索</button>
<a href="/" class="btn btn-second">重置</a>
</div>
</form>
</div>
<!-- /搜索区域 -->
<div class="col-md-12">
<form action="" method="post">
<table class="table table-striped table-hover">
<thead>
<tr class="info">
<th>#</th>
<?php foreach ($cols as $col):?><th><?=$col['colCn']?></th>
<?php endforeach;?><th class="list-add-time">添加时间</th>
<th class="list-status">状态</th>
<th class="list-op">操作</th>
</tr>
</thead>
<tbody>
<<?=$mark?>php foreach($list as $v): ?>
<tr>
<td>
<<?=$mark?>=$v['id']?>
</td>
<?php foreach ($cols as $col):?><td>
<<?=$mark?>=$v['<?=$col['col']?>']?>
</td>
<?php endforeach;?>
<td>
<<?=$mark?>=$v['add_time']?>
</td>
<td>
<<?=$mark?>=htmlStatus($v['status'])?>
</td>
<td class="text-right">
<a class="btn btn-primary btn-xs" href="/<<?=$mark?>=RTC?>/edit?id=<<?=$mark?>=$v['id']?>"><span class="glyphicon glyphicon-edit"></span></a>
<a class="btn btn-danger btn-xs" href="/<<?=$mark?>=RTC?>/del?id=<<?=$mark?>=$v['id']?>" onclick="return confirm('确认删除吗?');"><span class="glyphicon glyphicon-trash"></span></a>
</td>
</tr>
<<?=$mark?>php endforeach; ?>
</tbody>
</table>
</form>
</div>
</div>
<script type="text/javascript">
$(function() {})
</script>