agentList.html
2.8 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="zh">
#@header()
<body>
<div>
<ol class="breadcrumb">
<li>
<a>货代管理</a>
</li>
<li>
<a style="color: gray;">/</a>
</li>
<li class="active">货代列表</li>
</ol>
<div style="margin-left: 10px;">
<table>
<tr>
<td><input id="searchInput" class="form-control" type="text" placeholder="公司名称/负责人/手机号" value="#(searchKey)" style="width: 300px;"/></td>
<td><button class="btn btn-success" onclick="onSearchAction()" style="margin-left: 5px;">搜索</button></td>
<td><button class="btn btn-primary" onclick="onAddAction()" style="margin-left: 30px;">新建货代</button></td>
</tr>
</table>
</div>
<div style="margin: 10px;">
<table class="table table-bordered table-advance table-hover">
<thead>
<tr>
<th>公司</th>
<th>负责人</th>
<th>手机号</th>
<th>添加时间</th>
<th>更新时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
#for(agent : dataList)
<tr>
<td>#(agent.nameCN??)</td>
<td>#(agent.manager??)</td>
<td>#(agent.phone??)</td>
<td>#date(agent.createTime??,'yyyy-MM-dd HH:mm:ss')</td>
<td>#date(agent.updateTime??,'yyyy-MM-dd HH:mm:ss')</td>
<td>
<button class="btn btn-primary" onclick="onModifyAction(#(agent.id))">
<i class="icon-pencil"></i> 编辑
</button>
<button class="btn btn-danger" onclick="onDeleteAction(#(agent.id))">
<i class="icon-trash "></i> 删除
</button>
</td>
</tr>
#end
</tbody>
</table>
#@page(contextPath+'/agent/list',curPage,totalPage,totalSize,searchKey,'','')
</div>
</div>
<!-- Modal -->
<div id="delModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="modal-title">温馨提示</h3>
</div>
<div class="modal-body">
<div class="control-group">
<label class="control-label" id="deleteId" style="display: none;">-1</label>
<label class="control-label" id="deleteTip">此操作将会删除所有和该货代相关的信息,是否继续删除?</label>
</div>
</div>
<div class="modal-footer form-actions">
<button class="btn btn-danger" onclick="onDeleteFromModal()">删除</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
</div>
</div>
</div>
<!-- End Modal -->
<script type="text/javascript" src="#(contextPath)/js/agent.js?ver=#(version)"></script>
<script type="text/javascript">
#if(flag)
showTip('#(flag)');
#end
</script>
</body>
</html>