{include_php file="shared_handle:company_management/reports/general"}
<h1>{$page.title}</h1>
<h2>{$smarty.session.company.companyName}</h2>

<hr />

<h2 class="withBG">Section One:</h2>

<table width="400">
{foreach from=$report key="sectionName" item="sectionData"}
	<tr>
		<td colspan="3"><h2 class="withBG">{$sectionName|niceText}</h2></td>
	</tr>
	{foreach from=$sectionData key="field" item="value"}
	<tr>
		<td width="25">&nbsp;</td>
		<td>{$field|niceText}</td>
		<td align="right">
		{if $value|@is_array}
			<table border="0" width="99%" style="border:1px solid black;">
			{foreach from=$value key="subField" item="subValue"}
			<tr>
				<td align="right">{$subField}</td>
				<td align="right">{$subValue}</td>
			</tr>
			{/foreach}
			</table>
		{else}
			{$value|number_format:0}
		{/if}
		</td>
	</tr>
	{/foreach}
{/foreach}
</table>
