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.elwrky.com/application/member/view/group/index.html
{extend name="admin@index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-header">会员组列表</div>
    <div class="layui-card-body">
        <table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
    </div>
</div>
<script type="text/html" id="barTool">
    <a data-open='{:url("edit")}?id={{ d.id }}' data-width="900" data-height="600" class="layui-btn layui-btn-xs" title="编辑">编辑</a>
    {{#  if(d.issystem!=1){ }}
    <a href='{:url("del")}?id={{ d.id }}' class="layui-btn layui-btn-danger layui-btn-xs layui-tr-del">删除</a>
    {{#  } }}
</script>
<script type="text/html" id="issystem">
    {{#  if(d.issystem==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
<script type="text/html" id="allowattachment">
    {{#  if(d.allowattachment==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
<script type="text/html" id="allowpost">
    {{#  if(d.allowpost==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
<script type="text/html" id="allowpostverify">
    {{#  if(d.allowpostverify==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
<script type="text/html" id="allowsearch">
    {{#  if(d.allowsearch==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
<script type="text/html" id="allowupgrade">
    {{#  if(d.allowupgrade==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
<script type="text/html" id="allowsendmessage">
    {{#  if(d.allowsendmessage==1){ }}
    <i class="iconfont text-success icon-success_fill"></i>
    {{#  } else { }}
    <i class="iconfont text-danger icon-delete_fill"></i>
    {{#  } }}
</script>
{/block}
{block name="script"}
<script>
layui.use('yznTable', function() {
    var table = layui.yznTable;

    var init = {
        table_elem: '#currentTable',
        add_url: "{:url('add')}",
        modify_url:'{:url("multi")}',
    };

    table.render({
        init: init,
        id: 'currentTable',
        elem: '#currentTable',
        toolbar: ['refresh',
            [{
                text: '添加',
                url: init.add_url,
                method: 'open',
                class: 'layui-btn layui-btn-normal layui-btn-sm',
                icon: 'iconfont icon-add',
                extend: 'data-width="900" data-height="600"',
            }]
        ],
        url: '{:url("index")}',
        search: false,
        cols: [
            [
                { field: 'id', width: 80, title: 'ID' },
                { field: 'listorder', width: 100, title: '排序', edit: 'text' },
                { field: 'name', align: "left", title: '会员组名' },
                { field: 'issystem', width: 100, title: '系统组', align: "center", templet: '#issystem' },
                { field: '_count', width: 100, align: "center", title: '会员数' },
                { field: 'starnum', width: 100, align: "center", title: '星星数' },
                { field: 'point', width: 100, align: "center", title: '积分小于' },
                { field: 'allowattachment', width: 120, align: "center", title: '允许上传附件', templet: '#allowattachment' },
                { field: 'allowpost', width: 120, title: '投稿权限', align: "center", templet: '#allowpost' },
                { field: 'allowpostverify', width: 120, title: '投稿不需审核', align: "center", templet: '#allowpostverify' },
                { field: 'allowsearch', width: 120, title: '搜索权限', align: "center", templet: '#allowsearch' },
                { field: 'allowupgrade', width: 120, title: '自助升级', align: "center", templet: '#allowupgrade' },
                { field: 'allowsendmessage', width: 120, title: '发短消息', align: "center", templet: '#allowsendmessage' },
                { fixed: 'right', width: 120, title: '操作', templet: '#barTool', align: "center" }
            ]
        ]
    });
});
</script>
{/block}