<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="5" cellspacing="5">
  <tr>
    <td><?php include "module/_setting/tambah_acount.php";?></td>
  </tr>
  <tr>
    <td><hr /></td>
  </tr>
  <tr>
    <td><table width="400" class="isi_tabel">
        <tr valign="middle">
          <td width="53"><span style="color:#033"><a href="?section=Setting&module=print&amp;bb=daftar_akun"><img src="images/cetak1.png" width="41" height="32" /></a></span></td>
          <td width="335"><h2><span style="color:#033">Daftar Akun</span></h2></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" align="center"  bgcolor="#FFFFFF" class="display" id="bbkas">
      <thead>
        <tr height="30" class="form_body">
          <th align="center" width="58">No</th>
          <th width="96" align="center">Akun</th>
          <th width="97" align="center">Perkiraan</th>
          <th width="200" align="center">Keterangan</th>
          <th width="86" align="center">Index</th>
          <th width="286" align="center">Cakupan Akun</th>
          <th width="50" align="center">Edit</th>
        </tr>
        </thead>
      <tbody>
      
        <?php        mysql_select_db("csabrude_akurat");
					          $sql = mysql_query("SELECT * From akun_tb where kode_unit='All' order by perkiraan asc ");
					          $no = 1;
							
                    while ($r = mysql_fetch_array($sql)) {
                      echo "<tr height='25' class='isi_tabel'>
          <td align='center'>$no</td>
            <td align='center'>$r[akun]</td>
			<td align='center'>$r[perkiraan]</td>
			<td align='left'>$r[keterangan]</td>
			<td align='center'>$r[index]</td>
			<td align='justify'>$r[konten]</td>
			<td align='justify'>";?><?php 
			if($_SESSION['level']=='Pusat'){
				if($r['kelompok']=='Pendapatan'){
				?><a href="?section=Setting&module=cakupan&perkir=<?php echo $r['perkiraan'];?>"><img src="images/edit.png" height="30" width="30" /></a><?php }elseif($r['kelompok']=='Pengeluaran'){
					?><a href="?section=Setting&module=cakupan&perkir=<?php echo $r['perkiraan'];?>"><img src="images/edit.png" height="30" width="30" /></a><?php }else{?>
					<img src="images/edit.png" height="30" width="30" />	
				<?php	}
			}else{;?>
				<img src="images/edit.png" height="30" width="30" />
				<?php }
				echo"</td>
          </tr>";
                      $no++;
                    }
                    ?>
      </tbody>
      <tfoot>
        <tr>
       <th colspan="7" align="center">&nbsp;</th>
          </tr>
      </tfoot>
    </table>
 </td>
  </tr>
   <tr>
    <td>&nbsp;</td>
  </tr>
</table>
        