chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    {yun:}include file="$lietoustyle/public.htm"{/yun} 
    <script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/member_public.js?v={yun:}$config.cachecode{/yun}"></script>
    <link rel="stylesheet" href="{yun:}$lietou_style{/yun}/css/jianli.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
</head>
 
<body>
    {yun:}include file="$lietoustyle/header.htm"{/yun}
    
    <!--内容部分content-->
    <div class="m_content">
        <div class="wrap">
            {yun:}include file="$lietoustyle/left.htm"{/yun}
            <div class="m_inner_youb fr">
                <div class="lt_m_tit"><span class="lt_m_tit_s">系统消息</span></div>
                
                <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                <form action="index.php?c=sysnews&act=del" target="supportiframe" method="post" id='myform' class='layui-form'>
                    <div class="lt_m_box">
                        <div class="lt_m_table">
                            <table>
                                <tbody>
                                {yun:}if !empty($rows){/yun}
                                    <tr> 
                                        <th width="15">&nbsp;</th >
                                        <th scope="col" ><span>发件人</span></th>
                                        <th scope="col"><span>内容</span></th>
                                        <th scope="col" ><span>时间</span></th>
                                        <th scope="col">操作</th>
                                    </tr>
                                {yun:}/if{/yun}
      
                                {yun:}foreach item=all from=$rows{/yun}
                                    <tr> 
                                        <td width="15">
                                            <input type="checkbox" name="delid[]" value="{yun:}$all.id{/yun}" class="" lay-skin="primary">
                                        </td>
                                        <td scope="col" ><span class="sysnews">管理员</span></td>
                                        <td scope="col" {yun:}if $all.remind_status==0{/yun}style="font-weight:bold"{yun:}/if{/yun}>{yun:}$all.content{/yun}</td>
                                        <td scope="col" >{yun:}$all.ctime|date_format:'%Y-%m-%d %H:%M:%S'{/yun}</td>
                                        <td scope="col" align="center">
                                            <a href="javascript:void(0)" onclick="showsys('{yun:}$all.content_all{/yun}','{yun:}$all.id{/yun}','{yun:}$all.ctime|date_format:'%Y-%m-%d %H:%M:%S'{/yun}'); "> 查看</a> 
                                            <span class="del_span">|</span>
                                            <a href="javascript:void(0)" onclick="layer_del('确定要删除?', 'index.php?c=sysnews&act=del&id={yun:}$all.id{/yun}');">删除</a> 
                                        </td>
                                    </tr>
                                {yun:}foreachelse{/yun}
                                    <tr>
                                        <td colspan="6" class="lt_m_table_end">    
                                            <div class="member_no_content"> 暂无系统消息!</div>
                                        </td>
                                    </tr>
                                {yun:}/foreach{/yun}
         
                                {yun:}if !empty($rows){/yun}
                                    <tr>
                                        <td colspan="6" class="lt_m_table_end">  
                                            <div class="m_browse_del"> 
                                                <div style=" padding-left:10px;">
                                                    <input id='checkAll'  type="checkbox" lay-skin="primary"  lay-filter="allLt" class="m_del_che">全选
                                                    <a href="javascript:void(0);" onclick="return really('delid[]');">批量删除</a>
                                                    <a href="javascript:void(0);" onclick="return isReaded('delid[]');">批量阅读</a>
                                                    <a href="javascript:void(0);" onclick="return readAll();">全部标记已读</a>
                                                </div>  
                                            </div>
                                            <div class="pages">{yun:}$pagenav{/yun}</div>
                                        </td>
                                    </tr>
                                {yun:}/if{/yun}
                                </tbody>
                            </table>
                        
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div id="show" style="display:none;width:100%;">
            <div class="sysnews_tcbox">
                <div class="sysnews_tcbox_list"><i class="sysnews_tcbox_list_s">时间:</i><span id="systime"></span></div>
                <div class="sysnews_tcbox_list">
                    <i class="sysnews_tcbox_list_s">内容:</i>
                    <div class="sysnews_tcbox_list_p"><span id="sysshow"></span></div>
                </div>
            </div>
            <div class="sys_bot" style="padding-bottom:20px;">
                <a class="sys_bot_del" href="javascript:void(0)" id="delsys"> 删除</a>
                <a class="sys_bot_qx" href="javascript:void(0)" onclick="window.location.reload();" class="cblue">返回</a>
            </div>
        </div>
    </div>
    <!--内容结束--> 
    <script>
        layui.use(['form','layer', 'laydate'], function(){
            var $ = layui.$,
                form = layui.form,
                laydate = layui.laydate,
                layer = layui.layer;
            
            form.on('checkbox(allLt)', function (data) {
                    $("input[name='delid[]']").each(function () {
                    this.checked = data.elem.checked;
                });
                form.render('checkbox');
              });
          });
    </script>
    {yun:}include file="$lietoustyle/footer.htm"{/yun}