index.html
1.9 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
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:url('menu/index')}">{:lang('ADMIN_MENU_INDEX')}</a></li>
<li><a href="{:url('menu/add')}">{:lang('ADMIN_MENU_ADD')}</a></li>
<li><a href="{:url('menu/lists')}">{:lang('ADMIN_MENU_LISTS')}</a></li>
</ul>
<form class="js-ajax-form" action="{:url('Menu/listOrder')}" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
</div>
<table class="table table-hover table-bordered table-list" id="menus-table">
<thead>
<tr>
<th width="80">{:lang('SORT')}</th>
<th width="50">ID</th>
<th>{:lang('NAME')}</th>
<th>操作</th>
<th width="80">{:lang('STATUS')}</th>
<th width="180">{:lang('ACTIONS')}</th>
</tr>
</thead>
<tbody>
{$category}
</tbody>
<tfoot>
<tr>
<th width="80">{:lang('SORT')}</th>
<th width="50">ID</th>
<th>{:lang('NAME')}</th>
<th>操作</th>
<th width="80">{:lang('STATUS')}</th>
<th width="180">{:lang('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
$(document).ready(function() {
Wind.css('treeTable');
Wind.use('treeTable', function() {
$("#menus-table").treeTable({
indent : 20
});
});
});
</script>
</body>
</html>