{include file="header.html"}
{box title=$title} {$allow_reopen_tickets_newer_than = intval(ConfigHelper::getConfig('userpanel.allow_reopen_tickets_newer_than'))} {foreach from=$ticket.messages item=message} {/foreach}
{$message.createtime|date_format:"%Y/%m/%d
%H:%M"}
{trans("From:")}
{trans("Subject:")}
{if $message.customerid} {$message.customername} {elseif $message.userid} {$message.username} {elseif $message.mailfrom} {$message.mailfrom|escape} {else} {$ticket.requestor|escape} {if $ticket.requestoremail} <{$ticket.requestoremail|escape}> {/if} {/if}
{$message.subject|escape}
{if $message.attachments} {foreach $message.attachments as $attachment} {if !$attachment@first}
{/if}{$attachment.filename} {img src="attach.gif" alt=""} {/foreach} {/if}
{if ($ticket.state != $smarty.const.RT_RESOLVED || ConfigHelper::getConfig('userpanel.allow_message_add_to_closed_tickets')) && (!$allow_reopen_tickets_newer_than || $smarty.now - $allow_reopen_tickets_newer_than <= $ticket.lastmod)} {trans("Reply")} {else} {/if}
{$message.body|escape|replace:"\n":"
"}
{/box}
{include file="footer.html"}