This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/webapp/WEB-INF/views/sys/cfgOperationLogList.jsp
2018-12-29 13:30:02 +08:00

175 lines
8.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html>
<head>
<title>配置审计日志</title>
<script type="text/javascript">
function page(n, s) {
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<%-- <ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/sys/log/">日志列表</a></li>
</ul> --%>
<div class="page-content">
<h3 class="page-title">
<spring:message code="cfg_operation_log"></spring:message>
</h3>
<h5 class="page-header"></h5>
<div class="row">
<div class="col-md-12">
<div class="portlet">
<div class="portlet-body">
<div class="row">
<form:form id="searchForm" action="${ctx}/sys/log/cfgOperationLogList" method="post"
class="breadcrumb form-search" style="background-color:#fff">
<input id="pageNo" name="pageNo" type="hidden"
value="${page.pageNo}" />
<input id="pageSize" name="pageSize" type="hidden"
value="${page.pageSize}" />
<div class="col-md-12 ">
<div class="pull-left">
<label><spring:message code="function_name" /></label>
<select name="functionName" class="selectpicker select2 form-control" data-live-search="true" data-live-search-placeholder="search">
<option value=""><spring:message code="select"></spring:message></option>
<c:forEach items="${fns:getDictList('SYS_SERVICE_FUNCTION')}" var="dict">
<option value="${dict.itemValue }" <c:if test="${sysLog.functionName eq dict.itemValue}">selected</c:if>>
<spring:message code="${dict.itemValue }"></spring:message>
</option>
</c:forEach>
</select>
</div>
<div class="pull-left">
<label><spring:message code="user" /></label> <input
id="createBy" name="createBy" type="text" maxlength="50"
class="form-control" value="${sysLog.createBy}" />
</div>
<div class="pull-left">
<label><spring:message code="operation" /></label>
<select name="operation" class="selectpicker select2 form-control" data-live-search="true" data-live-search-placeholder="search">
<option value=""><spring:message code="select"></spring:message></option>
<option value="query" <c:if test="${sysLog.operation eq 'query'}">selected</c:if>><spring:message code="query"></spring:message></option>
<option value="add" <c:if test="${sysLog.operation eq 'add'}">selected</c:if>><spring:message code="add"></spring:message></option>
<option value="edit" <c:if test="${sysLog.operation eq 'edit'}">selected</c:if>><spring:message code="edit"></spring:message></option>
<option value="delete" <c:if test="${sysLog.operation eq 'delete'}">selected</c:if>><spring:message code="delete"></spring:message></option>
<option value="examine" <c:if test="${sysLog.operation eq 'examine'}">selected</c:if>><spring:message code="examine"></spring:message></option>
</select>
</div>
<div class="pull-left">
<label><spring:message code="log_date" /></label> <input
id="beginDate" name="beginDate" type="text"
readonly="readonly" maxlength="20"
class="form-control Wdate"
value="<fmt:formatDate value="${sysLog.beginDate}" pattern="yyyy-MM-dd"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,maxDate:'#F{$dp.$D(\'endDate\')}'});" />
</div>
<div class="pull-left">
<label><spring:message code="" />&nbsp;</label> <input
id="endDate" name="endDate" type="text" readonly="readonly"
maxlength="20" class="form-control Wdate"
value="<fmt:formatDate value="${sysLog.endDate}" pattern="yyyy-MM-dd"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,minDate:'#F{$dp.$D(\'beginDate\')}',maxDate:'%y-%M-%d'});" />
</div>
<div class="pull-left">
<label>&nbsp;</label>
<%-- <label for="exception"><input id="exception"
name="exception" type="checkbox"
${sysLog.exception eq '1'?' checked':''} value="1" /><spring:message code="log_exception" /></label> --%>
<button type="submit" class="btn blue form-control"><i class="fa fa-search"></i> <spring:message code="search" /></button>
</div>
</div>
</form:form>
</div>
<sys:message content="${message}" type="${messageType }"/>
<div class="">
<br/>
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
<thead>
<tr>
<th><spring:message code="function_name" /></th>
<th><spring:message code="opearation" /></th>
<th><spring:message code="log_submission" /></th>
<th><spring:message code="log_ip" /></th>
<th><spring:message code="log_user" /></th>
<th><spring:message code="config content" /></th>
<th><spring:message code="operate_time" /></th>
</tr>
</thead>
<tbody>
<%
request.setAttribute("strEnter", "\n");
request.setAttribute("strTab", "\t");
%>
<c:forEach items="${page.list}" var="log">
<tr>
<td><spring:message code="${log.functionName}"></spring:message></td>
<td>
<c:choose>
<c:when test="${log.auditState eq '0'}">
<c:set var="operation"><spring:message code="${log.operation}"></spring:message>-<spring:message code="created"></spring:message></c:set>
</c:when>
<c:when test="${log.auditState eq '1'}">
<c:set var="operation"><spring:message code="${log.operation}"></spring:message>-<spring:message code="approved"></spring:message></c:set>
</c:when>
<c:when test="${log.auditState eq '2'}">
<c:set var="operation"><spring:message code="${log.operation}"></spring:message>-<spring:message code="unapproved"></spring:message></c:set>
</c:when>
<c:when test="${log.auditState eq '3'}">
<c:set var="operation"><spring:message code="${log.operation}"></spring:message>-<spring:message code="cancel_approved"/></c:set>
</c:when>
<c:otherwise>
<c:set var="operation"><spring:message code="${log.operation}"></spring:message></c:set>
</c:otherwise>
</c:choose>
${operation}
<%-- <strong><spring:message code="${log.operation}"></spring:message>
<c:if test="${not empty log.auditState }">
-
<c:choose>
<c:when test="${log.auditState eq '0'}"><spring:message code="created"></spring:message></c:when>
<c:when test="${log.auditState eq '1'}"><spring:message code="approved"></spring:message></c:when>
<c:when test="${log.auditState eq '2'}"><spring:message code="unapproved"></spring:message></c:when>
<c:when test="${log.auditState eq '3'}"><spring:message code="cancel_approved"/></c:when>
</c:choose>
</c:if>
</strong> --%>
</td>
<td>
${log.method}
</td>
<td>${log.remoteAddr}</td>
<td>${log.createBy}</td>
<td>
<a href="javascript:;" data-original-title="${log.params}"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fns:abbr(log.params,100)}</a></td>
<td><fmt:formatDate value="${log.createDate}"
type="both" /></td>
</tr>
<c:if test="${not empty log.exception}">
<tr>
<td colspan="8"
style="word-wrap: break-word; word-break: break-all;">
<%-- 用户代理: ${log.userAgent}<br/> --%> <%-- 提交参数: ${fns:escapeHtml(log.params)} <br/> --%>
<spring:message code="log_exception_info" /><br />
${fn:replace(fn:replace(fns:escapeHtml(log.exception), strEnter, '<br/>'), strTab, '&nbsp; &nbsp; ')}
</td>
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
<div class="page">${page}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>