This commit is contained in:
Maxime Dagnicourt
2008-02-11 11:37:08 +00:00
parent 37c6ff639d
commit 2a4c5b58f9
3 changed files with 75 additions and 57 deletions

View File

@@ -1,58 +1,65 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<head>
<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/DispatchArticlesJS.js'></script>
<script type='text/javascript' src='./javascripts/prototype.js'></script>
<script type='text/javascript'>
function addMember(memberId, articleId){
DispatchArticlesJS.addMember(memberId, articleId, fillTable)
}
function fillTable(data) {
alert("data: "+ data);
}
</script>
</head>
<body>
<h4 class="title">NO NAME</h4>
<form:form commandName="formDispatcher">
<table>
<tr>
<th>articles to dispatch</th><th>members</th><th>members associate to the article</th>
</tr>
<c:forEach var="article" items="${articles}">
<tr>
<td>
<table>
<tr><td>title : ${article.title}
<br/> theme: ${article.topic}
<br/> main author: ${article.mainAuthor.firstName}{article.mainAuthor.lastName}</td>
<td><a href="${article.URL_article}">download the article</a></td>
</tr>
</table>
</td>
<td>
<h4 class="title"><fmt:message key="disptachArticle.choose" /></h4>
<p>
Article's description :
<br/>title : ${article.title}
<br/> theme: ${article.topic}
<br/> main author: ${article.mainAuthor.firstName}{article.mainAuthor.lastName}
<br/><a href="${article.URL_article}">download the article</a>
</p>
<b>members of the conference</b>
<input name="idArticle" type="hidden" value="${article.id}" />
<form:select path="member">
<c:forEach var="m" items="${members}">
<option value="${m.login}">
${m.firstName} ${m.lastName}(0)
</option>
</c:forEach>
</form:select>
<input type="submit" value="add" />
<table id="members">
<tr>
<th>name</th>
<th>preference</th>
<th>nb of articles for this conference</th>
<th></th>
</tr>
<c:forEach var="m" items="${members}">
<tr>
<td>${m.firstName} ${m.lastName}(0)</td>
<td>???</td>
<td>0</td>
<td><a href="" onclick="addMember('${m.login}', '${article.id}');"/>add</a></td>
</tr>
</c:forEach>
</table>
<select>
<c:forEach var="am" items="${ArticleMembers}">
<option value="${m.login}">
${m.firstName} ${m.lastName}(0)
</option>
</c:forEach>
</select>
</td>
<td>
<form:select path="member">
<c:forEach var="am" items="${ArticlesMembers}">
<option value="${m.login}">
${m.firstName} ${m.lastName}(0)
</option>
</c:forEach>
</form:select>
</td>
</tr>
</c:forEach>
</table>
</form:form>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head>
</head>
<body>
<h4 class="title"><fmt:message key="disptachArticle.choose" /></h4>
<table>
<c:forEach var="article" items="${articles}">
<tr>
<td>title : ${article.title}
<br/>theme: ${article.topic}
<br/>main author: ${article.mainAuthor.firstName}{article.mainAuthor.lastName}
<br/>&nbsp;
<td><a href="${article.URL_article}">download the article</a></td>
<td><input type="button" value="dispatch/show details" onclick="location.href='dispatchArticle.htm?articleId=${article.id}';"/></td>
</tr>
</c:forEach>
</table>
</body>
</html>

View File

@@ -1,12 +0,0 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>