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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet"
         type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <script type="text/javascript">
            function cktimesave() {
                var stime = $("#stime").val();
                var etime = $("#etime").val();
                if (stime && etime && toDate(stime) > toDate(etime)) {
                    layer.msg("结束时间必须大于开始时间!", 2, 8);
                    return false;
                }
            }
        </script>
        <title>后台管理</title>
    </head>
    <body class="body_ifm">
        <div class="infoboxp">
 
            <div class="tty-tishi_top">
            <div class="tabs_info">
                <ul>
                    <li {yun:}if $smarty.get.utype=="" {/yun}class="curr"{yun:}/if{/yun}> <a href="index.php?m=admin_loginlog">个人日志</a></li>
                    <li {yun:}if $smarty.get.utype=="2" {/yun}class="curr"{yun:}/if{/yun}> <a href="index.php?m=admin_loginlog&utype=2">企业日志</a></li>
                    <li {yun:}if $smarty.get.utype=="3" {/yun}class="curr"{yun:}/if{/yun}> <a href="index.php?m=admin_loginlog&utype=3">猎头日志</a></li>
                    <li {yun:}if $smarty.get.utype=="4" {/yun}class="curr"{yun:}/if{/yun}> <a href="index.php?m=admin_loginlog&utype=4">培训日志</a></li>
 
                </ul>
            </div>
            <div class="clear"></div>
            <div class="admin_new_search_box">
                <form action="index.php" name="myform" method="get" onSubmit="return cktimesave()">
                    <input name="utype" value="{yun:}$smarty.get.utype{/yun}" type="hidden" />
                    <input name="m" value="admin_loginlog" type="hidden" />
 
                    <div class="admin_new_search_name">搜索类型:</div>
                    <div class="admin_Filter_text formselect" did="dtype">
                        <input type="button" {yun:}if $smarty.get.type=='1' ||$smarty.get.type=='' {/yun} value="用户名" {yun:}elseif $smarty.get.type=='2' {/yun} value="内容"{yun:}elseif $smarty.get.type=='3' {/yun} value="用户ID"{yun:}/if{/yun}
                         class="admin_Filter_but" id="btype">
                        <input type="hidden" name="type" id="type" {yun:}if $smarty.get.type=='' ||$smarty.get.type=='1' {/yun} value="1" {yun:}elseif $smarty.get.type=='2' {/yun} value="2" {yun:}elseif $smarty.get.type=='3' {/yun} value="3" {yun:}/if{/yun}/>
                        <div class="admin_Filter_text_box" style="display:none" id="dtype">
 
                            <ul>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('1','type','用户名')">用户名</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('2','type','内容')">内容</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('3','type','用户ID')">用户ID</a>
                                </li>
 
                            </ul>
                        </div>
                    </div>
                    <input type="text"  placeholder="请输入你要搜索的关键字" name='keyword' class="admin_Filter_search" value="{yun:}$smarty.get.keyword{/yun}">
                    <div class="layui-input-inline" style="float: left;">
                        <span class="admin_new_search_name" >时间段:</span>
                        <input class="admin_Filter_search t_w200" type="text" autocomplete="off" id="time" value="{yun:}$smarty.get.time{/yun}" name="time" placeholder="选择时段"/>
                        <i class="t_tc_icon_time"></i>
                    </div>
                    <input class="admin_Filter_bth" type="submit" name="qysearch" value="搜索" />
 
                
 
                </form>
                {yun:}include file="admin/admin_search.htm"{/yun}
            </div>
            <div class="clear"></div>
            </div>
 
            <div class="tty_table-bom">
            <div class="admin_statistics">
                <span class="tty_sjtj_color">数据统计:</span>
                <em class="admin_statistics_s">总数:<a href="index.php?m=admin_loginlog" class="ajaxloginlogall">0</a></em>                
                搜索结果:<span>{yun:}$total{/yun}</span>;
            </div>
 
            <div class="clear"></div>
            <div class="table-list">
                <div class="admin_table_border">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form action="index.php?m=admin_loginlog" name="myform" method="get" target="supportiframe" id='myform'>
 
                        <input name="m" value="admin_loginlog" type="hidden" />
                        <input name="c" value="dellog" type="hidden" />
 
                        <table width="100%">
                            <thead>
                                <tr class="admin_table_top">
                                    <th style="width:50px;"><label for="chkall">
                                            <input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' />
                                        </label></th>
                                    {yun:}if $smarty.get.t=="id" && $smarty.get.order=="asc"{/yun}
                                    <th style="width:100px;"><a href="{yun:}searchurl order=desc t=id m=admin_loginlog untype='order,t'{/yun}">编号<img
                                             src="images/sanj.jpg" /></a></th>
                                    {yun:}else{/yun}
                                    <th style="width:100px;"><a href="{yun:}searchurl order=asc t=id m=admin_loginlog  untype='order,t'{/yun}">编号<img
                                             src="images/sanj2.jpg" /></a></th>
                                    {yun:}/if{/yun}
                                    <th style="width:170px;">用户ID</th>
                                    <th style="width:170px;">用户名</th>
                                    
                                    {yun:}if $smarty.get.utype=="" {/yun}
                                        <th style="width:170px;">个人姓名</th>
                                    {yun:}elseif $smarty.get.utype=="2" {/yun}
                                        <th style="width:170px;">企业名称</th>
                                    {yun:}elseif $smarty.get.utype=="3" {/yun}
                                        <th style="width:170px;">猎头名称</th>
                                    {yun:}elseif $smarty.get.utype=="4" {/yun}
                                        <th style="width:170px;">培训机构名称</th>
                                    {yun:}/if{/yun}
                                    
                                    <th style="width:170px;">内容</th>
                                    <th style="width:170px;">IP</th>
                                    <th style="width:170px;">端口</th>
 
                                    {yun:}if $smarty.get.t=="ctime" && $smarty.get.order=="asc"{/yun}
                                    <th style="width:170px;"><a href="{yun:}searchurl order=desc t=ctime m=admin_loginlog  untype='order,t'{/yun}">时间<img
                                             src="images/sanj.jpg" /></a></th>
                                    {yun:}else{/yun}
                                    <th style="width:170px;"><a href="{yun:}searchurl order=asc t=ctime m=admin_loginlog   untype='order,t'{/yun}">时间<img
                                             src="images/sanj2.jpg" /></a></th>
                                    {yun:}/if{/yun}
                                    <th style="width:170px;" class="admin_table_th_bg">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {yun:}foreach item=v from=$rows{/yun}
                                <tr align="center" id="list{yun:}$v.id{/yun}">
                                    <td><input type="checkbox" value="{yun:}$v.id{/yun}" class="check_all" name='del[]' onclick='unselectall()'
                                         rel="del_chk" /></td>
                                    <td>{yun:}$v.id{/yun}</td>
                                    <td>{yun:}$v.uid{/yun}</td>
                                    <td>{yun:}$v.username{/yun}</td>
                                    
                                    {yun:}if $smarty.get.utype=="" {/yun}
                                    <td>{yun:}$v.rname{/yun}</td>
                                    {yun:}elseif $smarty.get.utype=="2" {/yun}
                                    <td>{yun:}$v.comname{/yun}</td>
                                    {yun:}elseif $smarty.get.utype=="3" {/yun}
                                    <td>{yun:}$v.ltname{/yun}</td>
                                    {yun:}elseif $smarty.get.utype=="4" {/yun}
                                    <td>{yun:}$v.pxname{/yun}</td>
                                    {yun:}/if{/yun}
                                    
                                    <td>{yun:}$v.content{/yun}</td>
                                    <td>{yun:}$v.ip{/yun}</td>
                                    <td>{yun:}$v.remoteport{/yun}</td>
 
                                    <td class="td">{yun:}$v.ctime|date_format:"%Y-%m-%d %H:%M:%S"{/yun}</td>
                                    <td><a href="javascript:void(0)" onClick="layer_del('确定要删除?', 'index.php?m=admin_loginlog&c=dellog&del={yun:}$v.id{/yun}');"
                                         class="admin_new_c_bth admin_new_c_bth_sc">删除</a></td>
                                </tr>
                                {yun:}/foreach{/yun}
                                <tr>
                                    <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)'/></td>
                                    <td colspan="9">
                                        <label for="chkAll2">全选</label>&nbsp;
                                        <input class="admin_button" type="button" name="delsub" value="删除所选" onclick="return really('del[]')" />
                                        {yun:}if $smarty.get.utype=="" {/yun}
                                        <input class="admin_submit8" type="button" value="一键删除" onClick="layer_del('确定要清空个人日志?', 'index.php?m=admin_loginlog&c=dellog&del=alluser');" />
                                        {yun:}elseif $smarty.get.utype=="2" {/yun}
                                        <input class="admin_submit8" type="button" value="一键删除" onClick="layer_del('确定要清空企业日志?', 'index.php?m=admin_loginlog&c=dellog&del=allcom');" />
                                        {yun:}elseif $smarty.get.utype=="3" {/yun}
                                        <input class="admin_submit8" type="button" value="一键删除" onClick="layer_del('确定要清空猎头日志?', 'index.php?m=admin_loginlog&c=dellog&del=alllt');" />
                                        {yun:}elseif $smarty.get.utype=="4" {/yun}
                                        <input class="admin_submit8" type="button" value="一键删除" onClick="layer_del('确定要清空培训日志?', 'index.php?m=admin_loginlog&c=dellog&del=alltrain');" />
                                        {yun:}/if{/yun}
                                    </td>
                                </tr>
                                {yun:}if $total > $config.sy_listnum {/yun}
                                <tr>
                                    {yun:}if $pagenum==1{/yun}
                                    <td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ,总共 {yun:}$total{/yun} 条</td>
                                    {yun:}else if $pagenum > 1 && $pagenum < $pages{/yun} <td colspan="3"> 从 {yun:}($pagenum-1) *
                                        $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ,总共 {yun:}$total{/yun} 条</td>
                                        {yun:}else if $pagenum == $pages{/yun}
                                        <td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ,总共
                                            {yun:}$total{/yun} 条</td>
                                        {yun:}/if{/yun}
                                        <td colspan="7" class="digg">{yun:}$pagenav{/yun}</td>
                                </tr>
                                {yun:}/if{/yun}
                            </tbody>
                        </table>
                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                    </form>
                </div>
            </div>
            </div>
        </div>
        <script>
            layui.use(['laydate', 'form'], function() {
                var laydate = layui.laydate,
                    form = layui.form,
                    $ = layui.$;
                laydate.render({
                    elem: '#time',
                    range: '~'
                });
            });
            $(document).ready(function(){
 
                $.get("index.php?m=admin_loginlog&c=loginlogNum&usertype={yun:}if $smarty.get.utype{/yun}{yun:}$smarty.get.utype{/yun}{yun:}else{/yun}1{yun:}/if{/yun}", function(data) {
                    console.log(data);
                    if(data){
                        $('.ajaxloginlogall').html(data);
                    }
                });
            });
        </script>
    </body>
</html>