index.html
4.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
97
98
99
100
101
102
103
104
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:url('cooperation/index')}">所有合作伙伴</a></li>
<li><a href="{:url('cooperation/add')}">添加合作伙伴</a></li>
</ul>
<form method="post" class="js-ajax-form margin-top-20">
<div class="table-actions">
<!--<button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>-->
<button class="btn btn-sm btn-success js-ajax-submit" type="submit"
data-action="{:url('cooperation/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')}
</button>
<button class="btn btn-sm btn-danger js-ajax-submit" type="submit"
data-action="{:url('cooperation/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}
</button>
</div>
<php>$status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="50"><label><input type="checkbox" class="js-check-all" data-direction="x"
data-checklist="js-check-x"></label></th>
<!--<th width="50">{:lang('SORT')}</th>-->
<th width="100">ID</th>
<th width="200">名称</th>
<th width="200">图片</th>
<th width="100">{:lang('STATUS')}</th>
<th width="200">权重</th>
<th width="120">{:lang('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="cooperation" item="vo">
<tr>
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
value="{$vo.id}"></td>
<td>{$vo.id}</td>
<td>{$vo.name}</td>
<td>
<notempty name="vo.image">
<a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.image)}');">
<i class="fa fa-photo fa-fw"></i>
</a>
<else/>
<i class="fa fa-close fa-fw"></i>
</notempty>
</td>
<td>
<empty name="vo.status">
<span class="label label-default">
{$status[$vo['status']]}
</span>
<else/>
<span class="label label-success">
{$status[$vo['status']]}
</span>
</empty>
</td>
<td>{$vo.weigh}</td>
<td>
<a class="btn btn-xs btn-primary" href="{:url('cooperation/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('cooperation/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">
{:lang('DELETE')}
</a>
</td>
</tr>
</foreach>
</tbody>
<!--<tfoot>-->
<!--<tr>-->
<!--<th width="16">-->
<!--<label>-->
<!--<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">-->
<!--</label>-->
<!--</th>-->
<!--<th width="50">{:lang('SORT')}</th>-->
<!--<th width="50">ID</th>-->
<!--<th>{:lang('NAME')}</th>-->
<!--<th>链接地址</th>-->
<!--<th width="50">{:lang('STATUS')}</th>-->
<!--<th width="120">{:lang('ACTIONS')}</th>-->
<!--</tr>-->
<!--</tfoot>-->
</table>
<!--<div class="table-actions">-->
<!--<button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>-->
<!--<button class="btn btn-sm btn-success js-ajax-submit" type="submit"-->
<!--data-action="{:url('link/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')}-->
<!--</button>-->
<!--<button class="btn btn-sm btn-danger js-ajax-submit" type="submit"-->
<!--data-action="{:url('link/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}-->
<!--</button>-->
<!--</div>-->
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>