<?php
include 'verifikasi.php';?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("REPLACE INTO saldo_tb (tahun, bulan, kode_unit, key_register, col_1110, col_1120a, col_1120b, col_1120c, col_1120d, col_1120e, col_1120f, col_1120g, col_1120h, col_1120i, col_1120j, col_1120k, col_1120l, col_1120m, col_1120n, col_1120o, col_1120p, col_1120q, col_1120r, col_1120s, col_1120t, col_1130a, col_1130b, col_1130c, col_1130d, col_1130e, col_1130f, col_1130g, col_1130h, col_1130i, col_1130j, col_1130k, col_1130l, col_1130m, col_1130n, col_1130o, col_1130p, col_1130q, col_1130r, col_1130s, col_1130t, col_1140, col_1150, col_1160, col_1170, col_1210, col_1220, col_1230, col_1240, col_1250, col_1300, col_2110, col_2120, col_2130, col_2140, col_2150, col_3000, col_shu) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['tahun'], "text"),
                       GetSQLValueString($_POST['bulan'], "text"),
                       GetSQLValueString($_POST['kode_unit'], "text"),
                       GetSQLValueString($_POST['key'], "text"),
                       GetSQLValueString($_POST['col_1110'], "text"),
                       GetSQLValueString($_POST['col_1120a'], "text"),
                       GetSQLValueString($_POST['col_1120b'], "text"),
                       GetSQLValueString($_POST['col_1120c'], "text"),
                       GetSQLValueString($_POST['col_1120d'], "text"),
                       GetSQLValueString($_POST['col_1120e'], "text"),
					   GetSQLValueString($_POST['col_1120f'], "text"),
					   GetSQLValueString($_POST['col_1120g'], "text"),
					   GetSQLValueString($_POST['col_1120h'], "text"),
					   GetSQLValueString($_POST['col_1120i'], "text"),
					   GetSQLValueString($_POST['col_1120j'], "text"),
					   GetSQLValueString($_POST['col_1120k'], "text"),
					   GetSQLValueString($_POST['col_1120l'], "text"),
					   GetSQLValueString($_POST['col_1120m'], "text"),
					   GetSQLValueString($_POST['col_1120n'], "text"),
					   GetSQLValueString($_POST['col_1120o'], "text"),
					   GetSQLValueString($_POST['col_1120p'], "text"),
					   GetSQLValueString($_POST['col_1120q'], "text"),
					   GetSQLValueString($_POST['col_1120r'], "text"),
					   GetSQLValueString($_POST['col_1120s'], "text"),
					   GetSQLValueString($_POST['col_1120t'], "text"),
                       GetSQLValueString($_POST['col_1130a'], "text"),
                       GetSQLValueString($_POST['col_1130b'], "text"),
                       GetSQLValueString($_POST['col_1130c'], "text"),
                       GetSQLValueString($_POST['col_1130d'], "text"),
                       GetSQLValueString($_POST['col_1130e'], "text"),
					   GetSQLValueString($_POST['col_1130f'], "text"),
					   GetSQLValueString($_POST['col_1130g'], "text"),
					   GetSQLValueString($_POST['col_1130h'], "text"),
					   GetSQLValueString($_POST['col_1130i'], "text"),
					   GetSQLValueString($_POST['col_1130j'], "text"),
					   GetSQLValueString($_POST['col_1130k'], "text"),
					   GetSQLValueString($_POST['col_1130l'], "text"),
					   GetSQLValueString($_POST['col_1130m'], "text"),
					   GetSQLValueString($_POST['col_1130n'], "text"),
					   GetSQLValueString($_POST['col_1130o'], "text"),
					   GetSQLValueString($_POST['col_1130p'], "text"),
					   GetSQLValueString($_POST['col_1130q'], "text"),
					   GetSQLValueString($_POST['col_1130r'], "text"),
					   GetSQLValueString($_POST['col_1130s'], "text"),
					   GetSQLValueString($_POST['col_1130t'], "text"),
                       GetSQLValueString($_POST['col_1140'], "text"),
                       GetSQLValueString($_POST['col_1150'], "text"),
                       GetSQLValueString($_POST['col_1160'], "text"),
					   GetSQLValueString($_POST['col_1170'], "text"),
                       GetSQLValueString($_POST['col_1210'], "text"),
                       GetSQLValueString($_POST['col_1220'], "text"),
                       GetSQLValueString($_POST['col_1230'], "text"),
                       GetSQLValueString($_POST['col_1240'], "text"),
					   GetSQLValueString($_POST['col_1250'], "text"),
                       GetSQLValueString($_POST['col_1300'], "text"),
                       GetSQLValueString($_POST['col_2110'], "text"),
                       GetSQLValueString($_POST['col_2120'], "text"),
                       GetSQLValueString($_POST['col_2130'], "text"),
                       GetSQLValueString($_POST['col_2140'], "text"),
                       GetSQLValueString($_POST['col_2150'], "text"),
                       GetSQLValueString($_POST['col_3000'], "text"),
                       GetSQLValueString($_POST['col_shu'], "text"));

  mysql_select_db($database_sistem, $sistem);
  $Result1 = mysql_query($insertSQL, $sistem) or die(mysql_error());
}


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' and kode_unit='$_SESSION[kode]'";
$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);
?>
<?php
include 'module/_proses/rekap_1100.php';
include 'module/_proses/rekap_1140.php';
include 'module/_proses/rekap_1150.php';
include 'module/_proses/rekap_1160.php';
include 'module/_proses/rekap_1170.php';
include 'module/_proses/rekap_1210.php';
include 'module/_proses/rekap_1220.php';
include 'module/_proses/rekap_1230.php';
include 'module/_proses/rekap_1240.php';
include 'module/_proses/rekap_1250.php';
include 'module/_proses/rekap_1300.php';
include 'module/_proses/rekap_2110.php';
include 'module/_proses/rekap_2120.php';
include 'module/_proses/rekap_2130.php';
include 'module/_proses/rekap_2140.php';
include 'module/_proses/rekap_2150.php';
include 'module/_proses/rekap_3000.php';
?>
                 <table width="100%" border="0" align="center" cellpadding="1">
                   <tr>
                     <td><form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
                       <p>&nbsp;</p>
                       <table width="100%" align="center" cellpadding="1" cellspacing="1" class="isi_tabel">
                         <tr>
                           <td colspan="8" align="left" valign="middle"><h2 style="color:#066">Rekap Saldo Buku Besar</h2>
                             <table class="isi_tabel" width="400" border="0" align="left" cellpadding="2">
                               <tr>
                                 <td>Unit</td>
                                 <td>:</td>
                                 <td><?php echo $_SESSION['kode'];?>
                                   <input type="hidden" name="kode_unit" id="kode_unit" value="<?php echo $_SESSION['kode'];?>" />
                                   <input type="hidden" name="key" id="key" value="<?php echo $_SESSION['kode'].'/'.$bulan.'/'.$tahun;?>" /></td>
                               </tr>
                               <tr>
                                 <td width="126">Tahun</td>
                                 <td width="8">:</td>
                                 <td width="246"><input name="tahun" type="text" required="required" id="tahun" size="4" maxlength="4" value="<?php echo $tahun;?>" /></td>
                               </tr>
                               <tr>
                                 <td>Bulan</td>
                                 <td>:</td>
                                 <td><input type="text" name="bulan" id="bulan" value="<?php echo $bulan;?>" readonly="readonly" /></td>
                               </tr>
                               <tr>
                                 <td>&nbsp;</td>
                                 <td>&nbsp;</td>
                                 <td><input type="submit" name="Simpan" id="Simpan" value="Rekap Laba Rugi dan Transaksi" class="button" /></td>
                               </tr>
                             </table>
                           <h2 style="color:#066">&nbsp; </h2></td>
                         </tr>
                         <tr>
                           <td colspan="8" align="center"><hr /></td>
                         </tr>
                         <tr>
                           <td height="35" colspan="4" align="center" background="images/bg2.png">AKTIVA</td>
                           <td colspan="4" align="center" background="images/bg2.png">PASIVA</td>
                         </tr>
                         <tr>
                           <td height="35" align="center">AKUN</td>
                           <td height="35" colspan="3" align="left">AKTIVA LANCAR</td>
                           <td align="center">AKUN</td>
                           <td colspan="3" align="left">KEWAJIBAN</td>
                         </tr>
                         <tr>
                           <td colspan="8" align="center"></td>
                         </tr>
                         <tr>
                           <td width="100" height="25" align="center">1110</td>
                           <td width="169" height="25" align="left">KAS</td>
                           <td width="23" height="25" align="right">Rp</td>
                           <td width="64" height="25" align="right"><?php echo formatRupiah($saldo_kas);?>
                             <input name="col_1110" type="hidden" id="col_1110" size="20" maxlength="20" required="required" value="<?php echo $saldo_kas;?>" /></td>
                           <td width="64" height="25" align="center">2110</td>
                           <td width="233" height="25" align="left">HUTANG USAHA</td>
                           <td width="23" height="25" align="right">Rp</td>
                           <td width="100" height="25" align="right"><?php echo formatRupiah($saldo_hu);?>
                             <input name="col_2110" type="hidden" id="col_2110" size="20" maxlength="20" required="required"  value="<?php echo $saldo_hu;?>"/></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1120</td>
                           <td height="25" align="left">BANK</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 1' and jenis='Bank' order by kode_bank asc ");
							  $r1 = mysql_fetch_array($sql);
							  
							  mysql_select_db($database_sistem, $sistem);
$query_saldobank1 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r1[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank1 = mysql_query($query_saldobank1, $sistem) or die(mysql_error());
$row_saldobank1 = mysql_fetch_assoc($saldobank1);
$totalRows_saldobank1 = mysql_num_rows($saldobank1);

$saldoawalbank1=$row_saldo_awal['col_1120a'];
$saldoakhir_bank1=($saldoawalbank1+$row_saldobank1['ttl_dbt'])-$row_saldobank1['ttl_krd'];
							  ?>
                             <input name="col_1120a" type="text" id="col_1120a" size="20" maxlength="20" value="<?php echo $saldoakhir_bank1;?>" required="required" placeholder="Bank 1" /></td>
                           <td height="25" align="center">2120</td>
                           <td height="25" align="left">Titipan</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_hb);?>
                             <input name="col_2120" type="hidden" id="col_2120" size="20" maxlength="20" required="required"  value="<?php echo $saldo_hb;?>" /></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td rowspan="7" align="left"><table class="form_body" width="200" border="0" cellpadding="1">
                             <?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Bank' order by kode_bank asc ");
					          $no = 1;
							
                    while ($r = mysql_fetch_array($sql)) {
                      echo "<tr>
					  <td>$r[kode_bank]</td>
                    <td>$r[no_rek]</td>
                    <td align='right'>";?>
                             <?php include 'module/_proses/rekap_bank.php';?>
                             <?php echo"</td>
                  </tr>";
		 $no++;
                    }
                    ?>
                           </table></td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 2' and jenis='Bank' order by kode_bank asc ");
							  $r2 = mysql_fetch_array($sql);
							  
							  							  mysql_select_db($database_sistem, $sistem);
$query_saldobank2 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r2[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank2 = mysql_query($query_saldobank2, $sistem) or die(mysql_error());
$row_saldobank2 = mysql_fetch_assoc($saldobank2);
$totalRows_saldobank2 = mysql_num_rows($saldobank2);

$saldoawalbank2=$row_saldo_awal['col_1120b'];
$saldoakhir_bank2=($saldoawalbank2+$row_saldobank2['ttl_dbt'])-$row_saldobank2['ttl_krd'];
							  ?>
                             <input name="col_1120b" type="text" id="col_1120b" size="20" maxlength="20" required="required" value="<?php echo $saldoakhir_bank2;?>" placeholder="Bank 2" /></td>
                           <td height="25" align="center">2130</td>
                           <td height="25" align="left">Sumbangan dengan Intensi</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_hp);?>
                             <input name="col_2130" type="hidden" id="col_2130" size="20" maxlength="20" required="required"  value="<?php echo $saldo_hp;?>" /></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 3' and jenis='Bank' order by kode_bank asc ");
							  $r3 = mysql_fetch_array($sql);
							  
							  mysql_select_db($database_sistem, $sistem);
$query_saldobank3 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r3[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank3 = mysql_query($query_saldobank3, $sistem) or die(mysql_error());
$row_saldobank3 = mysql_fetch_assoc($saldobank3);
$totalRows_saldobank3 = mysql_num_rows($saldobank3);

$saldoawalbank3=$row_saldo_awal['col_1120c'];
$saldoakhir_bank3=($saldoawalbank3+$row_saldobank3['ttl_dbt'])-$row_saldobank3['ttl_krd'];
							  ?>
                             <input name="col_1120c" type="text" id="col_1120c" size="20" maxlength="20" value="<?php echo $saldoakhir_bank3;?>" required="required" placeholder="Bank 3" /></td>
                           <td height="25" align="center">2140</td>
                           <td height="25" align="left">PENDAPATAN DITERIMA DIMUKA</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_pdd);?>
                             <input name="col_2140" type="hidden" id="col_2140" size="20" maxlength="20" required="required"  value="<?php echo $saldo_pdd;?>" /></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 4' and jenis='Bank' order by kode_bank asc ");
							  $r4 = mysql_fetch_array($sql);
							  
							  $query_saldobank4 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r4[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank4 = mysql_query($query_saldobank4, $sistem) or die(mysql_error());
$row_saldobank4 = mysql_fetch_assoc($saldobank4);
$totalRows_saldobank4 = mysql_num_rows($saldobank4);

$saldoawalbank4=$row_saldo_awal['col_1120d'];
$saldoakhir_bank4=($saldoawalbank4+$row_saldobank4['ttl_dbt'])-$row_saldobank4['ttl_krd'];
							  ?>
                             <input name="col_1120d" type="text" id="col_1120d" size="20" maxlength="20" required="required" value="<?php echo $saldoakhir_bank4;?>" placeholder="Bank 4" /></td>
                           <td height="25" align="center">2150</td>
                           <td height="25" align="left">BIAYA YG MASIH HARUS DIBAYAR</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_bmhd);?>
                             <input name="col_2150" type="hidden" id="col_2150" size="20" maxlength="20" required="required"  value="<?php echo $saldo_bmhd;?>" /></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 5' and jenis='Bank' order by kode_bank asc ");
							  $r5 = mysql_fetch_array($sql);
							  
							  $query_saldobank5 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r5[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank5 = mysql_query($query_saldobank5, $sistem) or die(mysql_error());
$row_saldobank5 = mysql_fetch_assoc($saldobank5);
$totalRows_saldobank5 = mysql_num_rows($saldobank5);

$saldoawalbank5=$row_saldo_awal['col_1120e'];
$saldoakhir_bank5=($saldoawalbank5+$row_saldobank5['ttl_dbt'])-$row_saldobank5['ttl_krd'];
						
							  ?>
                             <input name="col_1120e" type="text" id="col_1120e" size="20" maxlength="20" required="required" value="<?php echo $saldoakhir_bank5;?>" placeholder="Bank 5" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 6' and jenis='Bank' order by kode_bank asc ");
							  $r6 = mysql_fetch_array($sql);
							  
							  $query_saldobank6 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r6[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank6 = mysql_query($query_saldobank6, $sistem) or die(mysql_error());
$row_saldobank6 = mysql_fetch_assoc($saldobank6);
$totalRows_saldobank6 = mysql_num_rows($saldobank6);

$saldoawalbank6=$row_saldo_awal['col_1120f'];
$saldoakhir_bank6=($saldoawalbank6+$row_saldobank6['ttl_dbt'])-$row_saldobank6['ttl_krd'];
						
							  ?>
                             <input name="col_1120f" type="text" id="col_1120f" size="20" maxlength="20" value="<?php echo $saldoakhir_bank6;?>" required="required" placeholder="Bank 6" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 7' and jenis='Bank' order by kode_bank asc ");
							  $r7 = mysql_fetch_array($sql);
							  
							  $query_saldobank7 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r7[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank7 = mysql_query($query_saldobank7, $sistem) or die(mysql_error());
$row_saldobank7 = mysql_fetch_assoc($saldobank7);
$totalRows_saldobank7 = mysql_num_rows($saldobank7);

$saldoawalbank7=$row_saldo_awal['col_1120g'];
$saldoakhir_bank7=($saldoawalbank7+$row_saldobank7['ttl_dbt'])-$row_saldobank7['ttl_krd'];
						
							  ?>
                             <input name="col_1120g" type="text" id="col_1120g" size="20" maxlength="20" value="<?php echo $saldoakhir_bank7;?>" required="required" placeholder="Bank 7" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]' and kode_bank='Bank 8' and jenis='Bank' order by kode_bank asc ");
							  $r8 = mysql_fetch_array($sql);
							  
							  $query_saldobank8 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$r8[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldobank8 = mysql_query($query_saldobank8, $sistem) or die(mysql_error());
$row_saldobank8 = mysql_fetch_assoc($saldobank8);
$totalRows_saldobank8 = mysql_num_rows($saldobank8);

$saldoawalbank8=$row_saldo_awal['col_1120h'];
$saldoakhir_bank8=($saldoawalbank8+$row_saldobank8['ttl_dbt'])-$row_saldobank8['ttl_krd'];
						
							  ?>
                             <input name="col_1120h" type="text" id="col_1120h" size="20" maxlength="20" value="<?php echo $saldoakhir_bank8;?>" required="required" placeholder="Bank 8" /></td>
                           <td height="25" align="center"><input name="col_1120l" type="hidden" required="required" id="col_1120l" placeholder="Bank 12" value="0" size="20" maxlength="20" />
                             <input name="col_1120k" type="hidden" required="required" id="col_1120k" placeholder="Bank 11" value="0" size="20" maxlength="20" />
                             <input name="col_1120m" type="hidden" required="required" id="col_1120m" placeholder="Bank 13" value="0" size="20" maxlength="20" />
                             <input name="col_1120n" type="hidden" required="required" id="col_1120n" placeholder="Bank 14" value="0" size="20" maxlength="20" />
                             <input name="col_1120o" type="hidden" required="required" id="col_1120o" placeholder="Bank 15" value="0" size="20" maxlength="20"/>
                             <input name="col_1120p" type="hidden" required="required" id="col_1120p" placeholder="Bank 16" value="0" size="20" maxlength="20" />
                             <input name="col_1120q" type="hidden" required="required" id="col_1120q" placeholder="Bank 17" value="0" size="20" maxlength="20" />
                             <input name="col_1120r" type="hidden" required="required" id="col_1120r" placeholder="Bank 18" value="0" size="20" maxlength="20" />
                             <input name="col_1120s" type="hidden" required="required" id="col_1120s" placeholder="Bank 19" value="0" size="20" maxlength="20"/>
                           <input name="col_1120t" type="hidden" required="required" id="col_1120t" placeholder="Bank 20" value="0" size="20" maxlength="20"/>
                           <span class="form_body">
                           <input name="col_1120i" type="hidden" id="col_1120i" size="20" maxlength="20" value="0" required="required" placeholder="Bank 9" />
                           <input name="col_1120j" type="hidden" id="col_1120j" size="20" maxlength="20" required="required" value="0" placeholder="Bank 10" />
                           </span></td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1130</td>
                           <td height="25" align="left">DEPOSITO</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 1' order by kode_bank asc ");
					$dp1 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo1 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp1[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo1 = mysql_query($query_saldodepo1, $sistem) or die(mysql_error());
$row_saldodepo1 = mysql_fetch_assoc($saldodepo1);
$totalRows_saldodepo1 = mysql_num_rows($saldodepo1);
$saldoawaldepo1=$row_saldo_awal['col_1130a'];
$saldoakhir_depo1=($saldoawaldepo1+$row_saldodepo1['ttl_dbt'])-$row_saldodepo1['ttl_krd'];
					?>
                             <input name="col_1130a" type="text" required="required" id="col_1130a" value="<?php echo $saldoakhir_depo1;?>" placeholder="Deposito 1" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td rowspan="7" align="left"><table class="form_body" width="200" border="0" cellpadding="1">
                             <?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' order by kode_bank asc ");
					          $no = 1;
							
                    while ($r = mysql_fetch_array($sql)) {
                      echo "<tr>
					  <td>$r[kode_bank]</td>
                    <td>$r[no_rek]</td>
                    <td align='right'>";?>
                             <?php include 'module/_proses/rekap_depo.php';?>
                             <?php echo"</td>
                  </tr>";
		 $no++;
                    }
                    ?>
                           </table></td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 2' order by kode_bank asc ");
					$dp2 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo2 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp2[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo2 = mysql_query($query_saldodepo2, $sistem) or die(mysql_error());
$row_saldodepo2 = mysql_fetch_assoc($saldodepo2);
$totalRows_saldodepo2 = mysql_num_rows($saldodepo2);

$saldoawaldepo2=$row_saldo_awal['col_1130b'];
$saldoakhir_depo2=($saldoawaldepo2+$row_saldodepo2['ttl_dbt'])-$row_saldodepo2['ttl_krd'];
					?>
                             <input name="col_1130b" type="text" required="required" id="col_1130b" value="<?php echo $saldoakhir_depo2;?>" placeholder="Deposito 2" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 3' order by kode_bank asc ");
					$dp3 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo3 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp3[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo3 = mysql_query($query_saldodepo3, $sistem) or die(mysql_error());
$row_saldodepo3 = mysql_fetch_assoc($saldodepo3);
$totalRows_saldodepo3 = mysql_num_rows($saldodepo3);

$saldoawaldepo3=$row_saldo_awal['col_1130c'];
$saldoakhir_depo3=($saldoawaldepo3+$row_saldodepo3['ttl_dbt'])-$row_saldodepo3['ttl_krd'];
					?>
                             <input name="col_1130c" type="text" required="required" id="col_1130c" value="<?php echo $saldoakhir_depo3;?>" placeholder="Deposito 3" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 4' order by kode_bank asc ");
					$dp4 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo4 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp4[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo4 = mysql_query($query_saldodepo4, $sistem) or die(mysql_error());
$row_saldodepo4 = mysql_fetch_assoc($saldodepo4);
$totalRows_saldodepo4 = mysql_num_rows($saldodepo4);

$saldoawaldepo4=$row_saldo_awal['col_1130d'];
$saldoakhir_depo4=($saldoawaldepo4+$row_saldodepo4['ttl_dbt'])-$row_saldodepo4['ttl_krd'];
					?>
                             <input name="col_1130d" type="text" required="required" id="col_1130d" value="<?php echo $saldoakhir_depo4;?>" placeholder="Deposito 4" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 5' order by kode_bank asc ");
					$dp5 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo5 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp5[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo5 = mysql_query($query_saldodepo5, $sistem) or die(mysql_error());
$row_saldodepo5 = mysql_fetch_assoc($saldodepo5);
$totalRows_saldodepo5 = mysql_num_rows($saldodepo5);

$saldoawaldepo5=$row_saldo_awal['col_1130e'];
$saldoakhir_depo5=($saldoawaldepo5+$row_saldodepo5['ttl_dbt'])-$row_saldodepo5['ttl_krd'];
					?>
                             <input name="col_1130e" type="text" required="required" id="col_1130e" value="<?php echo $saldoakhir_depo5;?>" placeholder="Deposito 5" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 6' order by kode_bank asc ");
					$dp6 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo6 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp6[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo6 = mysql_query($query_saldodepo6, $sistem) or die(mysql_error());
$row_saldodepo6 = mysql_fetch_assoc($saldodepo6);
$totalRows_saldodepo6 = mysql_num_rows($saldodepo6);

$saldoawaldepo6=$row_saldo_awal['col_1130f'];
$saldoakhir_depo6=($saldoawaldepo6+$row_saldodepo6['ttl_dbt'])-$row_saldodepo6['ttl_krd'];
					?>
                             <input name="col_1130f" type="text" required="required" id="col_1130f" value="<?php echo $saldoakhir_depo6;?>" placeholder="Deposito 6" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 7' order by kode_bank asc ");
					$dp7 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo7 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp7[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo7 = mysql_query($query_saldodepo7, $sistem) or die(mysql_error());
$row_saldodepo7 = mysql_fetch_assoc($saldodepo7);
$totalRows_saldodepo7 = mysql_num_rows($saldodepo7);

$saldoawaldepo7=$row_saldo_awal['col_1130g'];
$saldoakhir_depo7=($saldoawaldepo7+$row_saldodepo7['ttl_dbt'])-$row_saldodepo7['ttl_krd'];
					?>
                             <input name="col_1130g" type="text" required="required" id="col_1130g" value="<?php echo $saldoakhir_depo7;?>" placeholder="Deposito 7" size="20" maxlength="20" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="right">Rp</td>
                           <td align="right" class="form_body"><?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From bank_tb where kode_unit='$_SESSION[kode]'  and jenis='Deposito' and kode_bank='Deposito 8' order by kode_bank asc ");
					$dp8 = mysql_fetch_array($sql);
					
					mysql_select_db($database_sistem, $sistem);
$query_saldodepo8 = "SELECT sum(debet)as ttl_dbt, sum(kredit)as ttl_krd FROM transaksi_bank_tb where bulan='$bulan' and tahun='$tahun' and no_rek='$dp8[no_rek]' and kode_unit='$_SESSION[kode]'";
$saldodepo8 = mysql_query($query_saldodepo8, $sistem) or die(mysql_error());
$row_saldodepo8 = mysql_fetch_assoc($saldodepo8);
$totalRows_saldodepo8 = mysql_num_rows($saldodepo8);

$saldoawaldepo8=$row_saldo_awal['col_1130h'];
$saldoakhir_depo8=($saldoawaldepo8+$row_saldodepo8['ttl_dbt'])-$row_saldodepo8['ttl_krd'];
					?>
                             <input name="col_1130h" type="text" required="required" id="col_1130h" value="<?php echo $saldoakhir_depo8;?>" placeholder="Deposito 8" size="20" maxlength="20" /></td>
                           <td height="25" align="center"><input name="col_1130k" type="hidden" required="required" id="col_1130k" placeholder="Deposito 11" value="0" size="20" maxlength="20"/>
                             <input name="col_1130l" type="hidden" required="required" id="col_1130l" placeholder="Deposito 12" value="0" size="20" maxlength="20"/>
                             <input name="col_1130m" type="hidden" required="required" id="col_1130m" placeholder="Deposito 13" value="0" size="20" maxlength="20" />
                             <input name="col_1130n" type="hidden" required="required" id="col_1130n" placeholder="Deposito 14" value="0" size="20" maxlength="20" />
                             <input name="col_1130o" type="hidden" required="required" id="col_1130o" placeholder="Deposito 15" value="0" size="20" maxlength="20" />
                             <input name="col_1130p" type="hidden" required="required" id="col_1130p" placeholder="Deposito 16" value="0" size="20" maxlength="20" />
                             <input name="col_1130q" type="hidden" required="required" id="col_1130q" placeholder="Deposito 17" value="0" size="20" maxlength="20" />
                             <input name="col_1130r" type="hidden" required="required" id="col_1130r" placeholder="Deposito 18" value="0" size="20" maxlength="20" />
                             <input name="col_1130s" type="hidden" required="required" id="col_1130s" placeholder="Deposito 19" value="0" size="20" maxlength="20" />
                           <input name="col_1130t" type="hidden" required="required" id="col_1130t" placeholder="Deposito 20" value="0" size="20" maxlength="20" />
                           <span class="form_body">
                           <input name="col_1130i" type="hidden" required="required" id="col_1130i" value="0" placeholder="Deposito 9" size="20" maxlength="20"/>
                           <input name="col_1130j" type="hidden" required="required" id="col_1130j" value="0" placeholder="Deposito 10" size="20" maxlength="20" />
                           </span></td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1140</td>
                           <td height="25" align="left">PIUTANG</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_piutang);?>
                             <input name="col_1140" type="hidden" id="col_1140" size="20" maxlength="20" required="required"  value="<?php echo $saldo_piutang;?>" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1150</td>
                           <td height="25" align="left">PERSEDIAAN</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_persediaan);?>
                             <input name="col_1150" type="hidden" id="col_1150" size="20" maxlength="20" required="required"  value="<?php echo $saldo_persediaan;?>" /></td>
                           <td height="25" align="center">&nbsp;</td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1160</td>
                           <td height="25" align="left">Piutang Lain</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_bdm);?>
                             <input name="col_1160" type="hidden" id="col_1160" size="20" maxlength="20" required="required"  value="<?php echo $saldo_bdm;?>" /></td>
                           <td height="25" align="center"></td>
                           <td height="25" align="left"></td>
                           <td height="25" align="right"></td>
                           <td height="25"></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1170</td>
                           <td height="25" align="left">INVESTASI LAINNYA</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_invest);?>
                           <input name="col_1170" type="hidden" id="col_1170" size="20" maxlength="20" required="required"  value="<?php echo $saldo_invest;?>" /></td>
                           <td height="25" align="center"></td>
                           <td height="25" align="left"></td>
                           <td height="25" align="right"></td>
                           <td height="25"></td>
                         </tr>
                         <tr>
                           <td height="20" colspan="8" align="center"><hr/></td>
                         </tr>
                         <tr>
                           <td align="center"></td>
                           <td align="left"></td>
                           <td align="right"></td>
                           <td align="right"></td>
                           <td align="center"></td>
                           <td align="left"></td>
                           <td align="right"></td>
                           <td></td>
                         </tr>
                         <tr>
                           <td height="30" align="center"></td>
                           <td align="left">AKTIVA TETAP</td>
                           <td align="right"></td>
                           <td align="right"></td>
                           <td align="center"></td>
                           <td align="left"></td>
                           <td align="right"></td>
                           <td></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1210</td>
                           <td height="25" align="left">TANAH</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_tanah);?>
                             <input name="col_1210" type="hidden" id="col_1210" size="20" maxlength="20" required="required"  value="<?php echo $saldo_tanah;?>" /></td>
                           <td height="25" align="center">3000</td>
                           <td height="25" align="left">MODAL</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_modal+$row_saldo_awal['col_shu']);?>
                             <input name="col_3000" type="hidden" id="col_3000" size="20" maxlength="20" required="required"  value="<?php echo $saldo_modal+$row_saldo_awal['col_shu'];?>" /></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1220</td>
                           <td height="25" align="left">GEDUNG</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_gedung);?>
                             <input name="col_1220" type="hidden" id="col_1220" size="20" maxlength="20" required="required"  value="<?php echo $saldo_gedung;?>" /></td>
                           <td height="25" align="center">3100</td>
                           <td height="25" align="left">SHU DITAHAN</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($_GET['shu']);?>
                             <input name="col_shu" type="hidden" id="col_shu" size="20" maxlength="20" required="required" value="<?php echo $_GET['shu'];?>" /></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1230</td>
                           <td height="25" align="left">KENDARAAN</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_kendaraan);?>
                             <input name="col_1230" type="hidden" id="col_1230" size="20" maxlength="20" required="required"  value="<?php echo $saldo_kendaraan;?>" /></td>
                           <td height="25" align="center"></td>
                           <td height="25" align="left">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                           <td height="25" align="right">&nbsp;</td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1240</td>
                           <td height="25" align="left">INVENTARIS</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_invent);?>
                             <input name="col_1240" type="hidden" id="col_1240" size="20" maxlength="20" required="required"  value="<?php echo $saldo_invent;?>" /></td>
                           <td height="25" align="center"></td>
                           <td height="25" align="left"></td>
                           <td height="25" align="right"></td>
                           <td height="25" align="right"></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1250</td>
                           <td height="25" align="left">AKTIVA LAINNYA</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_aktiv);?>
                           <input name="col_1250" type="hidden" id="col_1250" size="20" maxlength="20" required="required"  value="<?php echo $saldo_aktiv;?>" /></td>
                           <td height="25" align="center"></td>
                           <td height="25" align="left"></td>
                           <td height="25" align="right"></td>
                           <td height="25"></td>
                         </tr>
                         <tr>
                           <td height="25" align="center">1300</td>
                           <td height="25" align="left">AKUMULASI PENYUSUTAN</td>
                           <td height="25" align="right">Rp</td>
                           <td height="25" align="right"><?php echo formatRupiah($saldo_akumulasi);?>
                             <input name="col_1300" type="hidden" id="col_1300" size="20" maxlength="20" required="required"  value="<?php echo $saldo_akumulasi;?>" /></td>
                           <td height="25" align="center"></td>
                           <td height="25" align="left"></td>
                           <td height="25" align="right"></td>
                           <td height="25"></td>
                         </tr>
                         <tr>
                           <td align="center"></td>
                           <td align="left"></td>
                           <td align="right"></td>
                           <td align="right"></td>
                           <td align="center"></td>
                           <td align="left"></td>
                           <td align="right"></td>
                           <td></td>
                         </tr>
                         <tr height="30">
                           <td background="images/bg2.png" colspan="8" align="center" height="35"></td>
                         </tr>
                         <tr height="30">
                           <td colspan="8" align="center"><hr /></td>
                         </tr>
                       </table>
                       <input type="hidden" name="MM_insert" value="form1" />
                     </form></td>
                   </tr>
                 </table>
                 <p>&nbsp;</p>
                 <p>&nbsp;</p>
                 <p>&nbsp;</p>
   