<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo $menu_label; ?></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="window.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="30" class="s4">Branch</td>
		<td width="25" class="s4">Item Code</td>
		<td width="60" class="s4">Item Description</td>
		<td width="25" class="s4">Unit</td>
		<td width="20" class="s4">Qty</td>
		<td width="75" class="s4">Depreciate Method</td>
		<td width="75" class="s4">Estimated Life (Month)</td>
		<td width="65" class="s4">Depriciate Rate (%)</td>
    </tr>
  <?php	   
foreach($list as $row){	
$asset = $this->m_fixed_asset_type->get_by_name($row->ItemCategoryName);
	
	$dep_meth = "";	$est_life = "";	$dep_rate = "";
	foreach($asset as $rw) {
		$dep_meth = get_depreciate_method($rw->DepMethodID);
		$est_life = get_depreciate_method($rw->EstimatedLife);
		$dep_rate = get_depreciate_method($rw->DepriciateRate);
	}
?>
	<tr>
		<td class="s5"><?php echo $row->BranchName; ?></td>
		<td class="s5"><?php echo $row->ItemCode; ?></td>
		<td class="s5"><?php echo $row->ItemDesc; ?></td>
		<td class="s5"><?php echo $row->ItemUnit; ?></td>
		<td class="s5"><?php echo $row->ItemQty; ?></td>
		<td class="s5"><?php echo $dep_meth; ?></td>
		<td class="s5"><?php echo $est_life; ?></td>
		<td class="s5"><?php echo $dep_rate; ?></td>
    </tr> 
<?php
}	   
?>
</table>
</body></html>