mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
157 lines
6.0 KiB
HTML
157 lines
6.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0"
|
|
>
|
|
<meta
|
|
http-equiv="X-UA-Compatible"
|
|
content="ie=edge"
|
|
>
|
|
<title>内容管理</title>
|
|
{include file="common/_require"}
|
|
|
|
<script>
|
|
var currentHeaderNavItem = 'Post-{$Request.param.type|default="1"}';
|
|
var currentLeftNavItem = 'output-platform-type-{$Request.param.platform_type|default="1"}';
|
|
</script>
|
|
</head>
|
|
|
|
<body class="layui-layout-body">
|
|
|
|
<div class="layui-layout layui-layout-admin">
|
|
{include file="common/_header"}
|
|
{include file="common/left_post"}
|
|
|
|
<div class="layui-body">
|
|
|
|
<div style="padding:15px">
|
|
<div class="main-header">
|
|
<span class="layui-breadcrumb">
|
|
<a>首页</a>
|
|
<a><cite>系统信息</cite></a>
|
|
</span>
|
|
</div>
|
|
<div class="main-container">
|
|
<div>
|
|
<div class="layui-tab layui-tab-brief">
|
|
<ul class="layui-tab-title">
|
|
<li class="platform-status-">
|
|
<a href="{:url('indexOutput',['platform_type'=>$platform_type,'type'=>$Request.param.type,'platform_status'=>''])}">全部</a>
|
|
</li>
|
|
<li class="platform-status-1">
|
|
<a
|
|
href="{:url('indexOutput',['platform_type'=>$platform_type,'type'=>$Request.param.type,'platform_status'=>'1'])}"
|
|
class=""
|
|
>已发表</a>
|
|
</li>
|
|
<li class="platform-status-0">
|
|
<a
|
|
href="{:url('indexOutput',['platform_type'=>$platform_type,'type'=>$Request.param.type,'platform_status'=>'0'])}"
|
|
class=""
|
|
>未发表</a>
|
|
</li>
|
|
</ul>
|
|
<div class="layui-tab-content">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$('.platform-status-{$Request.param.platform_status}').addClass('layui-this')
|
|
</script>
|
|
<div>
|
|
<table
|
|
class="layui-table"
|
|
lay-skin="line"
|
|
>
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>名称</th>
|
|
<th>封面</th>
|
|
<th>简介</th>
|
|
<th>排序</th>
|
|
<th>状态</th>
|
|
<th>平台状态</th>
|
|
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{volist name='list' id='vo'}
|
|
|
|
<tr
|
|
class="item"
|
|
data-id="{$vo.id}"
|
|
>
|
|
<td>{$vo.id}</td>
|
|
<td style="max-width: 160px;">{$vo.title}</td>
|
|
|
|
<td><img
|
|
src="{$vo.poster}"
|
|
alt=""
|
|
></td>
|
|
<td style="max-width: 200px;">{$vo.desc_short}</td>
|
|
<td>{$vo.sort}</td>
|
|
<td>{$vo.status_name}</td>
|
|
<td>
|
|
{if $vo.platform_status == 0 }
|
|
{$vo.platform_status_title}
|
|
|
|
{else /}
|
|
<a
|
|
href="{$vo.post_platform_data_array[$platform_type]}"
|
|
target="_blank"
|
|
>{$vo.platform_status_title}</a>
|
|
{/if}
|
|
</td>
|
|
|
|
<td>
|
|
<div class="layui-btn-container">
|
|
|
|
<a
|
|
class="layui-btn layui-btn-sm"
|
|
target="_blank"
|
|
href="{:url('output',['id'=>$vo.id,'type'=>$Request.param.type])}"
|
|
>导出</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/volist}
|
|
{if condition="count($list) == 0" }
|
|
<tr>
|
|
<td colspan="7">暂无数据</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
<div>
|
|
{$list|raw}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include file="common/_footer"}
|
|
</div>
|
|
|
|
<script>
|
|
$('.delete').click(function () {
|
|
var item = this;
|
|
layer.confirm('确定要删除吗?', function () {
|
|
$.get('{:url("delete")}', {
|
|
id: $(item).parents('.item').data('id')
|
|
}, function (result) {
|
|
layer.msg('删除成功');
|
|
|
|
$(item).parents('.item').remove();
|
|
});
|
|
});
|
|
})
|
|
</script>
|
|
</body>
|
|
|
|
</html> |