{ $method->exe("ticket","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else} {literal} {/literal} {foreach from=$ticket item=ticket} {if $form_validation} { $block->display("core:alert_fields") } {/if}

{if $ticket.status == "2"}{/if} {$ticket.subject} - {if $ticket.status == "0"} {translate module=ticket} status_open {/translate} {/if} {if $ticket.status == "1"} {translate module=ticket} status_hold {/translate} {/if} {if $ticket.status == "2"} {translate module=ticket} status_close {/translate} {/if} {if $ticket.status == "3"} {translate module=ticket} status_pending {/translate} {/if}

{html_link name="More Options" hide=showoptions show=main_full,hideoptions action="document.getElementById('view_options').value=1;"}
{html_link name="Hide Options" show=showoptions hide=main_full,hideoptions action="document.getElementById('view_options').value=0;"}
{if $ticket.account_id > 0}
{html_link name="Show User Authentication" hide=showoptionsauth show=optionsauth,hideoptionsauth}
{html_link name="Hide User Authentication" show=showoptionsauth hide=optionsauth,hideoptionsauth}
{/if}

{if $ticket.account_id > 0}
User's Services, Products, and Groups
Services Groups Products
{if !$ticket.authsrvc} {/if} {foreach from=$ticket.authsrvc item=service}

 {$service.date_orig}   {$service.sku}

{/foreach}
{if !$ticket.authgrp} {/if} {foreach from=$ticket.authgrp item=group}

 {$group.date_orig}   {$group.name}

{/foreach}
{if !$ticket.authsku} {/if} {foreach from=$ticket.authsku item=sku}

 {$sku.dateorg}   {$sku.sku} ({$sku.qty})

{/foreach}

{/if}
{translate module=ticket}title_view{/translate} {$ticket.id}
{if $VAR._escape} {/if} {if $ticket.static_var != false} {/if}
{translate module=ticket} field_date_orig {/translate} {translate module=ticket} field_date_last {/translate} {translate module=ticket} field_status {/translate}
{$list->date_time($ticket.date_orig)} {$list->date_time($ticket.date_last)}
{translate module=ticket} field_staff_id {/translate} {translate module=ticket} field_department_id {/translate} {translate module=ticket} field_priority {/translate}
{ $list->menu("no", "ticket_staff_id", "staff", "nickname", $ticket.staff_id, "form_menu\" onChange=\"document.getElementById('ticket_view').submit()") } { $list->menu("no", "ticket_department_id", "ticket_department", "name", $ticket.department_id, "form_menu\" onChange=\"document.getElementById('ticket_view').submit()") }
{translate module=ticket} field_email {/translate} {translate module=ticket} field_account_id {/translate} {translate module=ticket} field_last_reply {/translate}
{html_select_account name="ticket_account_id" default=$ticket.account_id}
{foreach from=$ticket.static_var item=record} {/foreach}
{$record.name} {$record.html}
{ $method->exe_noauth("ticket","merge_list") }

{$ticket.body|replace:"\r\n":" "|truncate:95}
{$ticket.subject}
{$list->date_time($ticket.date_orig)}
{html_link name=edit hide=showmsg show=editmsg} | {$list->date_time($ticket.date_orig)}

{$ticket.body|linkalize|replace:"\r\n":"
"}

{if $ticket.attachments}
{foreach from=$ticket.attachments item=attach}

{$attach.name}
{$attach.size} Download

{/foreach} {/if}
{html_link name=save action="getElementById('ticket_view').submit();"} {html_link name=cancel hide=editmsg show=showmsg}
{if $ticket.reply != false} {foreach from=$ticket.reply item=reply}
{if $reply.staff_id}{$reply.staff_nickname}{else}{$reply.user_name}{/if} {$reply.message|replace:"\r\n":" "|truncate:70}
{if $reply.staff_id}{$reply.staff_nickname}{else}{$reply.user_name}{/if}
{html_link name=delete action="delete_message('`$reply.id`','`$VAR.id`');"} | {$list->date_time($reply.date_orig)}
{$list->date_time($reply.date_orig)}

{$reply.message|linkalize|replace:"\r\n":"
"}

{/foreach} {/if}

{translate module=ticket}user_add_response {/translate}

{if $list->is_installed('faq')}

{/if}
{$signature}

{translate module=ticket} enable_user_notice {/translate} Add Q&A to FAQ Module

{html_button}

{if $VAR._escape} {/if}
{/foreach} {/if}