<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<tiles:insertDefinition name="defaultTemplate">
<tiles:putAttribute name="body">
<%@page trimDirectiveWhitespaces="true" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Authorization records</title>
    </head>
    <body>
      <td bgcolor=navy blue>
   		<font size=4 color=white>
     	<a href="secureSearch">Main Search Menu</a>
   		</font>
 	  </td>
    	<div align="center">
	        <h1><FONT SIZE=5>List of User Authorization records</FONT></h1>
	        <table border="1" size=600>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>User Id</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Domain</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Status</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Download</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Edit</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Delete</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Admin</FONT></th>
	        	
				<c:forEach var="userAuthorization" items="${listUserAuthorization}" varStatus="status">
	        	<tr>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.userId}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.domain}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.status}</FONT>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.download}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.edit}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.delete}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${userAuthorization.admin}</FONT></td>
					<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>

						<a href="newUserAuthorization?id=${userAuthorization.userId}">Add</a>
						<a href="editUserAuthorization?id=${userAuthorization.userId}">Edit</a>
					    <a href="deleteUserAuthorization?id=${userAuthorization.userId}">Delete</a>
					    
						&nbsp;&nbsp;&nbsp;&nbsp;

						</FONT>
					</td>
	        	</tr>
				</c:forEach>	        	
			</table>
    	</div>
</a>
</body>
</html>
</tiles:putAttribute>
</tiles:insertDefinition>