<%@ include file="/includes.jsp" %>
<table class="moduleListArea" width="100%">
<tr>
<td>
<sec:authorize access="hasRole('SUMMARY')">
	<span class="moduleButton">
		<a href="../summary/index.form" onclick="return dataGuard()">
			<img width="16" height="16" src="../images/16x16/summary.png"/>
			<span style="vertical-align: middle"><spring:message code="emdt.module.summary" text="Summary" /></span>
		</a>
	</span>
</sec:authorize>
	<c:forEach var="module" items="${webapp.modules}">
		<sec:authorize access="hasRole('${module.moduleInfo.roles}')">
			&nbsp;|&nbsp;
			<span class="moduleButton">
				<a href="../<c:out value="${module.moduleInfo.name}"/>/<c:out value="${module.moduleInfo.mainPage}"/>">
					<img style="vertical-align: middle" width="16" height="16" src="../<c:out value="${module.moduleInfo.name}"/>/<c:out value="${module.moduleInfo.icon}"/>" alt="<c:out value="${module.moduleInfo.label}"/>"/>
					<span style="vertical-align: middle"><spring:message code="${module.moduleInfo.key}" text="${module.moduleInfo.label}" /></span>
				</a>
			</span>
		</sec:authorize>
	</c:forEach>
	&nbsp; &nbsp;
	<span class="moduleButton">
		<a href="../logout.form" onclick="return dataGuard()">
			<img width="16" height="16" src="../images/16x16/exit.png"/>
			<span style="vertical-align: middle"><spring:message code="emdt.module.logout" text="Log out" /></span>
		</a>
	</span>
</td>
<td></td>
<td align="right" style="padding-right: 4px;">
	<a href="http://ardeo.com/" title="Ardeo website (opens in new window)" target="_blank" rel="noopener" >
		<img src="../images/ardeo-emdt-logo.png" border="0"/>
	</a>
</td>
</tr>
</table>
<script>
function setFileSize(el) {
	var fileSize=el.files[0].size;
	$.ajax( {
	type : "GET",
	url : "../setSessionVariable.form?sizeOfFileUploaded="+fileSize,
	});
}
</script>