<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>日志记录管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		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}/callLog/">日志记录列表</a></li>
		<%--<shiro:hasPermission name="gateway:callLog:edit"><li><a href="${ctx}/gateway/callLog/form">日志记录添加</a></li></shiro:hasPermission>--%>
	</ul>
	<form:form id="searchForm" modelAttribute="callLog" action="${ctx}/callLog/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>路由ID：</label>
				<form:input path="routeId" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>应用ID：</label>
				<form:input path="appId" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>调用时间：</label>
				<input name="callTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${callLog.callTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li><label>处理结果：</label>
				<form:input path="callResult" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>路由ID</th>
				<th>应用ID</th>
				<th>用户ID</th>
				<th>调用时间</th>
				<th>处理结果</th>
				<%--<th>备注</th>--%>
				<th>创建时间</th>
				<%--<th>创建人</th>--%>
				<%--<th>删除时间</th>
				<th>删除人</th>--%>
				<%--<shiro:hasPermission name="gateway:callLog:edit"><th>操作</th></shiro:hasPermission>--%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="callLog">
			<tr>
				<td><a href="${ctx}/callLog/form?id=${callLog.id}">
					${callLog.routeId}
				</a></td>
				<td>
					${callLog.appId}
				</td>
				<td>
					${callLog.userId}
				</td>
				<td>
					<fmt:formatDate value="${callLog.callTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${callLog.callResult}
				</td>
				<%--<td>
					${callLog.remark}
				</td>--%>
				<td>
					<fmt:formatDate value="${callLog.createdAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<%--<td>
					${callLog.createdBy}
				</td>--%>
				<%--<td>
					<fmt:formatDate value="${callLog.deletedAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${callLog.deletedBy}
				</td>--%>
				<%--<shiro:hasPermission name="gateway:callLog:edit"><td>
    				<a href="${ctx}/gateway/callLog/form?id=${callLog.id}">修改</a>
					<a href="${ctx}/gateway/callLog/delete?id=${callLog.id}" onclick="return confirmx('确认要删除该日志记录吗？', this.href)">删除</a>
				</td></shiro:hasPermission>--%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>