<%@ 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">
	
	<!--  MENU : ROLE_USER for general option -->
	<authz:authorize ifAllGranted="ROLE_USER">
		<div class="mainmenubloc">
			<h4><fmt:message key="menu.general.title" /></h4>
				<ul>
					<li><a href="<c:url value="userBoard.htm"/>"><fmt:message key="menu.general.userBoard" /></a></li>
					<li><a href="<c:url value="main.htm"/>"><fmt:message key="menu.general.confInfo" /></a></li>
					<li><a href="<c:url value="listConference.htm"/>"><fmt:message key="conference.linkMenu.choose" /></a></li>
				</ul>
				<div class="footer"></div>
		</div>
	</authz:authorize>
	
	
	<!-- MENU : ROLE_ADMIN -->
	<authz:authorize ifAllGranted="ROLE_ADMIN">
		<div class="mainmenubloc">
			<h4><fmt:message key="menu.admin.title" /></h4>
				<ul>
					<li><a href="<c:url value="admin.htm"/>"><fmt:message key="menu.admin.manageUsers" /></a></li>
				</ul>
				<div class="footer"></div>
		</div>
	</authz:authorize>
	
	<!-- MENU : CHAIRMAN -->
	<authz:authorize ifAnyGranted="ROLE_CHAIRMAN,ROLE_CONFERENCE_CREATOR">
		<div class="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>
					<authz:authorize ifAllGranted="ROLE_CHAIRMAN">
					<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="listArticle.htm"/>"><fmt:message key="menu.chairman.article.list" /></a></li>
					<li><a href="<c:url value="dispatchArticle.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>
					<li><a href="<c:url value="conflictList.htm"/>"><fmt:message key="menu.chairman.article.conflict" /></a></li>
					<li><a href="<c:url value="forum.htm?role=chairman"/>"><fmt:message key="menu.chairman.article.discussion" /></a></li>
					</authz:authorize>
				</ul>
				<div class="footer"></div>
		</div>
	</authz:authorize>
	
	<!-- MENU : ROLE_PCMEMBER -->
	<authz:authorize ifAllGranted="ROLE_PCMEMBER">
		<div class="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="delegateArticle.htm"/>"><fmt:message key="menu.pcmember.article.delegate" /></a></li>
					<li><a href="<c:url value="listEvaluation.htm?role=pcmember"/>"><fmt:message key="menu.pcmember.article.evaluation.modify" /></a></li>
					<li><a href="<c:url value="forum.htm?role=pcmember"/>"><fmt:message key="menu.pcmember.article.discussion" /></a></li>
				</ul>
				<div class="footer"></div>
		</div>
	</authz:authorize>
	
	<!--  MENU : ROLE_REFEREE -->
	<authz:authorize ifAllGranted="ROLE_REFEREE">
		<div class="mainmenubloc">
			<h4><fmt:message key="menu.referee.title" /></h4>
				<ul>
					<li><a href="<c:url value="listEvaluation.htm?role=referee"/>"><fmt:message key="menu.referee.article.evaluation.modify" /></a></li>
				</ul>
				<div class="footer"></div>
		</div>
	</authz:authorize>
	
	<!--  MENU : ROLE_AUTHOR for articles management and ROLE_USER for submission -->
	<authz:authorize ifAllGranted="ROLE_USER">
		<div class="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 class="footer"></div>
		</div>
	</authz:authorize>
	
	<!--  MENU : ROLE_ANONYMOUS -->
	<authz:authorize ifNotGranted="ROLE_USER">
		<div class="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 class="footer"></div>
		</div>
	</authz:authorize>
	
</div><!--mainmenu-->

</body>
</html>