files.html
1.7 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
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<form method="post" class="js-ajax-form">
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th>文件名</th>
<th>操作名</th>
<th>文件路径</th>
<th>描述</th>
<th width="120">{:lang('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="files" item="vo">
<tr>
<td>{$vo.name}</td>
<td>{$vo.action}</td>
<td>{$vo.file}.html</td>
<td>{$vo.description}</td>
<td>
<a href="javascript:;" data-file="{$vo.id}" data-title="{$vo.name} {$vo.file}.html"
onclick="openDesignDialog(this)">设计</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
function openDesignDialog(obj) {
var $obj = $(obj);
var fileId = $obj.data('file');
var title = $obj.data('title');
parent.openIframeLayer("{:url('theme/fileSetting')}?file_id=" + fileId, title, {
area: ['700px', '90%'],
btn: ['确定', '取消'],
yes: function (index, layero) {
console.log(layero);
var iframeWin = parent.window[layero.find('iframe')[0]['name']];
iframeWin.confirm();
//layer.close(index); //如果设定了yes回调,需进行手工关闭
}
});
}
</script>
</body>
</html>