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

<div style="padding:2px">
	<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-print'" onClick="link_print('<?php echo $menu_link; ?>/to_print')">Print</a>
</div><br />

<table width="70%" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; margin-top:10px;">
    <tr>
		<td height="40" colspan="10" class="s0"><?php echo $this->load->model('file/m_new_company')->get_company_name($this->session->userdata('company')); ?></td>
    </tr>
    <tr>
		<td colspan="10" class="s1">List <?php echo $menu_label; ?></td>
    </tr>
    <tr>
		<td width="43" class="s4">Date</td>
		<td width="118" class="s4">Source</td>
		<td width="85" class="s4">Source No</td>
		<td width="85" class="s4">Account No</td>
		<td width="85" class="s4">Account Name</td>
		<td width="85" class="s4">Debet</td>
		<td width="85" class="s4">Credit</td>
    </tr>
  <?php	 
   $data = json_decode($list);
   foreach($data as $row){		   
?>
	<tr>
		<td class="s5"><?php echo $row->Date; ?></td>
		<td class="s3"><span class="s5"><?php echo $row->Source; ?></span></td>
		<td class="s5"><?php echo $row->SourceNo; ?></td>
		<td class="s5"><?php echo $row->AccountNo; ?></td>
		<td class="s5"><?php echo $row->AccountName; ?></td>
		<td class="s5"><?php echo number_format($row->Debet,"0",",","."); ?></td>
		<td class="s5"><?php echo number_format($row->Credit,"0",",","."); ?></td>
    </tr> 
<?php
}	   
?>
</table>
</body></html>

