{t 0=$ticket.ticketid|string_format:"%06d"}Ticket No. $0{/t}
{t}Subject:{/t} {$ticket.subject|escape|truncate:50:"...":true}
{t}Submitter:{/t} {if $ticket.customerid} {$ticket.customername|escape} ({$ticket.customerid|string_format:"%04d"}) {else} {$ticket.requestor|escape} {/if} {if $ticket.requestoremail && !$ticket.customerid} <{$ticket.requestoremail}> {/if}
{t}Create time:{/t} {$ticket.createtime|date_format:"%Y/%m/%d %H:%M:%S"}
{t}Uptime:{/t} {$ticket.uptime}
{t}Owner:{/t} {$ticket.ownername}
{t}Queue:{/t} {$ticket.queuename}
{t}Status:{/t} {$ticket.status}
{t}Cause:{/t} {if $ticket.cause==2}{t}company's side{/t} {elseif $ticket.cause==1}{t}customer's side{/t} {else}{t}unknown/other{/t}{/if}
{if $ticket.state < 2} {t}Resolve{/t}   {/if} {t}Delete{/t} {t}Edit{/t} {t}Print{/t} {t}Cancel{/t}

{if $stats}

{t}Requests causes (last year):{/t} {t}company's side{/t}: {$stats.2.num|default:0}, {t}customer's side{/t}: {$stats.1.num|default:0}, {t}unknown/other{/t}: {$stats.0.num|default:0}, {t}all{/t}: {$stats.0.num+$stats.1.num+$stats.2.num}

{/if} {if $customer}

{t}Customer:{/t} {$customer.customername}  »  {$customer.address}   {$customer.zip} {$customer.city} {if $customer.phone} »  {$customer.phone}{/if}  »  {if $customer.balance < 0}{/if}{$customer.balance|money_format}{if $customer.balance < 0}{/if} {if $customer.groups} ({foreach from=$customer.groups item=item name=groups}{$item.name}{if $smarty.foreach.groups.iteration < sizeof($customer.groups)}, {/if}{/foreach}) {/if}

{/if}