Divers changement:

Ajout d'image pour le download (à changer)
Changement de choose preference
This commit is contained in:
Frederic Debuire
2008-02-15 19:33:51 +00:00
parent 38bd59d2a6
commit 363238ce30
17 changed files with 83 additions and 295 deletions

View File

@@ -108,14 +108,16 @@ function writePerson() {
if (person.max <= person.min) {
dwr.util.setValues({id:person.id, label:person.label, min:null, max:null });
dwr.util.setValues({errorMax:"The max value should'nt be superior to the min value"});
dwr.util.setValues({errorMax:"The max value should'nt be superior to the min value"});
$('errorMax').style.display = "";
}
else {
dwr.engine.beginBatch();
AddCriteriaJS.setCriterionClick(person);
fillTable();
dwr.engine.endBatch();
dwr.util.setValues({ id:-1, label:null, min:1, max:5 });
dwr.util.setValues({ id:-1, label:null, min:1, max:5 });
$('errorMax').style.display = "none";
}
}

View File

@@ -6,11 +6,13 @@
<h4 class="title"><fmt:message key="preference.title" /></h4>
<h4 class="title"><fmt:message key="preference.title" /></h4>
<form:form method="post" commandName="choosePreference">
<spring:message var="message"/>
<p class="formHelp">
Choose the preference you have for each article.
</p>
<form:form method="post" commandName="choosePreference">
<c:if test="${not empty articleList}">
<table>
<c:forEach items="${articleList}" var="article" varStatus="i">
@@ -30,8 +32,16 @@
</table>
<input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>
</c:if>
</form:form>
</form:form>
<c:if test="${param['message'] eq 'done'}">
<p class="formOk">
You have successfully updated the preference.<br/>
You can modify your choices immediately or later.<br/>
</p>
</c:if>
<br />
<a href="<c:url value="main.htm"/>">Home</a>

View File

@@ -1,15 +0,0 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<h4 class="title"><fmt:message key="preference.title" /></h4>
<fmt:message key="preference.ok"/>
</body>
</html>

View File

@@ -7,18 +7,11 @@
<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="dynamicFredList">
<div class="dynamicListHeader" align="center"><fmt:message
key="listarticle.title" /></div>
</div> -->
<br />
<div id="articleList" class="dynamicFredList">
@@ -41,9 +34,9 @@
<li>Topic: <b>${article.topic}</b></li>
</ul>
</td>
<td><a id="articleURL${i.index}" href="${article.URL_article}" />Download the article</a></td>
<td><a id="modifyArticle${i.index}" href="" />Modify the article</a></td>
<td><a id="suppressArticle${i.index}" href="" />Suppress the article</a></td>
<td><a id="articleURL${i.index}" title="Download" href="<c:url value="/download.htm"><c:param name="articleId" value="${article.id}"/></c:url>"><img src="./images/cc-download_manager-128x128.png" alt="Download" /></a></td>
<td><a id="modifyArticle${i.index}" title="Modify" href=""/><img src="./images/cc-button_ok-128x128.png" alt="Modify" /></a></td>
<td><a id="suppressArticle${i.index}" title="Delete" href="" /><img src="./images/cc-button_cancel-128x128.png" alt="Delete" /></a></td>
</tr>
</tbody>
</table>

View File

@@ -1,14 +0,0 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<h4 class="title">NO NAME</h4>
Soumission OK
<br />
<a href="<c:url value="main.htm"/>">Home</a>
</body>
</html>

View File

@@ -22,63 +22,25 @@
<property name="mappings">
<props>
<prop key="/main.htm">MainController</prop>
<prop key="/submissionArticleOK.htm">
SArticleControllerOK
</prop>
<prop key="/listArticle.htm">
ListArticleController
</prop>
<prop key="/manageArticle.htm">
ManageArticleController
</prop>
<prop key="/registerUser.htm">
SUserRegistrationController
</prop>
<prop key="/submissionArticle.htm">
SArticleController
</prop>
<prop key="/choosePreference.htm">
ChoosePreferenceController
</prop>
<prop key="/dispatchArticleList.htm">
DispatchArticleListController
</prop>
<prop key="/dispatchArticle.htm">
DispatchArticleController
</prop>
<prop key="/addConference.htm">
AddConferenceController
</prop>
<prop key="/listArticle.htm">ListArticleController</prop>
<prop key="/manageArticle.htm">ManageArticleController</prop>
<prop key="/registerUser.htm">SUserRegistrationController</prop>
<prop key="/submissionArticle.htm">SArticleController</prop>
<prop key="/choosePreference.htm">ChoosePreferenceController</prop>
<prop key="/dispatchArticleList.htm">DispatchArticleListController</prop>
<prop key="/dispatchArticle.htm">DispatchArticleController</prop>
<prop key="/addConference.htm">AddConferenceController</prop>
<prop key="/evaluation.htm">EvaluationController</prop>
<prop key="/createReport.htm">
CreateReportController
</prop>
<prop key="/listConference.htm">
ListConferenceController
</prop>
<prop key="/chooseConference.htm">
ChooseConferenceController
</prop>
<prop key="/validateArticle.htm">
ValidateArticleController
</prop>
<prop key="/valideOrReject.htm">
ValideOrRejectController
</prop>
<prop key="/createReport.htm">CreateReportController</prop>
<prop key="/listConference.htm">ListConferenceController</prop>
<prop key="/chooseConference.htm">ChooseConferenceController</prop>
<prop key="/validateArticle.htm">ValidateArticleController</prop>
<prop key="/valideOrReject.htm">ValideOrRejectController</prop>
<prop key="/login.htm">LogonController</prop>
<prop key="/listEvaluation.htm">
ListEvaluationController
</prop>
<prop key="/download.htm">
ArticleDownloadController
</prop>
<prop key="/listReport.htm">
ListReportController
</prop>
<prop key="/forgotPassword.htm">
ForgotPasswordController
</prop>
<prop key="/listEvaluation.htm">ListEvaluationController</prop>
<prop key="/download.htm">ArticleDownloadController</prop>
<prop key="/listReport.htm">ListReportController</prop>
<prop key="/forgotPassword.htm">ForgotPasswordController</prop>
<prop key="/detailArticle.htm">
DetailArticleController
</prop>
@@ -89,9 +51,6 @@
<bean id="MainController"
class="org.yacos.web.author.controller.MainController" />
<bean id="SArticleControllerOK"
class="org.yacos.web.author.controller.SArticleControllerOK" />
<bean id="ListArticleController"
class="org.yacos.web.PCmember.controller.ListArticleController">
<property name="articleManager" ref="articleManager" />
@@ -99,7 +58,6 @@
<bean id="ManageArticleController"
class="org.yacos.web.author.controller.ManageArticleController">
<dwr:remote javascript="ManagerArticleJS" />
<property name="articleManager" ref="articleManager" />
</bean>
@@ -276,10 +234,6 @@
<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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -467,5 +467,4 @@ textarea {
.yacos_button:hover {
background-image: url(../images/button_background_hover.png);
}
/* @end */