{ $method->exe("ticket","is_user_auth")} { if ($method->result == FALSE) } { $block->display("core:method_error") } {/if} {if $display == true}
{translate module=ticket} menu_add {/translate}
{translate module=ticket} user_select_department {/translate}

{foreach from=$results item=record} {/foreach}
{$record.name}
  {$record.description}

{else}

{translate module=ticket} user_not_auth_add {/translate}

{/if} { $method->exe("ticket","user_list")} { if ($method->result == FALSE) } { $block->display("core:method_error") } {/if} {$method->exe("ticket","is_key_match")} {if $ticket_key == true} {if $ticket_results != false}
{translate module=ticket} menu_view {/translate}
{translate module=ticket} user_ticket_list {/translate}

{foreach from=$ticket_results item=record}
{translate} field_subject {/translate} {translate} field_date_last {/translate} {translate} field_status {/translate}
{/foreach}
{$record.subject|truncate:40} { $list->date_time($record.date_orig)} { if $record.status == '0' } {translate module=ticket} status_open {/translate} { elseif $record.status == '1' } {translate module=ticket} status_hold {/translate} { elseif $record.status == '2' } {translate module=ticket} status_close {/translate} { elseif $record.status == '3' } {translate module=ticket} status_hold {/translate} { /if }

{else} {translate module=ticket} user_no_existing_ticket {/translate} {/if} {else} { $block->display("ticket:auth")} {/if}