index.html
3.4 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
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:url('theme/index')}">所有模板</a></li>
<li><a href="{:url('theme/install')}">安装模板</a></li>
</ul>
<form method="post" class="js-ajax-form margin-top-20">
<php> $status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th>模板</th>
<th>模板名称</th>
<th>版本号</th>
<th>语言</th>
<th>作者</th>
<th>模板描述</th>
<th width="240">{:lang('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="themes" item="vo">
<tr>
<td>
{$vo.theme}
<eq name="vo.theme" value="$default_theme">
<span class="label label-success">当前启用</span>
</eq>
</td>
<td>{$vo.name}</td>
<td><span class="label label-success">{$vo.version}</span></td>
<td>{$vo.lang}</td>
<td>{$vo.author}</td>
<td>{$vo.description}</td>
<td>
<a class="btn btn-xs btn-primary" href="{:url('Theme/design',['theme'=>$vo.theme])}" target="_blank">设计</a>
<a class="btn btn-xs btn-primary" href="javascript:parent.openIframeLayer('{:url('theme/files',array('theme'=>$vo['theme']))}','{$vo.name}文件列表',{});">文件列表</a>
<a class="btn btn-xs btn-success js-ajax-dialog-btn" href="{:url('theme/update',array('theme'=>$vo['theme']))}"
data-msg="确定更新此模板吗?">更新</a>
<if condition="$vo.theme == $default_theme">
<span class="btn btn-xs btn-warning disabled" color="#cccccc">启用</span>
<else/>
<a class="btn btn-xs btn-warning js-ajax-dialog-btn" href="{:url('theme/active',array('theme'=>$vo['theme']))}"
data-msg="确定使用此模板吗?">启用</a>
</if>
<if condition="($vo.name == 'simpleboot3') OR ($vo.theme == $default_theme) ">
<span class="btn btn-xs btn-danger disabled">卸载</span>
<else/>
<a class="btn btn-xs btn-danger js-ajax-dialog-btn" href="{:url('theme/uninstall',array('theme'=>$vo['theme']))}"
data-msg="您设置的模板数据将被删除,<br>确定卸载此模板吗?">卸载</a>
</if>
</td>
</tr>
</foreach>
</tbody>
<tfoot>
<tr>
<th>模板</th>
<th>模板名称</th>
<th>版本号</th>
<th>语言</th>
<th>作者</th>
<th>模板描述</th>
<th width="180">{:lang('ACTIONS')}</th>
</tr>
</tfoot>
</table>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>