{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="95%">
			{trans("Customer")}
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%" NOWRAP>
			{trans("Total")}
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%" NOWRAP>
			{trans("customer's side")}
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%" NOWRAP>
			{trans("company's side")}
		</TD>
		<TD CLASS="HEAD" ALIGN="CENTER" WIDTH="1%">
			{trans("unknown/other<!plural>")}
		</TD>
	</TR>
	{cycle values="white,grey" print=false}
	{section name=list loop=$list}
	<TR class="{cycle}">
		<TD ALIGN="CENTER">
			{counter}
		</TD>
		<TD>
			<B>{$list[list].customername|truncate:"50":"&hellip;":true} ({$list[list].customerid|string_format:"%04d"})</B>
		</TD>
		<TD ALIGN="RIGHT">
			{$list[list].total}
		</TD>
		<TD ALIGN="RIGHT">
			{$list[list].customer}
		</TD>
		<TD ALIGN="RIGHT">
			{$list[list].company}
		</TD>
		<TD ALIGN="RIGHT">
			{$list[list].other}
		</TD>
	</TR>
	{sectionelse}
		<tr>
			<td colspan="6" class="empty-table">
				{trans("No such requests in database.")}
			</td>
		</tr>
	{/section}
	<TR class="grey">
		<TD COLSPAN="2" ALIGN="RIGHT"><B>{trans("Total:")}</B></TD>
		<TD ALIGN="RIGHT"><B>{sum array=$list column="total"}</B></TD>
		<TD ALIGN="RIGHT"><B>{sum array=$list column="customer"}</B></TD>
		<TD ALIGN="RIGHT"><B>{sum array=$list column="company"}</B></TD>
		<TD ALIGN="RIGHT"><B>{sum array=$list column="other"}</B></TD>
	</TR>
</TABLE>
{include file="clearfooter.html"}
