{extends file="header.html"}
{block name=title}LMS: {$layout.pagetitle|striphtml}{/block}
{block name=module_content}
<!--// $Id$ //-->

<style>

/*
	#message-body {
		line-height: 0.7em;
	}
 */

</style>

<script>

	show_pagecontent();

</script>

<H1>{$layout.pagetitle}</H1>
<P class="txt">
{if $message.from}<B>{trans("Sender:")}</B> {$message.from} &lt;{$message.sender}&gt;<BR>{/if}
<B>{trans("Subject:")}</B> {$message.subject|escape}<BR>
<B>{trans("Message:")}</B><BR>
<TABLE CELLPADDING="5" width="100%">
	<TR>
		<TD class="fall superlight">
			<PRE id="message-body">{if $message.contenttype == 'text/plain'}{nl2br(htmlspecialchars($message.body), false)}{else}{$message.body}{/if}</PRE>
		</TD>
	</TR>
</TABLE>
<BR>
{button id="showmessage" onclick="location.href = '?m=messageinfo&id={$message.id}';" label="Info" icon="info"}
{button id="msglist" onclick="location.href = '?m=messagelist';" label="Messages List" icon="list"}
{if isset($backto)}
	{textformat assign="onclick" wrap=5000}
		location.href = '{$backto}';
	{/textformat}
	{button id="backto" onclick=$onclick label="Back" icon="back"}
{/if}
<BR>
	{if $recipcount}
<BR><B>{trans("Sending messages to:")}</B><BR>
{/if}
{/block}
