<p>&nbsp;</p>
<table width="80%" border="0" align="center">
  <tr>
    <td><script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
<table width="90%" border="0" align="center" class="form_body">
  <tr>
    <td colspan="8"><h1 style="color:#033">Laba Rugi</h1></td>
  </tr>
  <tr height="30">
    <td width="100" align="center" background="images/bg1.png">Akun</td>
    <td align="center" background="images/bg1.png">Keterangan</td>
    <td colspan="6" align="center" background="images/bg1.png">Nominal</td>
  </tr>
  <tr height="30">
    <td colspan="8" align="left">Pendapatan</td>
  </tr>
  <?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From akun_tb where kode_unit='All' and kelompok='Pendapatan' order by akun asc ");
					          $no = 1;
							
                    while ($r = mysql_fetch_array($sql)) {
                      echo "<tr>
          <td align='center'>$r[akun]</td>
          <td align='left'>$r[keterangan]</td>
          <td align='right'>Rp.</td>
          <td align='right'>";?>
  <?php 
			if($r['index']==''){
			include 'module/_report/hitung_pdp_lr.php';
			}else{
				echo '';
			}
			?>
  <?php echo"</td>
          <td align='right'>Rp.</td>
          <td align='right'>";?>
  <?php 
			if($r['index']=='Ya'){
			include 'module/_report/hitung_pdp_index_lr.php';
			}else{
				echo '';
			}
			?>
  <?php echo"</td>
          <td></td>
          <td></td>
        </tr>";
		 $no++;
                    }
                    ?>
  <tr height="30">
    <td colspan="2"></td>
    <td></td>
    <td></td>
    <td></td>
    <td align="right"><?php include 'module/_proses/hitung_ttl_pdp_lr.php';?></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="8"><hr /></td>
  </tr>
  <tr height="30">
    <td colspan="8">Pengeluaran</td>
  </tr>
  <?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From akun_tb where kode_unit='All' and kelompok='Pengeluaran' order by akun asc ");
					          $no = 1;
							
                    while ($r = mysql_fetch_array($sql)) {
                      echo "<tr>
          <td align='center'>$r[akun]</td>
          <td align='left'>$r[keterangan]</td>
          <td align='right'>Rp.</td>
          <td align='right'>";?>
  <?php 
			if($r['index']==''){
			include 'module/_report/hitung_pnl_lr.php';
			}else{
				echo '';
			}
			?>
  <?php echo"</td>
          <td align='right'>Rp.</td>
          <td align='right'>";?>
  <?php 
			if($r['index']=='Ya'){
			include 'module/_report/hitung_pnl_index_lr.php';
			}else{
				echo '';
			}
			?>
  <?php echo"</td>
          <td></td>
          <td></td>
        </tr>";
		 $no++;
                    }
                    ?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><?php include 'module/_proses/hitung_ttl_pnl_lr.php';?></td>
    <td align="right"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="8"><hr /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Sisa Hasil Usaha</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right">Rp.</td>
    <td align="right"><?php 
  $lr=$ttl_pdp-$ttl_pnl;
  echo formatRupiah($lr);
  ?></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right">&nbsp;</td>
    <td align="right">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="8"><form id="form1" name="form1" method="post" action="?section=Report&module=rekap&amp;shu=<?php echo $lr;?>">
      <table class="isi_tabel" width="70%" border="0" align="center">
        <tr>
          <td width="200">&nbsp;</td>
          <td width="10">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>Tahun</td>
          <td>:</td>
          <td><?php echo $tahun;?></td>
        </tr>
        <tr>
          <td>Bulan</td>
          <td>:</td>
          <td><?php echo $bulan;?></td>
        </tr>
        <tr>
          <td>Laba diterima</td>
          <td>:</td>
          <td><?php 
  $lr=$ttl_pdp-$ttl_pnl;
  echo formatRupiah($lr);
  ?></td>
        </tr>
        <tr>
          <td>Cetak</td>
          <td>:</td>
          <td><a href="?section=Report&module=print&amp;bb=labarug"><img src="images/cetak1.png" width="41" height="32" /></a></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table></td>
  </tr>
</table>
<p>&nbsp;</p>

