HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.kvrdp.com/runtime/temp/cdd2db5d39d2af949b7814251b4e4031.php
<?php /*a:3:{s:66:"/www/wwwroot/www.kvrdp.com/application/cms/view/cms/classlist.html";i:1665207834;s:67:"/www/wwwroot/www.kvrdp.com/application/admin/view/index_layout.html";i:1665207834;s:60:"/www/wwwroot/www.kvrdp.com/application/admin/view/layui.html";i:1665207834;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo config('system_name'); ?>后台管理系统</title>
    <meta name="author" content="<?php echo config('system_name'); ?>">
    <meta name="csrf-token" content="<?php echo think\facade\Request::token('__token__'); ?>">
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
    <link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
    <link rel="stylesheet" href="/static/admin/css/my.css">
    <script src="/static/libs/layui/layui.js"></script>
    <script src="/static/libs/jquery/jquery.min.js"></script>
    <script type="text/javascript">
    //全局变量
    var GV = {
        'site':<?php echo json_encode($site); ?>,
        'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) :  url("attachment/upload/upload", ["dir" => "images"]); ?>',
        'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) :  url("attachment/upload/upload", ["dir" => "files"]); ?>',
        'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) :  url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor"]); ?>',
        'attachment_select_url': '<?php echo !empty($attachment_select_url) ? htmlentities($attachment_select_url) :  url("attachment/attachments/select"); ?>',
    };
    </script>
</head>

<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
    
<link rel="stylesheet" href="/static/admin/css/cms.css">
<table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
<script type="text/html" id="barTool">
    {{# if(<?php echo htmlentities($push); ?>){ }}
    <a data-open='<?php echo url("push/cms",["catid"=>$catid]); ?>?id={{ d.id }}' data-width="900" data-height="600" class="layui-btn layui-btn-xs layui-btn-warm" title="推送并翻译"><i class="layui-icon layui-icon-release"></i></a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-xs layui-btn-disabled" title="高级版并且切换到所有站模式才可以推送"><i class="layui-icon layui-icon-release"></i></a>
    {{#  } }}

    {{# if(d.catid !== <?php echo htmlentities($catid); ?>){ }}
    <a class="layui-btn layui-btn-xs" data-open='<?php echo url("edit"); ?>?catid={{ d.catid }}&id={{ d.id }}' data-title="编辑内容" data-full="true"><i class='iconfont icon-brush_fill'></i></a>
    <a href='<?php echo url("revoke",["outid"=>$catid]); ?>?catid={{ d.catid }}&id={{ d.id }}' class="layui-btn layui-btn-warm layui-btn-xs layui-tr-out">移除</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-xs" data-open='<?php echo url("edit",["catid"=>$catid]); ?>?id={{ d.id }}' data-title="编辑内容" data-full="true"><i class='iconfont icon-brush_fill'></i></a>
    <a href='<?php echo url("del",["catid"=>$catid]); ?>?id={{ d.id }}&sites=<?php echo onSite(); ?>' class="layui-btn layui-btn-danger layui-btn-xs <?php if(onSite()): ?>layui-tr-load<?php else: ?>layui-tr-del<?php endif; ?>"><i class='iconfont icon-trash_fill'></i></a>
    {{#  } }}
    {{# if(d.modelType==3){ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" href='<?php echo url("cms/chapter/index",["catid"=>$catid]); ?>?did={{ d.id }}'><i class="iconfont icon-other"></i></a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-xs layui-btn-disabled" title="高级版并且是一对多模型才有章节"><i class="iconfont icon-other"></i></a>
    {{#  } }}
</script>

<script type="text/html" id="title">
    {{# if(d.flag){ }}
    <span class="text-danger">[{{ d.flags }}]</span>
    {{#  } }}
    {{# if(d.thumb){ }}
    <span class="text-success">[有图]</span>
    {{#  } }}
    <a  data-open='<?php echo url("edit",["catid"=>$catid]); ?>?id={{ d.id }}' data-title="编辑内容" data-full="true">{{ d.title }}</a>
</script>
<script type="text/html" id="username">
    {{# if(d.sysadd==1){ }}
    {{ d.username }}
    {{#  } else { }}
    <span class="text-danger">{{ d.username }}</span>
    {{#  } }}
</script>
<script type="text/html" id="statusTpl">
    <input type="checkbox" name="status" data-href='<?php echo url("setstate",["catid"=>$catid]); ?>?id={{d.id}}' value="{{d.id}}" lay-skin="switch" lay-text="通过|待审核" lay-filter="switchStatus" {{ d.status==1 ? 'checked' : '' }}>
</script>


<div id="remove" style="display: none;">
    <div class="box-body" style="margin: 20px">
        <blockquote class="layui-elem-quote">只能将数据移动到相同模型的栏目下,不同模型的数据移动将被忽略</blockquote>
        <div class="layui-form">
            <div class="layui-form-item">
                <select name="remove" lay-verify="required">
                    <option></option>
                    <?php echo $string; ?>
                </select>
            </div>
        </div>
    </div>
</div>

    
    <script type="text/javascript">
layui.config({
	version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
	base: '/static/libs/layui_exts/'
}).extend({
	yzn: 'yzn/yzn',
	yznForm: 'yznForm/yznForm',
	yznTable: 'yznTable/yznTable',
	treeGrid: 'treeGrid/treeGrid',
	clipboard: 'clipboard/clipboard.min',
	notice: 'notice/notice.min',
	iconPicker: 'iconPicker/iconPicker.min',
	ztree: 'ztree/ztree',
	dragsort: 'dragsort/dragsort.min',
	tagsinput: 'tagsinput/tagsinput',
	xmSelect: 'xmSelect/xm-select',
	selectPage: 'selectPage/selectpage.min',
	echarts: 'echarts/echarts',
	echartsTheme: 'echarts/echartsTheme',
	citypicker: 'citypicker/city-picker',
	webuploader: 'webuploader/webuploader',
	ueditor: 'ueditor/ueditor.min',
	addons: 'addons',
}).use('yznForm');
</script>
    
    

<script>
    layui.use(['table', 'yznTable'], function() {
        var table = layui.table,
            $ = layui.$,
            form = layui.form,
            table = layui.table,
            yznTable = layui.yznTable;

        var init = {
            table_elem: '#currentTable',
            table_render_id: 'currentTable',
            add_url: "<?php echo url('add',['catid'=>$catid]); ?>",
            edit_url: "<?php echo url('edit',['catid'=>$catid]); ?>",
            delete_url: "<?php echo url('del',['catid'=>$catid]); ?>",
            modify_url: '<?php echo url("listorder",["catid"=>$catid]); ?>',
        };

        yznTable.render({
            init: init,
            toolbar: ['refresh',
                [{
                    text: '添加',
                    url: init.add_url,
                    method: 'open',
                    icon: 'iconfont icon-add',
                    class: 'layui-btn layui-btn-normal layui-btn-sm',
                    extend: 'data-full="true"',
                }], 'delete',
                [{
                    html: '<a class="layui-btn layui-btn-sm layui-btn-normal move"><i class="iconfont icon-yidong"></i>&nbsp;批量移动</a> '
                }],
                [{
                    html: '<a class="layui-btn layui-btn-sm layui-btn-danger" href="<?php echo url("recycle",["catid"=>$catid]); ?>"><i class="iconfont icon-trash"></i>&nbsp;回收站</a>'
                }],
            ],
        url: '<?php echo url("classlist",["catid"=>$catid]); ?>',
            cols: [
            [
                { type: 'checkbox', fixed: 'left' },
                { field: 'listorder', width: 70, title: '排序', edit: 'text', align: "center",search:false },
                { field: 'id', width: 60, title: 'ID' , align: "center"},
                { field: 'site', width: 120, title: '已发站点', align: "center"},
                { field: 'title',align: "left", title: '标题', templet: '#title', searchOp: 'like' },
                <?php echo $listStr; ?>
                { field: 'flag', width: 100, title: '标识',hide: true, selectList: { <?php echo $flag; ?> } },
                { field: 'thumb', width: 90, title: '图片', search: false, templet: yznTable.formatter.image, align: "center" },
                { field: 'hits', width: 80, title: '点击量', align: "center",search: 'between',searchTip:'点击量' },
                { field: 'updatetime', width: 145, title: '更新时间', search: 'range',hide: true },
                { field: 'username', width: 80, title: '发布人', templet: '#username',hide: true },
                { field: 'url', width: 60, align: "center", title: 'URL', templet: yznTable.formatter.url, search: false },
                { field: 'status', width: 100, align: "center", title: '状态', templet: '#statusTpl', unresize: true, selectList: { 0: '待审核', 1: '通过' } },
                { fixed: 'right', width: 220, title: '操作', toolbar: '#barTool', align: "center" }
            ]
        ],
            page: {}
    });


        $('body').on('click', '.move', function() {
            var checkStatus = table.checkStatus('currentTable'),

                ids = [],
                id = tag = '';
            var data = checkStatus.data;
            if (data.length > 0) {
                for (let i in data) {
                    id += tag + data[i].id;
                    tag = '|';
                    //ids.push(data[i].id);
                }
                layer.open({
                    title: '批量移动',
                    type: 1,
                    content: $('#remove'),
                    area: ['300px', '250px'],
                    btn: ['移动'],
                    yes: function(index, layero) {
                        var tocatid = $("select[name='remove']").val();
                        if (tocatid == 0) {
                            layer.msg("请选择移动的栏目",{icon: 2});
                            return;
                        }
                        $.post('<?php echo url("cms/cms/remove",["catid"=>$catid]); ?>', { 'ids': id, 'tocatid': tocatid }, function(data) {
                            if (data.code == 1) {
                                table.reload('currentTable');
                                layer.msg(data.msg,{icon: 1});
                                layer.close(index);
                            } else {
                                layer.msg(data.msg,{icon: 2});
                            }
                        })
                    },
                    end: function(){
                        $('#remove').hide();
                    }
                });
            } else {
                layer.msg("请选择需要移动的数据",{icon: 2});
            }
        });

    });
</script>

</body>

</html>