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

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

<c:choose>

	<c:when test="${currentConferenceId != null}">
		<!--  Main page for current conference -->
		<h4 class="title">${currentConference.title}</h4>
		<center><h1 class="maintitle">${currentConference.title}</h1></center>
		<h3 class="descriptionTitle"><fmt:message key="conference.detail.description" /></h3>
		<div class="textBox">
			${currentConference.description }
		</div>
		<h3 class="descriptionTitle"><fmt:message key="conference.detail.other" /></h3>
		<div class="textBox">
			<c:choose>
				<c:when test="${currentConference.otherInformations != null}">
					<c:if test="${currentConference.otherInformations == ''}">
						<fmt:message key="conference.detail.nosuppl" />
					</c:if>
					${currentConference.otherInformations }
				</c:when>
			</c:choose>
		</div>
		<h3 class="dateTitle"><fmt:message key="conference.detail.date.title" /></h3>
		<div class="textBox">
			<b><fmt:message key="conference.detail.date.start" /></b>&nbsp;<fmt:formatDate value="${currentConference.dateStart }" dateStyle="long" /><br />
			<b><fmt:message key="conference.detail.date.end" /></b>&nbsp;<fmt:formatDate value="${currentConference.dateEnd }" dateStyle="long" /><br /><br />
			<b><fmt:message key="conference.detail.date.article" /></b>&nbsp;<fmt:formatDate value="${currentConference.dateArticle }" dateStyle="long" /><br />
			<b><fmt:message key="conference.detail.date.evaluation" /></b>&nbsp;<fmt:formatDate value="${currentConference.dateEvaluation }" dateStyle="long" /><br />
		</div><br />
		<center><a href="<c:url value="submissionArticle.htm" />" class="submitLink"><fmt:message key="conference.detail.link.submit" /></a></center>
	</c:when>
	
	<c:otherwise>	
    	<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
    	<!--  Connected but no conference chosen -->
    		<h4 class="title"><fmt:message key="connected.noconference.title" /></h4>
    		<div class="warningBox">
    			<fmt:message key="connected.noconference.warning" />
    			<a href="<c:url value="listConference.htm"/>"><fmt:message key="home.link.choose" /></a>
    		</div>
    	</authz:authorize>
    	<authz:authorize ifAllGranted="ROLE_ANONYMOUS">
    	<!--  Main page for Yacos.com -->
    	<h4 class="title"><fmt:message key="title" /> : <fmt:message key="title.detail" /></h4>
    	<center>
    		<h1 class="maintitle"><fmt:message key="title" /></h1>
    		<h3 class="subtitle"><fmt:message key="title.detail" /></h3>
    	</center>
    	
    	<h3 class="subtitle"><fmt:message key="home.whatis" /></h3>
    	<p><fmt:message key="home.whatis.txt" /></p>
    	
    	<h3 class="subtitle"><fmt:message key="home.author" /></h3>
    	<p><fmt:message key="home.author.txt" /></p>
    	
    	<h3 class="subtitle"><fmt:message key="home.referee" /></h3>
    	<p><fmt:message key="home.referee.txt" /></p>

		<h3 class="subtitle"><fmt:message key="home.youknow" />&nbsp;<a href="<c:url value="listConference.htm"/>" class="register_link"><fmt:message key="home.link.choose" /> !</a></h3>
    	</authz:authorize>
	</c:otherwise>
	
</c:choose>

</body>
</html>
