forum
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<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>Afficher le nombre ici</td>
|
||||
<td>?</td>
|
||||
</tr>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
@@ -5,15 +5,7 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h4 class="title"></h4>
|
||||
|
||||
<table style="width: 100%; border: 1px solid orange;">
|
||||
|
||||
<tr>
|
||||
<th>Message</th>
|
||||
<th>Author</th>
|
||||
<th>Date</th>
|
||||
</tr>
|
||||
<h4 class="title"> Share your opinion</h4>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${empty listMessage}">
|
||||
@@ -23,19 +15,42 @@
|
||||
</div>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:forEach items="${listMessage}" var="message">
|
||||
<div>
|
||||
<table style="width: 100%">
|
||||
<tr bgcolor="#FFCE64">
|
||||
<td width="15%" align="center"><b>Date</b></td>
|
||||
<td width="25%" align="center"><b>Author</b></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>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<tr>
|
||||
<td>${message.message}</td>
|
||||
<td>${message.user.firstName} ${message.user.lastName}</td>
|
||||
<td>${message.dateMessage}</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</div>
|
||||
<hr />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<form:form method="post" commandName="addMessage" id="account_data">
|
||||
@@ -56,6 +71,7 @@
|
||||
<input type="submit" value="Send" />
|
||||
|
||||
</form:form>
|
||||
|
||||
<br />
|
||||
<a href="main.htm" class="back_link"> Main</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user