<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>Mason-UML - Users</title>
<style type="text/css">
@import "/WEB-CONTENT/CSS/layout.css";
</style>
</head>
<body>
	<div id="container">
		<%@include file="/WEB-CONTENT/header.jsp"%>
		<div id="content" class="rounded-corners">
			<h1>Overview Users</h1>
			<hr />
			<h2>All users</h2>
			<table border="1">
				<thead>
					<tr>
						<td>Id</td>
						<td>User</td>
						<td>Password</td>
						<td>Email</td>
						<td>Access</td>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${userList}" var="dbUser">
						<tr>
							<td><c:out value="${dbUser.id}"></c:out></td>
							<td><c:out value="${dbUser.username}"></c:out></td>
							<td>encrypted<!--<c:out value="${dbUser.password}"></c:out>--></td>
							<td><c:out value="${dbUser.email}"></c:out></td>
							<td><c:out value="${dbUser.access}"></c:out></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<%@include file="/WEB-CONTENT/footer.jsp"%>
	</div>
</body>
</html>