<%@ 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() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/callLog/">日志记录列表</a></li>
		<li class="active"><a href="${ctx}/callLog/form?id=${callLog.id}">日志记录查看</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="callLog" action="${ctx}/gateway/callLog/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
		<div class="control-group">
			<label class="control-label">用户ID：</label>
			<div class="controls">
					${callLog.userId}
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">路由ID：</label>
			<div class="controls">
				${callLog.routeId}
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">应用ID：</label>
			<div class="controls">
				${callLog.appId}
				<%--<span class="help-inline"><font color="red">*</font> </span>--%>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">处理结果：</label>
			<div class="controls">
					${callLog.callResult}
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调用时间：</label>
			<div class="controls">
				<fmt:formatDate value="${callLog.callTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">创建时间：</label>
			<div class="controls">
				<fmt:formatDate value="${callLog.createdAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">创建人：</label>
			<div class="controls">
					${callLog.createdBy}
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
					${callLog.remark}
			</div>
		</div>
	</form:form>
</body>
</html>