<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Chart Of Account</title>
</head>
<body style="width:auto; margin:auto">

<table width="70%" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; margin-top:10px;">
    <tr>
		<td colspan="3" class="s0"><?php echo $CompanyName ?></td>
    </tr>
    <tr>
		<td colspan="3" class="s1">List Chart Of Account</td>
    </tr>
    <tr>
		<td width="120" class="s4">Account Number</td>
		<td width="150" class="s4">Account Name</td>
		<td width="150" class="s4">Account Type</td>
    </tr>
  <?php	   
foreach($list as $row){		   
?>
	<tr>
		<td class="s5"><span style="padding-left:<?php echo $row->AccountLevel; ?>em;"><?php echo $row->AccountNumber; ?></span></td>
		<td class="s3"><span style="padding-left:<?php echo $row->AccountLevel; ?>em;"><?php echo $row->AccountName; ?></span></span></td>
		<td class="s5"><?php echo $row->AccountTypeName; ?></td>
    </tr> 
<?php
}	   
?>
</table>
</body></html>

