forum
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
</c:forEach>
|
||||||
</table>
|
</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>
|
||||||
Reference in New Issue
Block a user