<!-- data table start -->
<div class="col-12 mt-5">
  <div class="card">
    <div class="card-body">
      <h4 class="header-title">Data Pengeluaran</h4>
      <div class="data-tables">
        <a href="?page=Tambah-Pengeluaran" target="_self"><button type="button" class="btn btn-primary mb-3">Tambah Transaksi</button></a>
        <table id="dataTable2" class="text-center">
          <thead class="bg-light text-capitalize">
            <tr>
              <th width="5%">No</th>
              <th width="15%">No. Kwitansi</th>
              <th width="15%">No. Akun</th>
              <th width="10%">Tanggal</th>
              <th width="10%">Banyak</th>
              <th width="20%">Penerima/Pengguna</th>
              <th width="25%">Keterangan</th>
              <!-- <th width="10%">Aksi</th> -->
            </tr>
          </thead>
          <tbody>
            <?php
            include_once "../library/inc.sesadmin.php";
            include_once "../library/inc.library.php";

            $userSql = "SELECT * FROM pengeluaran ORDER BY no_kwitansi DESC LIMIT 5";
            $userQry = mysql_query($userSql, $koneksidb)  or die ("Query user salah : ".mysql_error());
            $nomor  = 0; 
            while ($userRow = mysql_fetch_array($userQry)) {
             $nomor++;
             $Kode = $userRow['no_kwitansi'];
             ?>
             <tr>
              <td><b><?php echo $nomor; ?></b></td>
              <td><?php echo $userRow['no_kwitansi']; ?></td>
              <td><?php echo $userRow['no_akun']; ?></td>
              <td><?php echo $userRow['tanggal']; ?></td>
              <td align="right"><?php echo $userRow['banyak'] ?></td>
              <td align="left"><?php echo $userRow['penerima'] ?></td>
              <td align="left"><?php echo $userRow['keterangan'] ?></td>
              <!-- <td align="center"> -->
                <!-- <a href="?page=Edit-Kelas&amp;Kode="><button type="button" class="btn btn-warning btn-xs">Ubah</button></a> &nbsp -->
                <!-- <a href="?page=Delete-Kelas&amp;Kode=" target="_self" alt="Delete Data" onclick="return confirm('ANDA YAKIN INGIN MENGHAPUS DATA PENTING INI ... ?')"><button type="button" class="btn btn-danger btn-xs">Hapus</button></a> -->
                <!-- </td> -->
              </tr>
              <?php } ?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <!-- data table end -->
