{include file="clearheader.html"}
<!--// $Id$ //-->
<TABLE WIDTH="100%">
	<TR>
		<TD WIDTH="99%" VALIGN="TOP">
			<H1>{$layout.pagetitle}</H1>
		</TD>
		<TD WIDTH="1%" ALIGN="RIGHT" NOWRAP>
			LMS {$layout.lmsv} @ {$layout.hostname}<BR>
			{t a=trans($smarty.now|date_format:"l") b=$smarty.now|date_format:"Y-m-d"}<!date-format>$a, $b{/t}
			<br>
			{t a=$layout.logname}Prepared by: $a{/t}
		</TD>
	</TR>
</TABLE>
<TABLE WIDTH="640" CELLPADDING="3" BORDER="1" ALIGN="CENTER">
	<TR>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%">
			<B>{trans("No.")}</B>
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%">
			<B>{trans("Ticket No.")}</B>
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%">
			{trans("Request date")}
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="96%" NOWRAP>
			{trans("Subject")}
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%" NOWRAP>
			{trans("Customer")}
		</TD>
	</TR>
	{cycle values="white,grey" print=false}
	{foreach $list as $ticket}
	<TR class="{cycle}">
		<TD ALIGN="CENTER">
			{counter}.
		</TD>
		<TD ALIGN="CENTER">
			<B>{$ticket.id|string_format:"%08d"}</B>
		</TD>
		<TD ALIGN="CENTER">
			{$ticket.createtime|date_format:"Y-m-d"}
		</TD>
		<TD>
			{$ticket.subject|escape}
		</TD>
		<TD NOWRAP>
			{if $ticket.customerid}
			{$ticket.customername|truncate:"50":"&hellip;":true} ({$ticket.customerid|string_format:"%04d"})
			{if $ticket.city}<BR>{$ticket.city}{if $ticket.address}, {$ticket.address}{/if}{/if}
			{if $ticket.phones}<BR>{trans("phone:")} {$ticket.phones}{/if}
			{if $ticket.emails}<BR>{trans("email:")} {$ticket.emails}{/if}
			{else}
			{$ticket.requestor|truncate:"50":"&hellip;":true}
			{/if}
		</TD>
	</TR>
	{foreachelse}
	<tr>
		<td colspan="7" class="empty-table">
			{trans("No such requests in database.")}
		</td>
	</tr>
	{/foreach}
</TABLE>
{include file="clearfooter.html"}
