68 lines
1.9 KiB
HTML
Executable File
68 lines
1.9 KiB
HTML
Executable File
{include file="Public:header2"/}
|
|
<body>
|
|
<div class="layui-fluid">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<xblock>
|
|
<div style="padding-bottom: 10px;">
|
|
<span style="line-height:40px;float:right;">共有数据: {$count}条</span>
|
|
</div>
|
|
</xblock>
|
|
<table class="layui-table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>标题</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{volist name="data" id="vo"}
|
|
<tr>
|
|
<td>{$vo['id']}</td>
|
|
<td>{$vo['title']}</td>
|
|
<td >
|
|
<a style="text-decoration:none" title="编辑" onclick="danye_edit({$vo.id})" class="layui-btn layui-btn-xs">
|
|
<i class="layui-icon layui-icon-edit"></i>编辑
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{/volist}
|
|
{if condition="$count eq 0"}
|
|
<tr><td colspan='3' style="text-align:center;">暂时没有数据!</td></tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
<div class="layui-box layui-laypage layui-laypage-default">
|
|
{$page|raw}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include file="Public:footer"/}
|
|
<script type="text/javascript">
|
|
layui.use(['table'], function(){
|
|
|
|
});
|
|
|
|
|
|
//编辑单页
|
|
function danye_edit(id) {
|
|
var url = "{:url('/admin/danye_edit?id="+id+"')}";
|
|
layer.open({
|
|
type: 2,
|
|
title: '编辑单页',
|
|
shadeClose: false,
|
|
shade: 0.3,
|
|
area: ['80%', '80%'],
|
|
content: url,
|
|
});
|
|
}
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|