Début du management d'article

This commit is contained in:
Frederic Debuire
2008-02-12 14:53:27 +00:00
parent 78edfde2aa
commit 59eed3c120
7 changed files with 270 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ button.OK=OK
listarticle.title=Article's list
manageArticle.title=Manage your article
preference.title=Choose the preference for articles

View File

@@ -59,7 +59,7 @@
<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>
<li><a href="<c:url value="#"/>"><fmt:message key="menu.author.article.modify" /></a></li>
<li><a href="<c:url value="manageArticle.htm"/>"><fmt:message key="menu.author.article.modify" /></a></li>
</ul>
<div id="footer"></div>
</div>

View File

@@ -0,0 +1,59 @@
<%@ 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='./dwr/engine.js'></script>
<script type='text/javascript' src='./dwr/util.js'></script>
<script type='text/javascript' src='./dwr/interface/ManagerArticleJS.js'></script>
<script type='text/javascript'
src='./javascripts/yacos/manageArticle.js'></script>
</head>
<body>
<h4 class="title"><fmt:message key="manageArticle.title" /></h4>
<div id="authorList" class="dynamicList" align="center">
<div class="dynamicListHeader"><fmt:message
key="listarticle.title" /></div>
</div>
<br />
<div id="articleDetails" style="display: none;">
<table border="1" id="tableArticle">
<thead>
<tr>
<th>Details</th>
<th>Download</th>
<th>Modify</th>
<th>Suppress</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul class="article">
<li class="title"><b><span id="articleTitle">Title</span></b></li>
<li class="author">Author: <b><span id="articleAuthor">Author</span></b></li>
<li class="secondaryAuthors">Secondary Authors: <span
id="secondaryAuthor">Secondary</span></li>
<li class="topic">Topic: <b><span id="articleTopic">Topic</span></b></li>
</ul>
</td>
<td><a id="articleURL" href="" />Download the article</a></td>
<td><a id="modifyArticle" href="" />Modify the article</a></td>
<td><a id="suppressArticle" href="" />Suppress the article</a></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

View File

@@ -27,6 +27,9 @@
</prop>
<prop key="/listArticle.htm">
ListArticleController
</prop>
<prop key="/manageArticle.htm">
ManageArticleController
</prop>
<prop key="/registerUser.htm">
SUserRegistrationController
@@ -89,6 +92,12 @@
<property name="articleManager" ref="articleManager" />
</bean>
<bean id="ManageArticleController"
class="org.yacos.web.author.controller.ManageArticleController">
<dwr:remote javascript="ManagerArticleJS" />
<property name="articleManager" ref="articleManager" />
</bean>
<bean id="ArticleDownloadController" class="org.yacos.web.system.controller.ArticleDownloadController">
<property name="articleManager" ref="articleManager" />
<property name="downloadDirPath" value="${download.dir.path}"/>
@@ -246,6 +255,10 @@
<dwr:configuration>
<dwr:convert type="bean"
class="org.yacos.web.chairman.form.FormConference">
</dwr:convert>
<dwr:convert type="bean"
class="org.yacos.web.author.form.ArticleBean">
</dwr:convert>
<dwr:convert type="bean"