<%@ include file="/WEB-INF/decorators/include.jsp"%>

<html>
<head></head>
<body>

<!-- Differents role : ROLE_CHAIRMAN, ROLE_PCMEMBER, ROLE_REFEREE, ROLE_AUTHOR, ROLE_ANONYMOUS -->

<div id="mainmenu">
	
	<!-- On affiche les menus seulement si une conference est deja active -->
	
	<c:if test="${currentConferenceId != null}">
	
	<!-- MENU : CHAIRMAN -->
	<authz:authorize ifAllGranted="ROLE_CHAIRMAN">
		<div id="mainmenubloc">
			<h4><fmt:message key="menu.chairman.title" /></h4>
				<ul>
					<authz:authorize ifAllGranted="ROLE_CONFERENCE_CREATOR">
					<li><a href="<c:url value="addConference.htm"/>"><fmt:message key="menu.chairman.conference.create" /></a></li>
					</authz:authorize>
					<li><a href="<c:url value="addConference.htm?action=modify"/>"><fmt:message key="menu.chairman.conference.modify" /></a></li>
					<li><a href="<c:url value="dispatchArticleList.htm"/>"><fmt:message key="menu.chairman.article.dispatch" /></a></li>
					<li><a href="<c:url value="validateArticle.htm"/>"><fmt:message key="menu.chairman.article.validate" /></a></li>
				</ul>
				<div id="footer"></div>
		</div>
	</authz:authorize>
	
	<!-- MENU : ROLE_PCMEMBER -->
	<authz:authorize ifAllGranted="ROLE_PCMEMBER">
		<div id="mainmenubloc">
			<h4><fmt:message key="menu.pcmember.title" /></h4>
				<ul>
					<li><a href="<c:url value="choosePreference.htm"/>"><fmt:message key="menu.pcmember.article.preference" /></a></li>
					<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.delegate" /></a></li>
					<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.evaluation" /></a></li>
					<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.evaluation.modify" /></a></li>
					<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.discussion" /></a></li>
				</ul>
				<div id="footer"></div>
		</div>
	</authz:authorize>
	
	<!--  MENU : ROLE_REFEREE -->
	<authz:authorize ifAllGranted="ROLE_REFEREE">
		<div id="mainmenubloc">
			<h4><fmt:message key="menu.referee.title" /></h4>
				<ul>
					<li><a href="<c:url value="listEvaluation.htm"/>"><fmt:message key="menu.referee.article.evaluation" /></a></li>
					<li><a href="<c:url value="#"/>"><fmt:message key="menu.referee.article.evaluation.modify" /></a></li>
				</ul>
				<div id="footer"></div>
		</div>
	</authz:authorize>
	
	<!--  MENU : ROLE_AUTHOR for articles management and ROLE_USER for submission -->
	<authz:authorize ifAllGranted="ROLE_USER">
		<div id="mainmenubloc">
			<h4><fmt:message key="menu.author.title" /></h4>
				<ul>
					<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="menu.author.article.submission" /></a></li>
					<authz:authorize ifAllGranted="ROLE_AUTHOR">
					<li><a href="<c:url value="manageArticle.htm"/>"><fmt:message key="menu.author.article.modify" /></a></li>
					</authz:authorize>
				</ul>
				<div id="footer"></div>
		</div>
	</authz:authorize>
	
	<!--  MENU : ROLE_ANONYMOUS -->
	<authz:authorize ifNotGranted="ROLE_USER">
		<div id="mainmenubloc">
			<h4><fmt:message key="menu.anonymous.title" /></h4>
				<ul>
					<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="menu.anonymous.article.submission" /></a></li>
				</ul>
				<div id="footer"></div>
		</div>
	</authz:authorize>
	
	</c:if>
	
	
</div><!--mainmenu-->

</body>
</html>