<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ include file="/WEB-INF/includeTemplate.inc" %>
<%@ taglib prefix="tiles" uri="/WEB-INF/tld/tiles-jsp.tld" %>

<html>
<head>
	
	<%@include file="/WEB-INF/includeTemplate.inc"%>
	<title><spring:message code="app.title" /></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	
	<%@include file="/WEB-INF/layouts/includes/rup.styles.inc"%>
	<!--%@include file="/WEB-INF/layouts/includes/rup.styles.min.css"%-->
	<%@include file="/WEB-INF/layouts/includes/aa20b.styles.inc"%>
	<%@page import="com.ejie.aa20b.ldap.*" %>

</head>	
<% 			
		boolean usuarioLogueadoEsAdministrador= false;
		boolean usuarioLogueadoEsRespServicio= false;
		boolean usuarioLogueadoEsRespCorrectivos= false;
		boolean usuarioLogueadoEsRespTaller= false;
		boolean usuarioLogueadoEsTecnico= false;
		
		usuarioLogueadoEsAdministrador = new SecurityHelpperXLNets().usuarioLogueadoEsAdministrador();
		usuarioLogueadoEsRespServicio = new SecurityHelpperXLNets().usuarioLogueadoEsRespServicio();
		usuarioLogueadoEsRespCorrectivos = new SecurityHelpperXLNets().usuarioLogueadoEsRespCorrectivos();
		usuarioLogueadoEsRespTaller = new SecurityHelpperXLNets().usuarioLogueadoEsRespTaller();
		usuarioLogueadoEsTecnico = new SecurityHelpperXLNets().usuarioLogueadoEsTecnico();
		
%>
<body>
	<div class="contenedor">	
		<!-- Cabecera -->
		<tiles:insertAttribute name="header" />
		
		<!-- Idioma -->
		<tiles:insertAttribute name="language" />
		
		<!-- Menu -->
		<% if (usuarioLogueadoEsAdministrador) { %>
			<tiles:insertAttribute name="menuAdministrador" />
		<% } else if (usuarioLogueadoEsRespServicio) { %>
			<tiles:insertAttribute name="menuRespServicio" />
		<% } else if (usuarioLogueadoEsRespCorrectivos) { %>
			<tiles:insertAttribute name="menuRespCorrectivos" />
		<% } else if (usuarioLogueadoEsRespTaller) { %>
			<tiles:insertAttribute name="menuRespTaller" />
		<% } else if (usuarioLogueadoEsTecnico) { %>
			<tiles:insertAttribute name="menuTecnicoMant" />
		<% } else { %>
			<tiles:insertAttribute name="menu" />
		<% } %>
			
		<div id="contentMV" style="margin-left: 1em;">
			<!-- Migas de pan -->
			<tiles:insertAttribute name="breadCrumb" />
			
			<!-- Contenidos -->
			<tiles:insertAttribute name="content" />
		</div>
		
		<!-- Pie -->
		<tiles:insertAttribute name="footer" />
		
		<!-- Includes JS -->
		<tiles:insertAttribute name="base-includes" />
		<tiles:insertAttribute name="includes" />
	</div>
</body>
</html>