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

<html>
<head>
<script type='text/javascript' src='./javascripts/prototype.js'></script>
<script type='text/javascript' src='./javascripts/scriptaculous.js'></script>
<script type='text/javascript' src='./javascripts/effects.js'></script>
<script type='text/javascript' src='./javascripts/yacos/manageArticle.js'></script>
</head>
<body>

<h4 class="title"><fmt:message key="manageArticle.title" /></h4>
<br />

<div id="articleList" class="dynamicFredList">
<c:forEach var="article" items="${listArticle}" varStatus="i">

	<div id="articleLine${i.index}" align="center" class="articleLine">${article.title}</div>
	
	<div id="articleDetails${i.index}" style="display: none;">
	<table width="100%">
		<tbody>
			<tr>
				<td width="50%" align="center">
				<ul>
					<li>Secondary Authors:
						<ul>
						<c:forEach var="sAuthor" items="${article.secondaryAuthors}">
							<li><b>${sAuthor}</b></li>						
						</c:forEach>
						</ul>						
					</li>
					<li>Topic: <b>${article.topic}</b></li>
				</ul>
				</td>
				<td width="50%" align="center">
					${article.abstractText}
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
				<a class="manage_link" id="articleURL${i.index}" title="Download" href="<c:url value="/download.htm"><c:param name="articleId" value="${article.id}"/></c:url>">Download<img src="./images/cc-download_manager-32x32.png" alt="Download" /></a>
				<a class="manage_link" id="modifyArticle${i.index}" title="Modify" href="<c:url value="/submissionArticle.htm"><c:param name="action" value="modify"/><c:param name="articleID" value="${article.id}"/></c:url>">Modify<img src="./images/cc-kedit-32x32.png" alt="Modify" /></a>
				<a class="manage_link" id="suppressArticle${i.index}" title="Delete" href="javascript:deleteArticle(${article.id});">Delete<img src="./images/cc-button_cancel-32x32.png" alt="Delete"/></a>
				</td>
			</tr>
		</tbody>
	</table>
	</div>
	
	
</c:forEach>
</div>

</body>
</html>