<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Piutang Karyawan</title>
</head>
<body style="width:auto; margin:auto">
<style type="text/css">
@media print {
.noPrint { display: none; }
}
</style>
<div style="padding:2px">
	<a href="#" class="easyui-linkbutton noPrint" data-options="plain:true,iconCls:'icon-print'"  onClick="window.print()">Print</a>
</div>
  
  <table width="88%" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; margin-top:10px;">
    <tr>
      <td colspan="7" class="s0"><?php echo $this->session->userdata('company_name'); ?></td>
      </tr>
    <tr>
      <td height="55" colspan="7" class="s1">List Piutang Karyawan</td>
      </tr>
    <tr>
      <td width="43" class="s4"><div align="center">No</div></td>
      <td width="147" class="s4"><div align="center">No Piutang</div></td>
      <td width="106" class="s4"><div align="center">Date</div></td>
      <td width="118" class="s4"><div align="center">From</div></td>
      <td width="192" class="s4"><div align="center">TO</div></td>
      <td width="198" class="s4"><div align="center">Amount</div></td>
      <td width="293" class="s4"><div align="center">Description</div></td>
      </tr>
    <?php	
   $no=0;  
   foreach($list as $row){		   
?>
    <tr>
      <td class="s5"><div align="center"><?php echo ++$no; ?></div></td>
      <td class="s5"><div align="center"><?php echo $row->EDebtNumber; ?></div></td>
      <td class="s3"><div align="center"><span class="s5"><?php echo convert_to_textual($row->EDebtDate); ?></span></div></td>
      <td class="s5"><div align="center"><?php echo $row->CompTransCode; ?></div></td>
      <td class="s3"><div align="center"><span class="s5"><?php //echo $row->EmplRecpCode; ?>  <?php echo $row->EmployeeName; ?></span></div></td>
      <td class="s3"><div align="center"><span class="s5"><?php echo number_format($row->EDebtAmount,"2",",","."); ?></span></div></td>
      <td class="s3"><div align="center"><span class="s5"><?php echo $row->EDebtDesc; ?></span></div></td>
      </tr> 
  <?php
}	   
?>
  </table>
</div>
</body></html>

