zj
2024-06-03 3603ecb207f7e712c635f19531e05fac4d19e53f
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
 
<%@ include file="include/pagetop.jsp"%>
 
<!DOCTYPE html>
<html>
 
<head>
<%@ include file="include/head.jsp"%>
</head>
 
<body>
 
    <%@ include file="include/loading.jsp"%>
<%--     <%@ include file="include/top.jsp"%> --%>
<%--     <%@ include file="include/menu_left.jsp"%> --%>
 
    <!-- //////////////////////////////////////////////////////////////////////////// -->
    <!-- START CONTENT -->
    <div class="ifr-dody">
 
        <!-- //////////////////////////////////////////////////////////////////////////// -->
        <!-- START CONTAINER -->
        <div class="ifr-con">
            <h3>操作日志</h3>
            
            <%@ include file="include/alert.jsp"%>
            
            <!-- //////////////////////////////////////////////////////////////////////////// -->
            <!-- START queryForm -->
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
 
                        <div class="panel-title">查询条件</div>
                        <div class="panel-body">
 
                            <form class="form-horizontal"
                                action="<%=basePath%>normal/adminLogAction!list.action"
                                method="post" id="queryForm">
                                
                                <input type="hidden" name="pageNo" id="pageNo" value="${pageNo}">
                                 
                                <div class="col-md-12 col-lg-3" >
                                    <fieldset>
                                        <div class="control-group">
                                            <div class="controls">
                                                <input id="name_para" name="name_para"
                                                    class="form-control " placeholder="用户名、UID(完整)" value="${name_para}" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                
                                <div class="col-md-12 col-lg-4">
                                    <fieldset>
                                        <div class="control-group">
                                            <div class="controls">
                                                <input id="log_para" name="log_para"
                                                    class="form-control " placeholder="日志" value="${log_para}" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                
                                <div class="col-md-12 col-lg-3">
                                    <fieldset>
                                        <div class="control-group">
                                            <div class="controls">
                                                <select id="rolename_para" name="rolename_para" class="form-control " >
                                                   <option value="">所有账号</option>
                                                   <option value="MEMBER" <c:if test="${rolename_para == 'MEMBER'}">selected="true"</c:if> >正式账号</option>
                                                   <option value="GUEST" <c:if test="${rolename_para == 'GUEST'}">selected="true"</c:if> >演示账号</option>
                                                   <option value="TEST" <c:if test="${rolename_para == 'TEST'}">selected="true"</c:if> >试用账号</option>
                                                </select>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                                                
                                <div class="col-md-12 col-lg-3" style="margin-top: 10px;">
                                    <fieldset>
                                        <div class="control-group">
                                            <div class="controls">
                                                <!-- <s:textfield id="operator" name="operator"
                                                    cssClass="form-control " placeholder="操作者" /> -->
                                                <input id="operator" name="operator"
                                                    class="form-control " placeholder="操作者" value="${operator}" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                                                
                                <div class="col-md-12 col-lg-3" style="margin-top: 10px;">
                                    <fieldset>
                                        <div class="control-group">
                                            <div class="controls">
                                                <!-- <s:select id="category" cssClass="form-control " headerValue="分类"  headerKey=""
                                                    name="category" list="category_map"
                                                    listKey="key" listValue="value" value="category" /> -->
                                                    <select id="category" name="category" class="form-control " >
                                                        <option value="">分类</option>
                                                        <c:forEach items="${category_map}" var="item">
                                                            <option value="${item.key}" <c:if test="${category == item.key}">selected="true"</c:if> >${item.value}</option>
                                                        </c:forEach>
                                                    </select>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                                
                                <div class="col-md-12 col-lg-2" style="margin-top: 10px;">
                                    <button type="submit" class="btn btn-light btn-block">查询</button>
                                </div>
 
                            </form>
 
                        </div>
 
                    </div>
                </div>
            </div>
            <!-- END queryForm -->
            <!-- //////////////////////////////////////////////////////////////////////////// -->
 
            <div class="row">
                <div class="col-md-12">
                    <!-- Start Panel -->
                    <div class="panel panel-default">
 
                        <div class="panel-title">查询结果</div>
                        <div class="panel-body">
                        
                            <table class="table table-bordered table-striped">
                            
                                <thead>
                                    <tr>
                                        <!--  <td>名称</td>-->
                                        <td>用户名</td>
                                        <td>UID</td>
                                        <td>账户类型</td>
                                        <td>日志</td>
                                        <td>操作者</td>
                                        <td width="150px">时间</td>
                                    </tr>
                                </thead>
                                
                                <tbody>
                                    <c:forEach items="${page.getElements()}" var="item" varStatus="stat">
                                        <tr>
                                            <td>
                                                <c:choose>
                                                    <c:when test="${item.username!='' && item.username!=null && fn:length(item.username) > 20}">
                                                        <a style="font-size: 10px;" href="#" onClick="getallname('${item.username}')">
                                                            ${fn:substring(item.username,0,6)}*****${fn:substring(item.username,fn:length(item.username) - 6, fn:length(item.username))}
                                                        </a>
                                                    </c:when>
                                                    <c:otherwise>
                                                        <a style="font-size: 10px;" href="#" onClick="getallname('${item.username}')">
                                                            ${item.username}
                                                        </a>
                                                    </c:otherwise>
                                                </c:choose>
                                            </td>
                                            <td>${item.usercode}</td>
                                            <td>
                                                <c:choose>
                                                    <c:when test="${item.rolename=='GUEST'}">
                                                        <span class="right label label-warning">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:when test="${item.rolename=='MEMBER'}">
                                                        <span class="right label label-success">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:when test="${item.rolename=='TEST'}">
                                                        <span class="right label label-default">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:when test="${item.rolename=='AGENT'}">
                                                        <span class="right label label-primary">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:when test="${item.rolename=='AGENTLOW'}">
                                                        <span class="right label label-primary">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:otherwise>
                                                         ${item.roleNameDesc}
                                                    </c:otherwise>    
                                                </c:choose>
                                            </td>
                                            <td>${item.log}</td>
                                            <td>${item.operator}</td>
                                            <!-- <td><s:date name="createTime" format="yyyy-MM-dd HH:mm " /></td> -->
                                            <%-- <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm " /></td> --%>
                                            <td>${item.createTime}</td>                                        
                                        </tr>
                                    </c:forEach>                                        
                                </tbody>
                                
                            </table>
                            
                            <%@ include file="include/page_simple.jsp"%>
                            
                            <!-- <nav> -->
                        </div>
 
                    </div>
                    <!-- End Panel -->
 
                </div>
            </div>
 
        </div>
        <!-- END CONTAINER -->
        <!-- //////////////////////////////////////////////////////////////////////////// -->
        
        <div class="form-group">
            <div class="col-sm-1">
                <!-- 模态框(Modal) -->
                <div class="modal fade" id="net_form" tabindex="-1"
                    role="dialog" aria-labelledby="myModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal"
                                        aria-hidden="true">&times;</button>
                                    <h4 class="modal-title" id="myModalLabel">完整用户名(完整钱包地址)</h4>
                            </div>
                            <div class="modal-header">
                                    <h4 class="modal-title" name="usernallName" id="usernallName"  readonly="true" style="display: inline-block;"></h4>
                                    <a href="" id="user_all_name_a" sytle="cursor:pointer;" target="_blank">在Etherscan上查看</a>
                            </div>
                                        
                            <div class="modal-body">
                                    <div class="">
                                    </div>
                            </div>
                                
                        </div>
                    </div>
                </div>
            </div>
        </div>    
 
        <%@ include file="include/footer.jsp"%>
 
    </div>
    <!-- End Content -->
    <!-- //////////////////////////////////////////////////////////////////////////// -->
 
    <%@ include file="include/js.jsp"%>
    
    <script type="text/javascript">
        $(document).ready(function() {
          $('#date_para').daterangepicker({
                timePicker : true, //显示时间
                timePicker24Hour : true, //时间制
                timePickerSeconds : true, //时间显示到秒
                format : 'YYYY-MM-DD HH:mm:ss',
                startDate : new Date(),
                endDate : new Date(),
                minDate : 1999 - 12 - 12,
                maxDate : 2050 - 12 - 30,
                timePicker : true,
                timePickerIncrement : 1,
        
                locale : {
                    applyLabel : "确认",
                    cancelLabel : "取消",
                    resetLabel : "重置",
        
                }
            }, function(start, end, label) {
            console.log(start.toISOString(), end.toISOString(), label);
          });
        });
        
        function getallname(name){
            $("#usernallName").html(name);
            $("#user_all_name_a").attr("href","https://etherscan.io/address/"+name);
            $("#net_form").modal("show");
        }
    </script>
    
</body>
 
</html>