<?php

if($bulan=='Januari'){
	$bulannya='Desember';
	$tahunnya=$tahun-1;
}
elseif($bulan=='Februari'){
	$bulannya='Januari';
	$tahunnya=$tahun;
}
elseif($bulan=='Maret'){
	$bulannya='Februari';
	$tahunnya=$tahun;
}
elseif($bulan=='April'){
	$bulannya='Maret';
	$tahunnya=$tahun;
}
elseif($bulan=='Mei'){
	$bulannya='April';
	$tahunnya=$tahun;
}
elseif($bulan=='Juni'){
	$bulannya='Mei';
	$tahunnya=$tahun;
}
elseif($bulan=='Juli'){
	$bulannya='Juni';
	$tahunnya=$tahun;
}
elseif($bulan=='Agustus'){
	$bulannya='Juli';
	$tahunnya=$tahun;
}
elseif($bulan=='September'){
	$bulannya='Agustus';
	$tahunnya=$tahun;
}
elseif($bulan=='Oktober'){
	$bulannya='September';
	$tahunnya=$tahun;
}
elseif($bulan=='November'){
	$bulannya='Oktober';
	$tahunnya=$tahun;
}
elseif($bulan=='Desember'){
	$bulannya='November';
	$tahunnya=$tahun;
}
mysql_select_db($database_sistem, $sistem);
$query_saldo_awal = "SELECT * FROM saldo_tb where bulan='$bulannya' and tahun='$tahunnya'";
$saldo_awal = mysql_query($query_saldo_awal, $sistem) or die(mysql_error());
$row_saldo_awal = mysql_fetch_assoc($saldo_awal);
$totalRows_saldo_awal = mysql_num_rows($saldo_awal);

mysql_select_db($database_sistem, $sistem);
$query_saldo_akhir = "SELECT  sum(col_1110)as kas, sum(col_1120a)as bank1, sum(col_1120b)as bank2, sum(col_1120c)as bank3, sum(col_1120d)as bank4, sum(col_1120e)as bank5, sum(col_1120f)as bank6, sum(col_1120g)as bank7, sum(col_1120h)as bank8, sum(col_1120i)as bank9, sum(col_1120j)as bank10, sum(col_1120k)as bank11, sum(col_1120l)as bank12, sum(col_1120m)as bank13, sum(col_1120n)as bank14, sum(col_1120o)as bank15, sum(col_1120p)as bank16, sum(col_1120q)as bank17, sum(col_1120r)as bank18, sum(col_1120s)as bank19, sum(col_1120t)as bank20, sum(col_1130a)as depo1, sum(col_1130b)as depo2, sum(col_1130c)as depo3, sum(col_1130d)as depo4, sum(col_1130e)as depo5, sum(col_1130f)as depo6, sum(col_1130g)as depo7, sum(col_1130h)as depo8, sum(col_1130i)as depo9, sum(col_1130j)as depo10, sum(col_1130k)as depo11, sum(col_1130l)as depo12, sum(col_1130m)as depo13, sum(col_1130n)as depo14, sum(col_1130o)as depo15, sum(col_1130p)as depo16, sum(col_1130q)as depo17, sum(col_1130r)as depo18, sum(col_1130s)as depo19, sum(col_1130t)as depo20, sum(col_1140)as piutang, sum(col_1150)as persediaan, sum(col_1160)as bdd, sum(col_1170)as inves, sum(col_1210)as tanah, sum(col_1220)as gedung, sum(col_1230)as kendaraan, sum(col_1240)as inventaris, sum(col_1250)as atl, sum(col_1300)as susut, sum(col_2110)as hutang_usaha, sum(col_2120)as hutang_bank, sum(col_2130)as hutang_pajak, sum(col_2140)as hutang_pdd, sum(col_2150)as hutang_bmh, sum(col_3000)as modal, sum(col_shu)as shu from saldo_tb where bulan='$bulan' and tahun='$tahun'";
$saldo_akhir = mysql_query($query_saldo_akhir, $sistem) or die(mysql_error());
$row_saldo_akhir = mysql_fetch_assoc($saldo_akhir);
$totalRows_saldo_akhir = mysql_num_rows($saldo_akhir);
?>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
<div id="TabbedPanels1" class="TabbedPanels">
  <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">Lap. Aktivitas</li>
    <li class="TabbedPanelsTab" tabindex="0">Neraca</li>
  </ul>
  <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">
      <table width="100%" 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_konsol.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_konsol.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_konsol.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_konsol.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_konsol.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_konsol.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_konsol"><img src="images/cetak1.png" width="41" height="32" /></a></td>
                    </tr>
                  </table>
                </form></td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="TabbedPanelsContent">
      <table width="90%" border="0" align="center" cellpadding="1" class="isi_tabel">
        <tr>
          <td colspan="2" valign="top"><h1 style="color:#033">Neraca <a href="?section=Report&module=print&amp;bb=neraca_konsol"><img src="images/cetak1.png" width="41" height="32" /></a></h1></td>
        </tr>
        <tr>
          <td width="50%" valign="top"><table width="90%" border="0" align="center" cellpadding="1" class="isi_tabel">
            <tr align="center">
              <td colspan="4"><hr /></td>
            </tr>
            <tr align="center">
              <td width="10%">Akun</td>
              <td width="20%">Keterangan</td>
              <td colspan="2">Saldo Akhir</td>
            </tr>
            <tr>
              <td colspan="4"><hr /></td>
            </tr>
            <tr>
              <td>Aktiva Lancar</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="center">1110</td>
              <td width="20%">Kas</td>
              <td width="5%" align="right">Rp.</td>
              <td width="15%" align="right"><a href="?section=Report&module=kas_konsol&saldo=<?php echo $row_saldo_akhir['kas'];?>"><?php echo formatRupiah($row_saldo_akhir['kas']);?></a></td>
            </tr>
      <tr>
        <td align='center'>1120</td>
        <td>Bank</td>
        <td align='right' width='3%'>Rp.</td>
        <td align='right'><a href="?section=Report&module=bank_konsol&saldo=<?php echo $row_saldo_akhir['bank1']+$row_saldo_akhir['bank2']+$row_saldo_akhir['bank3']+$row_saldo_akhir['bank4']+$row_saldo_akhir['bank5']+$row_saldo_akhir['bank6']+$row_saldo_akhir['bank7']+$row_saldo_akhir['bank8']+$row_saldo_akhir['bank9']+$row_saldo_akhir['bank10']+$row_saldo_akhir['bank11']+$row_saldo_akhir['bank12']+$row_saldo_akhir['bank13']+$row_saldo_akhir['bank14']+$row_saldo_akhir['bank15']+$row_saldo_akhir['bank16']+$row_saldo_akhir['bank17']+$row_saldo_akhir['bank18']+$row_saldo_akhir['bank19']+$row_saldo_akhir['bank20'];?>"><?php echo formatRupiah($row_saldo_akhir['bank1']+$row_saldo_akhir['bank2']+$row_saldo_akhir['bank3']+$row_saldo_akhir['bank4']+$row_saldo_akhir['bank5']+$row_saldo_akhir['bank6']+$row_saldo_akhir['bank7']+$row_saldo_akhir['bank8']+$row_saldo_akhir['bank9']+$row_saldo_akhir['bank10']+$row_saldo_akhir['bank11']+$row_saldo_akhir['bank12']+$row_saldo_akhir['bank13']+$row_saldo_akhir['bank14']+$row_saldo_akhir['bank15']+$row_saldo_akhir['bank16']+$row_saldo_akhir['bank17']+$row_saldo_akhir['bank18']+$row_saldo_akhir['bank19']+$row_saldo_akhir['bank20']);?></a></td>
      </tr>
      <tr>
        <td align='center'>1130</td>
        <td>Deposito</td>
         <td align='right'>Rp.</td>
        <td align='right'><a href="?section=Report&module=depo_konsol&saldo=<?php echo $row_saldo_akhir['depo1']+$row_saldo_akhir['depo2']+$row_saldo_akhir['depo3']+$row_saldo_akhir['depo4']+$row_saldo_akhir['depo5']+$row_saldo_akhir['depo6']+$row_saldo_akhir['depo7']+$row_saldo_akhir['depo8']+$row_saldo_akhir['depo9']+$row_saldo_akhir['depo10']+$row_saldo_akhir['depo11']+$row_saldo_akhir['depo12']+$row_saldo_akhir['depo13']+$row_saldo_akhir['depo14']+$row_saldo_akhir['depo15']+$row_saldo_akhir['depo16']+$row_saldo_akhir['depo17']+$row_saldo_akhir['depo18']+$row_saldo_akhir['depo19']+$row_saldo_akhir['depo20'];?>"><?php echo formatRupiah($row_saldo_akhir['depo1']+$row_saldo_akhir['depo2']+$row_saldo_akhir['depo3']+$row_saldo_akhir['depo4']+$row_saldo_akhir['depo5']+$row_saldo_akhir['depo6']+$row_saldo_akhir['depo7']+$row_saldo_akhir['depo8']+$row_saldo_akhir['depo9']+$row_saldo_akhir['depo10']+$row_saldo_akhir['depo11']+$row_saldo_akhir['depo12']+$row_saldo_akhir['depo13']+$row_saldo_akhir['depo14']+$row_saldo_akhir['depo15']+$row_saldo_akhir['depo16']+$row_saldo_akhir['depo17']+$row_saldo_akhir['depo18']+$row_saldo_akhir['depo19']+$row_saldo_akhir['depo20']);?></a></td>
      </tr>
            <tr>
              <td align="center">1140</td>
              <td>Piutang</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1140"><?php echo formatRupiah($row_saldo_akhir['piutang']);?></a></td>
            </tr>
            <tr>
              <td align="center">1150</td>
              <td>Persediaan</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol3&akun=1150"><?php echo formatRupiah($row_saldo_akhir['persediaan']);?></a></td>
            </tr>
            <tr>
              <td align="center">1160</td>
              <td>Piutang Lain</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol3&akun=1160"><?php echo formatRupiah($row_saldo_akhir['bdd']);?></a></td>
            </tr>
            <tr>
              <td align="center">1170</td>
              <td>Investasi Lainnya</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1170"><?php echo formatRupiah($row_saldo_akhir['inves']);?></a></td>
            </tr>
            <tr>
              <td colspan="4" align="center"><hr /></td>
            </tr>
            <tr>
              <td align="left">&nbsp;</td>
              <td align="left">&nbsp;</td>
              <td align="right">Rp.</td>
              <td align="right"><?php
        $tal=$row_saldo_akhir['kas']+$row_saldo_akhir['bank1']+$row_saldo_akhir['bank2']+$row_saldo_akhir['bank3']+$row_saldo_akhir['bank4']+$row_saldo_akhir['bank5']+$row_saldo_akhir['bank6']+$row_saldo_akhir['bank7']+$row_saldo_akhir['bank8']+$row_saldo_akhir['bank9']+$row_saldo_akhir['bank10']+$row_saldo_akhir['bank11']+$row_saldo_akhir['bank12']+$row_saldo_akhir['bank13']+$row_saldo_akhir['bank14']+$row_saldo_akhir['bank15']+$row_saldo_akhir['bank16']+$row_saldo_akhir['bank17']+$row_saldo_akhir['bank18']+$row_saldo_akhir['bank19']+$row_saldo_akhir['bank20']+$row_saldo_akhir['depo1']+$row_saldo_akhir['depo2']+$row_saldo_akhir['depo3']+$row_saldo_akhir['depo4']+$row_saldo_akhir['depo5']+$row_saldo_akhir['depo6']+$row_saldo_akhir['depo7']+$row_saldo_akhir['depo8']+$row_saldo_akhir['depo9']+$row_saldo_akhir['depo10']+$row_saldo_akhir['depo11']+$row_saldo_akhir['depo12']+$row_saldo_akhir['depo13']+$row_saldo_akhir['depo14']+$row_saldo_akhir['depo15']+$row_saldo_akhir['depo16']+$row_saldo_akhir['depo17']+$row_saldo_akhir['depo18']+$row_saldo_akhir['depo19']+$row_saldo_akhir['depo20']+$row_saldo_akhir['piutang']+$row_saldo_akhir['persediaan']+$row_saldo_akhir['bdd']+$row_saldo_akhir['inves'];
echo formatRupiah($tal);
		
		?></td>
            </tr>
            <tr>
              <td colspan="4" align="left">Aktiva Tetap</td>
            </tr>
            <tr>
              <td align="center">1210</td>
              <td>Tanah</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1210"><?php echo formatRupiah($row_saldo_akhir['tanah']);?></a></td>
            </tr>
            <tr>
              <td align="center">1220</td>
              <td>Gedung</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1220"><?php echo formatRupiah($row_saldo_akhir['gedung']);?></a></td>
            </tr>
            <tr>
              <td align="center">1230</td>
              <td>Kendaraan</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1230"><?php echo formatRupiah($row_saldo_akhir['kendaraan']);?></a></td>
            </tr>
            <tr>
              <td align="center">1240</td>
              <td>Inventaris</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1240"><?php echo formatRupiah($row_saldo_akhir['inventaris']);?></a></td>
            </tr>
            <tr>
              <td align="center">1250</td>
              <td>Aktiva Tetap Lainnya</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1250"><?php echo formatRupiah($row_saldo_akhir['atl']);?></a></td>
            </tr>
            <tr>
              <td align="center">1300</td>
              <td>Akumulasi Penyusutan</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol&akun=1300"><?php echo formatRupiah($row_saldo_akhir['susut']);?></a></td>
            </tr>
            <tr>
              <td colspan="4" align="center"><hr /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td align="right">Rp.</td>
              <td align="right"><?php
        $tat=($row_saldo_akhir['tanah']+$row_saldo_akhir['gedung']+$row_saldo_akhir['kendaraan']+$row_saldo_akhir['inventaris']+$row_saldo_akhir['atl'])-$row_saldo_akhir['susut'];
echo formatRupiah($tat);
		
		?></td>
            </tr>
            <tr>
              <td colspan="4"><hr /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>TOTAL AKTIVA</td>
              <td align="right"><strong>Rp.</strong></td>
              <td align="right"><strong>
                <?php
        $ja=$tal+$tat;
echo formatRupiah($ja);
		
		?>
              </strong></td>
            </tr>
          </table></td>
          <td width="50%" valign="top"><table width="90%" border="0" align="center" cellpadding="1" class="isi_tabel">
            <tr align="center">
              <td colspan="4"><hr /></td>
            </tr>
            <tr align="center">
              <td width="10%">Akun</td>
              <td width="20%">Keterangan</td>
              <td colspan="2">Saldo Akhir</td>
            </tr>
            <tr>
              <td colspan="4"><hr /></td>
            </tr>
            <tr>
              <td>Kewajiban</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="center">2110</td>
              <td>Hutang Usaha</td>
              <td width="5%" align="right">Rp.</td>
              <td width="15%" align="right"><a href="?section=Report&module=bb_akun_konsol2&akun=2110"><?php echo formatRupiah($row_saldo_akhir['hutang_usaha']);?></a></td>
            </tr>
            <tr>
              <td align="center">2120</td>
              <td>Titipan</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol2&akun=2120"><?php echo formatRupiah($row_saldo_akhir['hutang_bank']);?></a></td>
            </tr>
            <tr>
              <td align="center">2130</td>
              <td>Sumbangan dengan Intensi</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol2&akun=2130"><?php echo formatRupiah($row_saldo_akhir['hutang_pajak']);?></a></td>
            </tr>
            <tr>
              <td align="center">2140</td>
              <td>Pendapatan Diterima Dimuka</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol2&akun=2140"><?php echo formatRupiah($row_saldo_akhir['hutang_pdd']);?></a></td>
            </tr>
            <tr>
              <td align="center">2150</td>
              <td>Biaya Yang Masih Harus Dibayar</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol2&akun=2150"><?php echo formatRupiah($row_saldo_akhir['hutang_bmh']);?></a></td>
            </tr>
            <tr>
              <td colspan="4" align="center"><hr /></td>
            </tr>
            <tr>
              <td align="center">&nbsp;</td>
              <td>Total Kewajiban</td>
              <td align="right">Rp.</td>
              <td align="right"><strong>
                <?php
        $ttl_kwj=$row_saldo_akhir['hutang_usaha']+$row_saldo_akhir['hutang_bank']+$row_saldo_akhir['hutang_pajak']+$row_saldo_akhir['hutang_pdd']+$row_saldo_akhir['hutang_pdd'];
echo formatRupiah($ttl_kwj);
		
		?>
              </strong></td>
            </tr>
            <tr>
              <td height="200" align="center">&nbsp;</td>
              <td>&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
            </tr>
            <tr>
              <td align="center">3000</td>
              <td>Modal</td>
              <td align="right">Rp.</td>
              <td align="right"><a href="?section=Report&module=bb_akun_konsol2&akun=3000"><?php echo formatRupiah($row_saldo_akhir['modal']);?></a></td>
            </tr>
            <tr>
              <td align="center">&nbsp;</td>
              <td>SHU</td>
              <td align="right">Rp.</td>
              <td align="right"><?php echo formatRupiah($row_saldo_akhir['shu']);?></td>
            </tr>
            <tr>
              <td colspan="4" align="center"><hr /></td>
            </tr>
            <tr>
              <td align="center">&nbsp;</td>
              <td>TOTAL PASIVA</td>
              <td align="right"><strong>Rp.</strong></td>
              <td align="right"><strong>
                <?php
        $jhk=$row_saldo_akhir['hutang_usaha']+$row_saldo_akhir['hutang_bank']+$row_saldo_akhir['hutang_pajak']+$row_saldo_akhir['hutang_pdd']+$row_saldo_akhir['hutang_bmh']+$row_saldo_akhir['modal']+$row_saldo_akhir['shu'];
echo formatRupiah($jhk);
		
		?>
              </strong></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table>
    </div>
  </div>
</div>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
