{extends file="layout.html"} {block name=title}::: LMS :{$layout.pagetitle|striphtml} :::{/block} {block name=module_content}

{$layout.pagetitle}

{if $message.sender} {/if}
{trans("Subject:")} {$message.subject}
{trans("User:")} {if $message.userid} {$message.name} {else}LMS{/if}
{trans("Creation date:")} {$message.cdate|date_format:"%Y/%m/%d %H:%M"}
{trans("Sender:")} {$message.sender|escape:"html"}
{trans("Message body:")}
{$message.body|replace:"\n":"
"}
{trans("Cancel")}

{if $listdata.total != 0} {/if} {cycle values="light,lucid" print=false} {section name=itemlist loop=$itemlist start=$start max=$pagelimit} {assign var=item value=$itemlist[itemlist]} {sectionelse} {/section} {if $listdata.total != 0} {/if}
{trans("Customer:")} {if $listdata.order == "customer"}{/if} {trans("Destination:")} {if $listdata.order == "destination"}{/if} {trans("Status:")} ({trans("Error message")}) {if $listdata.order == "status"}{/if} {trans("Last read on:")} {trans("Was confirm on:")} ({trans("only userpanel message")}) {t a=$listdata.total}Total: $a{/t} 
{trans("Filter:")}     {trans("Status:")}  »»»
{include file="scroller.html" loop=$itemlist scrollerno=1}
{if $item.customerid} {$item.customer|truncate:45:"...":true} ({$item.customerid|string_format:"%04d"}) {else} {trans("none")} {/if} {trans("{$item.destination|escape}")} {if $item.status == $smarty.const.MSG_SENT} {trans("sent")} {elseif $item.status == $smarty.const.MSG_ERROR} {trans("errornous")}{if $item.error} ({$item.error|escape}){/if} {elseif $item.status == $smarty.const.MSG_DELIVERED} {trans("delivered")} ({$item.lastdate|date_format:"%Y/%m/%d %H:%M"}) {else} {trans("waiting")} {/if} {if $item.lastreaddate}{$item.lastreaddate|date_format:"%Y/%m/%d %H:%M"}{else} - {/if} {if $item.status == $smarty.const.MSG_DELIVERED && ($message.type == $smarty.const.MSG_USERPANEL || $message.type == $smarty.const.MSG_USERPANEL_URGENT || $message.type == $smarty.const.MSG_WWW) && $item.lastdate}{$item.lastdate|date_format:"%Y/%m/%d %H:%M"}{else} - {/if}

{trans("No such recipients in database.")}

{include file="scroller.html" loop=$itemlist scrollerno=2}
{t a=$listdata.total}Total: $a{/t}
{/block}