<div>
	<h1>{t}Сообщение для{/t} {$login|escape}</h1>
		{include file="lc_pm/po_tools.tpl"}
		<form method="post" action="">
			<div>
				<input type="hidden" name="token" value="{$_user->token}" />
				{t}Тема{/t}*<br />
				<input type="text" name="subj" value="{$smarty.post.subj|default:$subj|escape}" /><br />
				{t}Сообщение{/t}*<br />
				<textarea class="bbcode" name="msg" cols="50" rows="10" id="msg">{$smarty.post.msg|escape}</textarea><br />
				<div id="msg_preview"></div>
				<input type="submit" value="{t}отправить{/t}" />
			</div>
		</form>
		
		{foreach $history as $post}
			<div style="border-top:1px solid #E3E9EF;padding:5px 0" id="pm_item">
				<div class="subj"><span style="color:{if $post.my}#003399{else}#339900{/if}">{$post.login|escape}:</span> {$post.subj|escape}<br />[{$post.putdate}]</div>
				<div class="msg">
					{$post.msg_html}
				</div>
			</div>
		{/foreach}
</div>
