This commit is contained in:
Nicolas Michard
2008-02-25 16:43:59 +00:00
parent 6d1040009a
commit c8d3e76ebf
2 changed files with 38 additions and 22 deletions

View File

@@ -19,7 +19,7 @@
<tr> <tr>
<td><a href="<c:url value="/forumArticle.htm"><c:param name="articleId" value="${article.id}"/></c:url>"><b>${article.title}</b></a></td> <td><a href="<c:url value="/forumArticle.htm"><c:param name="articleId" value="${article.id}"/></c:url>"><b>${article.title}</b></a></td>
<td>Afficher le nombre ici</td> <td>?</td>
</tr> </tr>
</c:forEach> </c:forEach>

View File

@@ -5,15 +5,7 @@
</head> </head>
<body> <body>
<h4 class="title"></h4> <h4 class="title"> Share your opinion</h4>
<table style="width: 100%; border: 1px solid orange;">
<tr>
<th>Message</th>
<th>Author</th>
<th>Date</th>
</tr>
<c:choose> <c:choose>
<c:when test="${empty listMessage}"> <c:when test="${empty listMessage}">
@@ -23,18 +15,41 @@
</div> </div>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:forEach items="${listMessage}" var="message"> <div>
<table style="width: 100%">
<tr> <tr bgcolor="#FFCE64">
<td>${message.message}</td> <td width="15%" align="center"><b>Date</b></td>
<td>${message.user.firstName} ${message.user.lastName}</td> <td width="25%" align="center"><b>Author</b></td>
<td>${message.dateMessage}</td> <td width="60%" align="center"><b>Message</b></td>
</tr>
<c:forEach items="${listMessage}" var="message" varStatus="status">
<c:choose>
<c:when test="${(status.index%2)==0}">
<tr bgcolor="white">
<td width="15%" align="center" valign="top">
<fmt:formatDate value="${message.dateMessage}" dateStyle="short" />
</td>
<td width="25%" align="center" valign="top">${message.user.firstName} ${message.user.lastName}</td>
<td width="60%" align="left"><b>${message.title}</b><br />${message.message}</td>
</tr>
</c:when>
<c:otherwise>
<tr bgcolor="#FDF2D8">
<td width="15%" align="center" valign="top">
<fmt:formatDate value="${message.dateMessage}" dateStyle="short" />
</td>
<td width="25%" align="center" valign="top">${message.user.firstName} ${message.user.lastName}</td>
<td width="60%" align="left"><b>${message.title}</b><br />${message.message}</td>
</tr> </tr>
</c:forEach>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </c:forEach>
</table>
</div>
<hr />
</c:otherwise>
</c:choose>
@@ -56,6 +71,7 @@
<input type="submit" value="Send" /> <input type="submit" value="Send" />
</form:form> </form:form>
<br />
<a href="main.htm" class="back_link"> Main</a>
</body> </body>
</html> </html>