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

            $userSql = "SELECT * FROM bulan ORDER BY kode ASC";
            $userQry = mysql_query($userSql, $koneksidb) or die ("error paging: ".mysql_error());
            $nomor  = 0; 
            while ($userRow = mysql_fetch_array($userQry)) {
              $nomor++;
              ?>
              <tr>
                <td><b><?php echo $nomor; ?></b></td>
                <td><?php echo $userRow['kode']; ?></td>
                <td align="left"><?php echo $userRow['keterangan'] ?></td>
                <td align="center">
                  <!-- <a href="?page=Edit-Pembayaran&amp;Kode="><button type="button" class="btn btn-warning btn-xs">Ubah</button></a> &nbsp -->
                  <a href="?page=Delete-Pembayaran&amp;Kode=<?php echo $userRow['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 -->