<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>复核标准管理</title>
    <meta name="decorator" content="default"/>
    <%@include file="/webpage/include/treetable.jsp" %>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#treeTable").treeTable({expandLevel : 3},{ expandable: true });
        });
    </script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
	<div class="ibox">
    <div class="ibox-content">
	<sys:message content="${message}"/>
	
	<!-- 表格 -->
	<table id="treeTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
		<thead>
			<tr>
				<th  class="sort-column standardDetail" width="70%">复核内容</th>
				<c:if test="${type == 4}">
					<th  class="sort-column maxDeduct" width="15%">最多扣分</th>
					<th  class="sort-column standardDetail" width="15%">审核记录</th>
				</c:if>
				<c:if test="${type != 4}">
					<th  class="sort-column standardDetail" width="30%">审核记录</th>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${list}" var="workReviewAudit">
			<tr id="${workReviewAudit.id}" pid="${workReviewAudit.parent.id}">
				<td>
						${workReviewAudit.standardDetail}
				</td>
				<c:if test="${type == 4}">
					<td>
						${workReviewAudit.maxDeduct}
					</td>
				</c:if>
				<c:choose>
					<c:when test="${type == 4}">
				<td>
					扣${workReviewAudit.deduct}分
				</td>
					</c:when>
					<c:otherwise>
						<td>
							${workReviewAudit.remarks}
						</td>
					</c:otherwise>
				</c:choose>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	
		<!-- 分页代码 -->
	<%--<table:page page="${page}"></table:page>--%>
	<br/>
	<br/>
	</div>
	</div>
</div>
</body>
</html>