{include file="header.html"} {include file="data/ui.html"} {include file="data/magnific-popup.html"}

{$lng.messages.message_history}

{foreach from=$messages_array item=v}
{if $v.from!=$crt_usr}
{$lng.messages.from}: {if $v.from}{$v.contact_name}, {$v.email}{else}{$v.from_email}{/if}{if $v.from_phone}, {$v.from_phone}{/if}
{else}
(#{$v.msg_id}) {$lng.messages.to}: {if $v.to}{$v.to_contact_name}, {$v.to_email}{else}{$v.to_email}{/if}
{/if}
{$v.date_nice}

{$v.message|wordwrap:50:" ":true}

{if $v.to == $crt_usr} {$lng.general.reply} {/if}
{/foreach}
{* end page_bounds *}
{* end wbg *} {include file="footer.html"}