<%@ page buffer="8kb" autoFlush="true" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<app:handleError>
<zm:getMailbox var="mailbox"/>
<c:choose>
	<c:when test="${not empty mailbox.prefs.locale}">
		<fmt:setLocale value='${mailbox.prefs.locale}' scope='request' />
	</c:when>
	<c:otherwise>
		<fmt:setLocale value='${pageContext.request.locale}' scope='request' />
	</c:otherwise>
</c:choose>
<fmt:setBundle basename="/messages/ZhMsg" scope="request"/>
<c:set var="messageId" value="${not empty paramValues.id[0] ? paramValues.id[0] : paramValues.id[1]}"/>
<zm:computeSearchContext var="context" usecache="true"/>
</app:handleError>
<html>
<app:head mailbox="${mailbox}"/>
<body style='background-color:white;'>
<div class='ShowAllImagesListView'>
<table cellpadding="0" cellspacing="5"  width="100%">
	<tr>
		<td class='ZhZimbraTitle'><fmt:message key="zimbraTitle"/></td>
		<td nowrap width='1%'><b>${fn:escapeXml(mailbox.name)}</b></td>
	</tr>
	<tr>
		<td colspan="2">
            <zm:getMessage var="message" box="${mailbox}" id="${messageId}" markread="false"/>
            <div class="ShowAllImagesView">
			    <app:viewimages message="${message}"/>
            </div>
		</td>
	</tr>
</table>

<c:if test="${empty messageId}">
	<div class='NoResults'><fmt:message key="noResultsFound"/></div>
</c:if>
</body>
</html>

