{include file="header.html"} {$allow_reopen_tickets_newer_than = intval(ConfigHelper::getConfig('userpanel.allow_reopen_tickets_newer_than', 0))} {$allow_message_add_to_closed_tickets = intval(ConfigHelper::getConfig('userpanel.allow_message_add_to_closed_tickets', 1))}
{box title="Message"}
{img src="helpdesk.gif" alt=""} {trans("Subject:")}
{img src="help.gif" alt=""} {trans("Body:")}
{img src="attach.gif" alt=""} {trans("Attachments:")}
{t a=$post_max_size.text}Maximum total file size: $a{/t}
{t a=$upload_max_filesize.text}Maximum single file size: $a{/t}
{trans("Submit")} {img src="save.gif" alt="Submit"}
{/box}
{box title=$title} {foreach from=$ticket.messages item=message} {/foreach}
{$message.createtime|date_format:"Y-m-d
H:i"}
{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 || $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"}