<%@ 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">
		
		${fn:substring(currentConference.title, 0, 90)}
		<c:if test="${fn:length(currentConference.title) > 91}">
		...
		</c:if>
		</h4>

			<c:if test="${end != null}">
			<div class="warningBox">
					Sorry, the ${end} period is over !
			</div>
			</c:if>

		<center><h1 class="maintitleconf" title="${currentConference.title}">
		${fn:substring(currentConference.title, 0, 40)}
		<c:if test="${fn:length(currentConference.title) > 41}">
		...
		</c:if>
		</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>
		<h3 class="descriptionTitle">Submission Informations</h3>
		<div class="textBox">
			<c:if test="${currentConference.pageNumber != 0}">
				The number of pages for an article is about ${currentConference.pageNumber}.<br/><br/>
			</c:if>
			
			The following file's type are allowed:&nbsp;
			<c:choose>
			<c:when test="${currentConference.typePDF == true or currentConference.typeLatec == true or currentConference.typeWord == true or currentConference.typeODT == true}">
				<c:if test="${currentConference.typePDF == true}">
					<b>.pdf&nbsp;</b>
				</c:if>
				<c:if test="${currentConference.typeLatec == true}">
					<b>.tex&nbsp;</b>
				</c:if>
				<c:if test="${currentConference.typeWord == true}">
					<b>.doc&nbsp;.docx&nbsp;</b>
				</c:if>
				<c:if test="${currentConference.typeODT == true}">
					<b>.odt&nbsp;</b>
				</c:if>
			</c:when>
			<c:otherwise>
				<b>Any file's type.</b>
			</c:otherwise>
			</c:choose>
			
			<br /><br />
			Other informations about the submission: <b>${currentConference.sendInfo}</b>
			
		</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">
    			<p>
	    			<fmt:message key="connected.noconference.warning" />
	    			<a href="<c:url value="listConference.htm"/>"><fmt:message key="home.link.choose" /></a>
	    		</p>
	    		<p>
    				<fmt:message key="connected.noconference.warning.userBoard" />
    				<a href="<c:url value="userBoard.htm"/>"><fmt:message key="home.link.userBoard" /></a>
    			</p>
    		</div>
    		<center><a href="<c:url value="listConference.htm"/>" class="chooseConferenceLink">
    			Please choose a conference
    		</a></center>
    	</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;</h3>
		<p>
			<a href="<c:url value="listConference.htm"/>" class="register_link"><fmt:message key="home.link.choose" /></a>
		</p>
		<p>
			<a href="<c:url value="registerUser.htm"/>" class="register_link"><fmt:message key="home.link.register" /></a>
		</p>
    	</authz:authorize>
	</c:otherwise>
	
</c:choose>

</body>
</html>
