<script type="text/javascript" charset="utf-8">
          $(document).ready(function(){
            $('#bbkas').dataTable({
					     "oLanguage": {
						      "sLengthMenu": "Tampilkan _MENU_ data per halaman",
						      "sSearch": "Pencarian: ", 
						      "sZeroRecords": "Maaf, tidak ada data yang ditemukan",
						      "sInfo": "Menampilkan _START_ s/d _END_ dari _TOTAL_ data",
						      "sInfoEmpty": "Menampilkan 0 s/d 0 dari 0 data",
						      "sInfoFiltered": "(di filter dari _MAX_ total data)",
						      "oPaginate": {
						          "sFirst": "<<",
						          "sLast": ">>", 
						          "sPrevious": "<", 
						          "sNext": ">"
					       }
				      },
              "sPaginationType":"full_numbers",
              "bJQueryUI":true
            });
          })    
        </script>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="450" class="isi_tabel">
        <tr>
          <td colspan="3"><h1 style="color:#033">Index Buku Besar Pengeluaran</h1></td>
        </tr>
        <tr>
          <td width="159">Bulan/ Tahun Lapor</td>
          <td width="10">:</td>
          <td width="215"><?php echo $bulan.'/ '.$tahun;?></td>
        </tr>
        <tr>
          <td>Unit</td>
          <td>:</td>
          <td><?php echo $_SESSION['nama'];?></td>
        </tr>
        <tr>
          <td>Tanggal</td>
          <td>:</td>
          <td><?php echo date('d-M-Y');?></td>
        </tr>
        <tr>
          <td>Cetak Laporan</td>
          <td>:</td>
          <td><a href="?section=Report&module=print&amp;bb=index_pnl"><img src="images/cetak1.png" width="41" height="32" /></a></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="90%" align="center"  bgcolor="#FFFFFF" class="display" id="bbkas">
      <thead>
        <tr class="form_body" height="30">
          <th align="center" width="51">No</th>
          <th width="100" align="center">Akun</th>
          <th width="100" align="center">Perkiraan</th>
          <th width="60" align="center">Index</th>
          <th width="245" align="center">Keterangan</th>
          <th width="96" align="center">Subtotal</th>
          <th width="93" align="center">Total</th>
        </tr>
        </thead>
      <tbody>
      
        <?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From akun_tb where kode_unit='All' and kelompok='Pengeluaran' order by perkiraan asc ");
					          $no = 1;
							
                    while ($r = mysql_fetch_array($sql)) {
                      echo "<tr>
          <td align='center'>$no</td>
            <td align='center'>$r[akun]</td>
			<td align='center'>$r[perkiraan]</td>
			<td align='center'>$r[index]</td>
			<td align='left'>$r[keterangan]</td>
			<td align='right'>";?>
          <?php 
			if($r['index']==''){
			include 'module/_report/hitung_pnl.php';
			}else{
				echo '';
			}
			?>
			<?php echo"</td>
			<td align='right'>";?><?php 
			if($r['index']=='Ya'){
			include 'module/_report/hitung_pnl_index.php';
			}else{
				echo '';
			}
			?><?php echo"</td>          </tr>";
                      $no++;
                    }
                    ?>
      </tbody>
      <tfoot>
        <tr>
       <th colspan="5" align="center">Total Pengeluaran</th>
       <th align="right"><?php echo formatRupiah($row_hitung_ttlpnl_index['kredit']);?></th>
       <th align="right"><?php echo formatRupiah($row_hitung_ttlpnl_index['kredit']);?></th>
          </tr>
      </tfoot>
    </table></td>
  </tr>
</table>
        