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

@@ -5,16 +5,8 @@
</head>
<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:when test="${empty listMessage}">
<div class="warningBox">
@@ -22,20 +14,43 @@
You can post a message if you want using the form below.
</div>
</c:when>
<c:otherwise>
<c:forEach items="${listMessage}" var="message">
<c:otherwise>
<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>
</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>