<%@ 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}/bizRoute/">路由管理列表</a></li>
		<shiro:hasPermission name="bizRoute:bizRouteList:edit"><li><a href="${ctx}/bizRoute/form">路由管理添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="bizRoute" action="${ctx}/bizRoute/list" 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>路由名称：</label>
				<form:input path="routeName" 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>路由名称</th>
				<th>路由状态</th>
				<th>上下文路径</th>
				<th>创建时间</th>
				<shiro:hasPermission name="bizRoute:bizRouteList:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bizRoute">
			<tr>
				<td><a href="${ctx}/bizRoute/form?id=${bizRoute.id}">
						${bizRoute.routeId}
				</a></td>
				<td>
					${bizRoute.routeName}
				</td>
				<td>
					${fns:getDictLabel(bizRoute.routeStatus, 'route_status', '')}
				</td>
				<td>
					${bizRoute.contextPath}
				</td>
				<td>
					<fmt:formatDate value="${bizRoute.createdAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<shiro:hasPermission name="bizRoute:bizRouteList:edit"><td>
    				<a href="${ctx}/bizRoute/form?id=${bizRoute.id}">修改</a>
					<a href="${ctx}/bizRoute/delete?id=${bizRoute.id}" onclick="return confirmx('确认要删除该路由管理吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>