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>