Files
yacos/YACOSWeb/WebContent/WEB-INF/jsp/manageArticle.jsp
Frederic Debuire 3fd37463d9 Debug
Policy failures:   
Code warning
- failed on resource ListReportController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 74
- failed on resource ListReportController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 98
- failed on resource ListReportController.java. Reason: List is a raw type. References to generic type List<E> should be parameterized, line 74
- failed on resource ListReportController.java. Reason: List is a raw type. References to generic type List<E> should be parameterized, line 98
- failed on resource ListReportController.java. Reason: Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized, line 102
... and more.  
Override reason:   
huhu
2008-02-25 10:32:50 +00:00

83 lines
2.9 KiB
Plaintext

<%@ 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>
<c:if test="${param['delete'] eq 'ok'}">
<p class="formOk">
Your article has been successfully deleted.<br/>
</p>
</c:if>
<c:choose>
<c:when test="${empty listArticle}">
<div class="warningBox">
You have no article at the moment.<br />
You can submit an article in clicking
<a href="submissionArticle.htm">here</a>
or using the item menu.<br />
</div>
</c:when>
<c:otherwise>
<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>
<c:if test="${article.state != 'EVALUATED' and article.state != 'REJECTED' and article.state != 'ACCEPTED'}">
<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>
</c:if>
<c:choose>
<c:when test="${article.state == 'EVALUATED' or article.state == 'REJECTED' or article.state == 'ACCEPTED'}">
<br/><a href="<c:url value="listReportAuthor.htm?id=${article.id}"/>"><fmt:message key="validate.report" /></a>
</c:when>
<c:otherwise>
&nbsp;
</c:otherwise>
</c:choose>
</td>
</tr>
</tbody>
</table>
</div>
</c:forEach>
</div>
</c:otherwise>
</c:choose>
</body>
</html>