<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Journal <?php echo $menu_label ?></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><br />
<div style="width:100%; height:500px; overflow:auto">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
   <?php	   
	$sweep_date=json_decode($date_journal);
	foreach($sweep_date as $rows){		   
  ?>
    <tr>
		<td colspan="6" class="s0"><?php echo $rows->CompanyName; ?></td>
    </tr>
    <tr>
		<td colspan="6" class="s0"><?php echo $rows->BranchName; ?></td>
    </tr>
    <tr>
		<td colspan="6" class="s1">Journal Inter Bank Transfer</td>
    </tr>
	<tr>
		<td colspan="6" class="s1">&nbsp;</td>
    </tr>
    <tr>
		<td width="20" class="s4">Account No</td>
		<td width="43" class="s4">Account Name</td>
		<td width="118" class="s4" align="right">Debit(Base)</td>
		<td width="85" class="s4" align="right">Credit(Base)</td>
		<td width="118" class="s4" align="right">Debit(Prime)</td>
		<td width="85" class="s4" align="right">Credit(Prime)</td>
    </tr>
  
	<tr>
		 <td height="23" class="s3" colspan="6"> <?php echo 'Transaksi Number : ';?> <?php echo $rows->IBankNumber; ?> <?php echo 'Description : ';?> <?php echo $rows->IBankDesc; ?></td>
    </tr> 
  <?php
	}	   
  ?>
  
  <?php	   
	$sweep_jurnal=json_decode($list_jurnal); 
	foreach($sweep_jurnal as $row){
		if($row->IBankSaldoDebet > 0){
 
  ?>
	<tr>
	    <td class="s3"><?php echo $row->IBankAccountNumber; ?></td>
		<td class="s5"><?php echo $row->AccountName.' - '.$row->BranchName; ?></td>
		<td class="s5" align="right"><?php echo number_format($row->IBankSaldoDebet,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format($row->IBankSaldoCredit,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format($row->AmountCurrency,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
		
    </tr>
    <?php }else{ ?>
    <tr>
	    <td class="s3"><?php echo $row->IBankAccountNumber; ?></td>
		<td class="s5"><?php echo $row->AccountName.' - '.$row->BranchName; ?></td>
		<td class="s5" align="right"><?php echo number_format($row->IBankSaldoDebet,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format($row->IBankSaldoCredit,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format($row->AmountCurrency,"2",",","."); ?></td>
    </tr>
    
  <?php
  		}
	}	   
  ?>
 
    <tr>
		<td class="s5" align="right" colspan="6">&nbsp;</td>
	</td>
</table></div>
</body></html>

