<?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());
}


				mysql_select_db($database_sistem, $sistem);
$query_saldo_awal = "SELECT * FROM saldo_tb where kode_unit='$_SESSION[kode]' and bulan='Desember' and tahun='2023' order by id asc";
$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);
				?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="90%" border="0" align="center" cellpadding="4" cellspacing="4">
  <tr>
    <td>
          
            <div id="TabbedPanels1" class="TabbedPanels">
              <ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab" tabindex="0">Update Data Neraca1</li>
                <li class="TabbedPanelsTab" tabindex="0">Neraca Awal</li>
              </ul>
              <div class="TabbedPanelsContentGroup">
                <div class="TabbedPanelsContent"><form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
                
                 <table width="95%" align="center" cellpadding="5" cellspacing="5" class="isi_tabel">
              <tr>
                <td height="35" colspan="8" align="center"><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'].'/'.'Desember'.'/2022';?>" /></td>
                  </tr>
                  <tr>
                    <td width="126">Tahun</td>
                    <td width="8">:</td>
                    <td width="246"><input name="tahun" type="text" required="required" id="tahun" value="2023" size="4" maxlength="4" /></td>
                  </tr>
                  <tr>
                    <td>Bulan</td>
                    <td>:</td>
                    <td><input type="text" name="bulan" id="bulan" value="Desember" readonly="readonly" /></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td><input type="submit" name="button" id="button" value="Update Data Neraca" class="button" /></td>
                  </tr>
                </table></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"><input name="col_1110" type="text" id="col_1110" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1110'];?>" /></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"><input name="col_2110" type="text" id="col_2110" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_2110'];?>" /></td>
              </tr>
              <tr>
                <td height="25" align="center">1120</td>
                <td height="25" align="left">BANK 1</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120a" type="text" id="col_1120a" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120a'];?>" /></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"><input name="col_2120" type="text" id="col_2120" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_2120'];?>" /></td>
              </tr>
              <tr>
                <td height="25" align="center">&nbsp;</td>
                <td align="left">BANK 2</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120b" type="text" id="col_1120b" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120b'];?>" /></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"><input name="col_2130" type="text" id="col_2130" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_2130'];?>" /></td>
                </tr>
              <tr>
                <td height="25" align="center">&nbsp;</td>
                <td align="left">BANK 3</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120c" type="text" id="col_1120c" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120c'];?>" /></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"><input name="col_2140" type="text" id="col_2140" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_2140'];?>" /></td>
                </tr>
              <tr>
                <td height="25" align="center">&nbsp;</td>
                <td align="left">BANK 4</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120d" type="text" id="col_1120d" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120d'];?>" /></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"><input name="col_2150" type="text" id="col_2150" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_2150'];?>" /></td>
                </tr>
              <tr>
                <td height="25" align="center">&nbsp;</td>
                <td align="left">BANK 5</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120e" type="text" id="col_1120e" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120e'];?>" /></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="left">BANK 6</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120f" type="text" id="col_1120f" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120f'];?>" /></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="left">BANK 7</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120g" type="text" id="col_1120g" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120g'];?>" /></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="left">BANK 8</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120h" type="text" id="col_1120h" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120h'];?>" /></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="left">BANK 9</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120i" type="text" id="col_1120i" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120i'];?>"/></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="left">BANK 10</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120j" type="text" id="col_1120j" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120j'];?>" /></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="left">BANK 11</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120k" type="text" id="col_1120k" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120k'];?>" /></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="left">BANK 12</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120l" type="text" id="col_1120l" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120l'];?>" /></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="left">BANK 13</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120m" type="text" id="col_1120m" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120m'];?>" /></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="left">BANK 14</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120n" type="text" id="col_1120n" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120n'];?>" /></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="left">BANK 15</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120o" type="text" id="col_1120o" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120o'];?>" /></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="left">BANK 16</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120p" type="text" id="col_1120p" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120p'];?>" /></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="left">BANK 17</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120q" type="text" id="col_1120q" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120q'];?>" /></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="left">BANK 18</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120r" type="text" id="col_1120r" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120r'];?>" /></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="left">BANK 19</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120s" type="text" id="col_1120s" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120s'];?>" /></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="left">BANK 20</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1120t" type="text" id="col_1120t" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1120t'];?>" /></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">1130</td>
                <td height="25" align="left">DEPOSITO 1</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130a" type="text" id="col_1130a" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130a'];?>" /></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="left">DEPOSITO 2</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130b" type="text" id="col_1130b" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130b'];?>" /></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="left">DEPOSITO 3</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130c" type="text" id="col_1130c" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130c'];?>" /></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="left">DEPOSITO 4</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130d" type="text" id="col_1130d" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130d'];?>" /></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="left">DEPOSITO 5</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130e" type="text" id="col_1130e" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130e'];?>" /></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="left">DEPOSITO 6</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130f" type="text" id="col_1130f" size="20" maxlength="20" value="<?php echo $row_saldo_awal['col_1130f'];?>" required="required" /></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="left">DEPOSITO 7</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130g" type="text" id="col_1130g" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130g'];?>" /></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="left">DEPOSITO 8</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130h" type="text" id="col_1130h" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130h'];?>" /></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="left">DEPOSITO 9</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130i" type="text" id="col_1130i" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130i'];?>" /></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="left">DEPOSITO 10</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130j" type="text" id="col_1130j" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130j'];?>" /></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="left">DEPOSITO 11</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130k" type="text" id="col_1130k" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130k'];?>" /></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="left">DEPOSITO 12</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130l" type="text" id="col_1130l" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130l'];?>" /></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="left">DEPOSITO 13</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130m" type="text" id="col_1130m" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130m'];?>" /></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="left">DEPOSITO 14</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130n" type="text" id="col_1130n" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130n'];?>" /></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="left">DEPOSITO 15</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130o" type="text" id="col_1130o" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130o'];?>" /></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="left">DEPOSITO 16</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130p" type="text" id="col_1130p" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130p'];?>" /></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="left">DEPOSITO 17</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130q" type="text" id="col_1130q" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130q'];?>" /></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="left">DEPOSITO 18</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130r" type="text" id="col_1130r" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130r'];?>" /></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="left">DEPOSITO 19</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130s" type="text" id="col_1130s" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130s'];?>" /></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="left">DEPOSITO 20</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1130t" type="text" id="col_1130t" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1130t'];?>" /></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">1140</td>
                <td height="25" align="left">PIUTANG</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1140" type="text" id="col_1140" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1140'];?>" /></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"><input name="col_1150" type="text" id="col_1150" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1150'];?>" /></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"><input name="col_1160" type="text" id="col_1160" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1160'];?>" /></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"><input name="col_1170" type="text" id="col_117
                0" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1170'];?>" /></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 align="left">TANAH</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1210" type="text" id="col_1210" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1210'];?>" /></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"><input name="col_3000" type="text" id="col_3000" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_3000'];?>" /></td>
              </tr>
              <tr>
                <td height="25" align="center">1220</td>
                <td align="left">GEDUNG</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1220" type="text" id="col_1220" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1220'];?>" /></td>
                <td height="25" align="center"></td>
                <td height="25" align="left">SHU DITAHAN</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_shu" type="text" id="col_shu" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_shu'];?>" /></td>
                </tr>
              <tr>
                <td height="25" align="center">1230</td>
                <td align="left">KENDARAAN</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1230" type="text" id="col_1230" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1230'];?>" /></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 align="left">INVENTARIS</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1240" type="text" id="col_1240" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1240'];?>" /></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">1250</td>
                <td height="25" align="left">AKTIVA TETAP LAINNYA</td>
                <td height="25" align="right">Rp</td>
                <td height="25" align="right"><input name="col_1250" type="text" id="col_1250" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1250'];?>" /></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"><input name="col_1300" type="text" id="col_1300" size="20" maxlength="20" required="required" value="<?php echo $row_saldo_awal['col_1300'];?>" /></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>
                <td height="20" colspan="8" align="center"><hr/></td>
              </tr>
              <tr height="30">
                <td background="images/bg1.png" colspan="8" align="center"></td>
              </tr>
            </table>
            <input type="hidden" name="MM_insert" value="form1" />
      </form>
                </div>
                <div class="TabbedPanelsContent">
                  <table width="95%" align="center" cellpadding="5" cellspacing="5" class="form_body">
                    <tr>
                      <td height="35" colspan="8" align="center"><table class="isi_tabel" width="400" border="0" align="left" cellpadding="2">
                        <tr>
                          <td>Unit</td>
                          <td>:</td>
                          <td><?php echo $_SESSION['kode'];?></td>
                        </tr>
                        <tr>
                          <td width="126">Tahun</td>
                          <td width="8">:</td>
                          <td width="246"><?php echo $row_saldo_awal['tahun'];?></td>
                        </tr>
                        <tr>
                          <td>Bulan</td>
                          <td>:</td>
                          <td><?php echo $row_saldo_awal['bulan'];?></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td><form id="form2" name="form2" method="post" action="?module=update_neraca">
                            <input type="submit" name="update" id="update" value="Update Neraca Awal" class="button" />
                            <input type="hidden" name="reg" id="reg" value="<?php echo $row_saldo_awal['key_register'];?>" />
                          </form></td>
                        </tr>
                      </table></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($row_saldo_awal['col_1110']);?></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"><?php echo formatRupiah($row_saldo_awal['col_2110']);?></td>
                    </tr>
                    <tr>
                      <td height="25" align="center">1120</td>
                      <td height="25" colspan="3" rowspan="5" align="right" valign="top"><table class="form_body" width="200" border="0" cellpadding="1">
                        <?php        mysql_select_db("osfsemar_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 align='left'>$r[kode_bank]</td>
                    <td align='right'>";?>
                        <?php echo formatRupiah($r['nominal']);?><?php echo"</td>
                  </tr>";
		 $no++;
                    }
                    ?>
                      </table></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"><?php echo formatRupiah($row_saldo_awal['col_2120']);?></td>
                    </tr>
                    <tr>
                      <td height="25" align="center">&nbsp;</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"><?php echo formatRupiah($row_saldo_awal['col_2130']);?></td>
                    </tr>
                    <tr>
                      <td height="25" align="center">&nbsp;</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"><?php echo formatRupiah($row_saldo_awal['col_2140']);?></td>
                    </tr>
                    <tr>
                      <td height="25" align="center">&nbsp;</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"><?php echo formatRupiah($row_saldo_awal['col_2150']);?></td>
                    </tr>
                    <tr>
                      <td height="25" align="center">&nbsp;</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">1130</td>
                      <td height="25" colspan="3" rowspan="5" align="right" valign="top"><table class="form_body" width="200" border="0" cellpadding="1">
                        <?php        mysql_select_db("osfsemar_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 align='left'>$r[kode_bank]</td>
                    <td align='right'>";?>
                        <?php echo formatRupiah($r['nominal']);?><?php echo"</td>
                  </tr>";
		 $no++;
                    }
                    ?>
                      </table></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="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="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="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="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">1140</td>
                      <td height="25" align="left">PIUTANG</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php echo formatRupiah($row_saldo_awal['col_1140']);?></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($row_saldo_awal['col_1150']);?></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($row_saldo_awal['col_1160']);?></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($row_saldo_awal['col_1170']);?></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 height="25" colspan="2" align="center">JUMLAH AKTIVA LANCAR</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php 
	$aktiva_lancar=$row_saldo_awal['col_1110']+$row_saldo_awal['col_1120a']+$row_saldo_awal['col_1120b']+$row_saldo_awal['col_1120c']+$row_saldo_awal['col_1120d']+$row_saldo_awal['col_1120e']+$row_saldo_awal['col_1120f']+$row_saldo_awal['col_1120g']+$row_saldo_awal['col_1120h']+$row_saldo_awal['col_1120i']+$row_saldo_awal['col_1120j']+$row_saldo_awal['col_1120k']+$row_saldo_awal['col_1120l']+$row_saldo_awal['col_1120m']+$row_saldo_awal['col_1120n']+$row_saldo_awal['col_1120o']+$row_saldo_awal['col_1120p']+$row_saldo_awal['col_1120q']+$row_saldo_awal['col_1120r']+$row_saldo_awal['col_1120s']+$row_saldo_awal['col_1120t']+$row_saldo_awal['col_1130a']+$row_saldo_awal['col_1130b']+$row_saldo_awal['col_1130c']+$row_saldo_awal['col_1130d']+$row_saldo_awal['col_1130e']+$row_saldo_awal['col_1130f']+$row_saldo_awal['col_1130g']+$row_saldo_awal['col_1130h']+$row_saldo_awal['col_1130i']+$row_saldo_awal['col_1130j']+$row_saldo_awal['col_1130k']+$row_saldo_awal['col_1130l']+$row_saldo_awal['col_1130m']+$row_saldo_awal['col_1130n']+$row_saldo_awal['col_1130o']+$row_saldo_awal['col_1130p']+$row_saldo_awal['col_1130q']+$row_saldo_awal['col_1130r']+$row_saldo_awal['col_1130s']+$row_saldo_awal['col_1130t']+$row_saldo_awal['col_1140']+$row_saldo_awal['col_1150']+$row_saldo_awal['col_1160']+$row_saldo_awal['col_1170'];
	echo formatRupiah($aktiva_lancar);?>			  
					  </td>
                      <td height="25" colspan="2" align="center">JUMLAH KEWAJIBAN</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php 
	$jumlah_kewajiban=$row_saldo_awal['col_2110']+$row_saldo_awal['col_2120']+$row_saldo_awal['col_2130']+$row_saldo_awal['col_2140']+$row_saldo_awal['col_2150'];
	echo formatRupiah($jumlah_kewajiban);?></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($row_saldo_awal['col_1210']);?></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($row_saldo_awal['col_3000']);?></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($row_saldo_awal['col_1220']);?></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">1230</td>
                      <td height="25" align="left">KENDARAAN</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php echo formatRupiah($row_saldo_awal['col_1230']);?></td>
                      <td height="25" align="center"></td>
                      <td height="25" align="left">SHU DITAHAN</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php echo formatRupiah($row_saldo_awal['col_shu']);?></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($row_saldo_awal['col_1240']);?></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">1250</td>
                      <td height="25" align="left">AKTIVA TETAP LAINNYA</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php echo formatRupiah($row_saldo_awal['col_1250']);?></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"></td>
                      <td height="25" align="left">JUMLAH AKTIVA TETAP</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php 
	$aktiva_tetap=$row_saldo_awal['col_1210']+$row_saldo_awal['col_1220']+$row_saldo_awal['col_1230']+$row_saldo_awal['col_1240']+$row_saldo_awal['col_1250'];
	echo formatRupiah($aktiva_tetap);?></td>
                      <td height="25" align="center"></td>
                      <td height="25" align="left">JUMLAH MODAL</td>
                      <td height="25" align="right">Rp</td>
                      <td height="25" align="right"><?php 
	$jumlah_modal=$row_saldo_awal['col_3000']+$row_saldo_awal['col_shu'];
	echo formatRupiah($jumlah_modal);?></td>
                    </tr>
                    <tr>
                      <td height="25" align="center"></td>
                      <td height="25" align="left"></td>
                      <td height="25" align="right"></td>
                      <td height="25" align="right"></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($row_saldo_awal['col_1300']);?></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>
                      <td height="20" colspan="8" align="center"><hr/></td>
                    </tr>
                    <tr>
                      <td height="30" align="center"></td>
                      <td align="left">JUMLAH AKTIVA</td>
                      <td align="right">Rp</td>
                      <td align="right"><?php 
	$total_aktiva=($aktiva_lancar+$aktiva_tetap)-$row_saldo_awal['col_1300'];
	echo formatRupiah($total_aktiva);?></td>
                      <td align="center"></td>
                      <td align="left">JUMLAH MODAL DAN KEWAJIBAN</td>
                      <td align="right">Rp</td>
                      <td align="right"><?php 
	$total_mk=$jumlah_kewajiban+$jumlah_modal;
	echo formatRupiah($total_mk);?></td>
                    </tr>
                    <tr height="30">
                      <td background="images/bg1.png" colspan="8" align="center"></td>
                    </tr>
                  </table>
                </div>
              </div>
            </div>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
</body>
</html>