From b2783d8c1808acf8d1216b3ba471782edd450c61 Mon Sep 17 00:00:00 2001 From: Frederic Debuire Date: Tue, 19 Feb 2008 22:24:52 +0000 Subject: [PATCH] =?UTF-8?q?Continuation=20de=20tableau=20de=20bord,=20ajou?= =?UTF-8?q?t=20de=20la=20liste=20des=20conf=C3=A9rences=20par=20r=C3=B4le.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YACOSWeb/WebContent/WEB-INF/jsp/userBoard.jsp | 203 +++++++++++++++++- .../controller/UserBoardController.java | 9 + 2 files changed, 210 insertions(+), 2 deletions(-) diff --git a/YACOSWeb/WebContent/WEB-INF/jsp/userBoard.jsp b/YACOSWeb/WebContent/WEB-INF/jsp/userBoard.jsp index 214f03e..f61779b 100644 --- a/YACOSWeb/WebContent/WEB-INF/jsp/userBoard.jsp +++ b/YACOSWeb/WebContent/WEB-INF/jsp/userBoard.jsp @@ -3,6 +3,55 @@ + + + + + @@ -14,7 +63,24 @@
You currently follow ${numberConference} conference(s)

- If you want to see the list of conferences you are registered in, click here. + + If you want to see the list of conferences you are registered in, click here. + +
+ +
+

Chairman's informations

@@ -30,24 +96,157 @@ You can't create a conference at the moment. If you want to create a conference, you should address to the administrator of this site. + +

+ + If you want to see the list of conferences you are registered in, click here. + +
+ +
+
+ +

PCMember's informations

You are PCMember in ${numberPCMember} conference(s)

+ + + If you want to see the list of conferences you are registered in, click here. + +
+ +
+

Referee's informations

You are Referee in ${numberReferee} conference(s)

+ + + If you want to see the list of conferences you are registered in, click here. + +
+ +
+

Author's informations

You are Author in ${numberAuthor} conference(s)

+ + + If you want to see the list of conferences you are registered in, click here. + +
+ +
+
+ +
You have posted ${numberArticle} article(s).

- If you want to see the list of articles you have submited, click here. + + If you want to see the list of articles you have submitted, click here. + +
+ +
+
diff --git a/YACOSWeb/src/org/yacos/web/system/controller/UserBoardController.java b/YACOSWeb/src/org/yacos/web/system/controller/UserBoardController.java index 25c7378..f208968 100644 --- a/YACOSWeb/src/org/yacos/web/system/controller/UserBoardController.java +++ b/YACOSWeb/src/org/yacos/web/system/controller/UserBoardController.java @@ -1,6 +1,7 @@ package org.yacos.web.system.controller; import java.io.IOException; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -94,11 +95,19 @@ public class UserBoardController extends SimpleFormController { model.put("numberPCMember", numberPCMember); model.put("numberReferee", numberReferee); model.put("numberAuthor", numberAuthor); + model.put("listRole", listRole); logger.info("Get the list of articles of an author"); List
listAllArticle = articleManager.getArticleOfAuthor(SessionService.getInstance().getCurrentUserLogin()); Integer numberArticle = listAllArticle.size(); + //Map listConfForArticle = new HashMap(); + List listConfForArticle = new ArrayList(); + for (Article a : listAllArticle) { + listConfForArticle.add(articleManager.getConferenceForArticle(a.getId())); + } + + model.put("listConfForArticle", listConfForArticle); model.put("numberArticle", numberArticle); model.put("listAllArticle", listAllArticle);