openvpn页面调整;后台默认时间设置

This commit is contained in:
zhanghongqing
2018-06-13 13:51:21 +08:00
parent b3ac02c277
commit 84b36b08e3
4 changed files with 158 additions and 106 deletions

View File

@@ -5,21 +5,6 @@
<script type="text/javascript">
$(document).ready(function(){
//搜索框提示语初始化
if("${log.clientIp}"){
$("#intype").val("${log.clientIp}");
}else if("${log.serverIp}"){
$("#intype").val("${log.serverIp}");
}else if("${log.cljIp}"){
$("#intype").val("${log.cljIp}");
}else if("${log.entranceId}"){
$("#intype").val("${log.entranceId}");
} else{
$("#intype").attr("placeholder","<spring:message code='input'/>"+$("#seltype").find("option:selected").text());
}
$("#seltype").change(function(){
$("#intype").attr("placeholder","<spring:message code='input'/>"+$(this).find("option:selected").text());
});
//筛选功能
filterActionInit();
//reset
@@ -30,7 +15,9 @@ $(document).ready(function(){
$(this).find("option:first").attr("selected",true);
});
$(".Wdate").attr("value",'');
$("#intype").attr("placeholder","<spring:message code='input'/>"+$("#seltype").find("option:selected").text());
$(':input','#searchForm')
.not(':button,:submit,:reset,:hidden')
.attr("value",'');
$("#searchForm")[0].reset();
});
@@ -46,7 +33,6 @@ $(document).ready(function(){
}
</script>
</head>
<body>
<div class="page-content">
@@ -72,6 +58,27 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12">
<div class="pull-left">
<div class="input-group">
<div class="input-group-btn">
<span class="selectpicker form-control" ><spring:message code="entrance_id"/></span>
</div>
<input id="entranceId" name="entranceId" class="form-control input-small" type="text" value="${log.entranceId}"/>
</div>
</div>
<div class="pull-left">
<div class="input-group">
<div class="input-group-btn">
<form:select path="direction" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="direct"/></form:option>
<c:forEach items="${fns:getDictList('DIRECTION')}" var="dict">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option>
</c:forEach>
</form:select>
</div>
</div>
</div>
<div class="pull-left">
<div class="input-group">
<div class="input-group-btn">
@@ -84,32 +91,14 @@ $(document).ready(function(){
</form:select>
</div></div>
</div>
<div class="pull-left">
<div class="pull-left">
<div class="input-group">
<div class="input-group-btn">
<form:select path="direction" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="direct"/></form:option>
<c:forEach items="${fns:getDictList('DIRECTION')}" var="dict">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option>
</c:forEach>
</form:select>
</div>
</div>
</div>
<div class="pull-left">
<div class="input-group">
<div class="input-group-btn">
<form:select path="seltype" class="selectpicker select2 input-small" >
<form:option value="clientIp"><spring:message code="clientip"></spring:message></form:option>
<form:option value="serverIp"><spring:message code="serverip"></spring:message></form:option>
<form:option value="cljIp"><spring:message code="clj_ip"></spring:message></form:option>
<form:option value="entranceId"><spring:message code="entrance_id"></spring:message></form:option>
</form:select>
</div>
<input id="intype" class="form-control input-medium" type="text" value="">
</div>
</div>
<div class="input-group-btn">
<span class="selectpicker form-control" ><spring:message code="clj_ip"/></span>
</div>
<input id="cljIp" name="cljIp" class="form-control input-small" type="text" value="${log.cljIp}"/>
</div>
</div>
<div class="pull-left">
<button type="button" class="btn blue" onClick="page()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
@@ -124,25 +113,36 @@ $(document).ready(function(){
</a>
</div>
</div>
<!-- /搜索内容与操作按钮栏-->
<!-- 筛选搜索内容栏默认隐藏-->
<div class="col-md-12 filter-action-select-panle hide" >
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label class="form-label"><spring:message code="begin_date"/></label>
<input name="searchFoundStartTime" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
value="<fmt:formatDate value="${log.searchFoundStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
<input id="searchFoundStartTime" name="searchFoundStartTime" type="text" readonly="readonly" class="form-control Wdate"
value="${log.searchFoundStartTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label><spring:message code="end_date"/></label>
<input name="searchFoundEndTime" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
value="<fmt:formatDate value="${log.searchFoundEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
<input id="searchFoundEndTime" name="searchFoundEndTime" type="text" readonly="readonly" class="form-control Wdate"
value="${log.searchFoundEndTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label><spring:message code="clientip"/></label>
<input id="clientIp" name="clientIp" class="form-control input-hide-bg" type="text" value="${log.clientIp}"/>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label><spring:message code="serverip"/></label>
<input id="serverIp" name="serverIp" class="form-control input-hide-bg" type="text" value="${log.serverIp}"/>
</div>
</div>
</div>
@@ -157,17 +157,17 @@ $(document).ready(function(){
<thead>
<tr>
<th><spring:message code='cfg_id'/></th>
<th class="sort-column r.foundTime"><spring:message code='found_time'/></th>
<th class="sort-column r.recvTime"><spring:message code='recv_time'/></th>
<th><spring:message code='entrance_id'/></th>
<th><spring:message code='direct'/></th>
<th><spring:message code='found_time'/></th>
<th><spring:message code='recv_time'/></th>
<th><spring:message code='protocol_type'/></th>
<th><spring:message code='addr_type'/></th>
<th><spring:message code='serverip'/></th>
<th><spring:message code='clientip'/></th>
<th><spring:message code='serverport'/></th>
<th><spring:message code='clientport'/></th>
<th><spring:message code='entrance_id'/></th>
<th><spring:message code='deviceid'/></th>
<th><spring:message code='direct'/></th>
<th><spring:message code='stream_type'/></th>
<th><spring:message code='clj_ip'/></th>
<th><spring:message code='nest_addr_list'/></th>
@@ -181,7 +181,13 @@ $(document).ready(function(){
<tbody>
<c:forEach items="${page.list}" var="log" varStatus="status" step="1">
<tr>
<td>${log.cfgId}</td>
<td>${log.cfgId}</td>
<td>${log.entranceId}</td>
<td>
<c:forEach items="${fns:getDictList('LOG_DIRECTION')}" var="dic">
<c:if test="${log.direction==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<td>${log.foundTime}</td>
<td>${log.recvTime}</td>
<td>
@@ -198,13 +204,7 @@ $(document).ready(function(){
<td>${log.clientIp}</td>
<td>${log.serverPort}</td>
<td>${log.clientPort}</td>
<td>${log.entranceId}</td>
<td>${log.deviceId}</td>
<td>
<c:forEach items="${fns:getDictList('LOG_DIRECTION')}" var="dic">
<c:if test="${log.direction==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<td>
<c:forEach items="${fns:getDictList('LOG_STREAM_TYPE')}" var="dic">
<c:if test="${log.streamType==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
@@ -218,7 +218,7 @@ $(document).ready(function(){
<td>${log.hmac}</td>
<td>
<c:if test="${log.tunnelType==1}">TCP</c:if>
<c:if test="${log.tunnelType==2}">UDP"</c:if>
<c:if test="${log.tunnelType==2}">UDP</c:if>
</td>
</tr>
</c:forEach>