Initial commit
This commit is contained in:
70
admin/pindah/data_pindah.php
Normal file
70
admin/pindah/data_pindah.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<div class="card card-info">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">
|
||||
<i class="fa fa-table"></i> Data Pindah</h3>
|
||||
</div>
|
||||
<!-- /.card-header -->
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<div>
|
||||
<a href="?page=add-pindah" class="btn btn-primary">
|
||||
<i class="fa fa-edit"></i> Tambah Data</a>
|
||||
</div>
|
||||
<br>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>NIK</th>
|
||||
<th>Nama</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Alasan</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$no = 1;
|
||||
$sql = $koneksi->query("SELECT p.id_pend, p.nik, p.nama, d.tgl_pindah, d.alasan, d.id_pindah from
|
||||
tb_pindah d inner join tb_pdd p on p.id_pend=d.id_pdd");
|
||||
while ($data= $sql->fetch_assoc()) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo $no++; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $data['nik']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $data['nama']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $data['tgl_pindah']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $data['alasan']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="?page=edit-pindah&kode=<?php echo $data['id_pindah']; ?>" title="Ubah"
|
||||
class="btn btn-success btn-sm">
|
||||
<i class="fa fa-edit"></i>
|
||||
</a>
|
||||
<a href="?page=del-pindah&kode=<?php echo $data['id_pend']; ?>" onclick="return confirm('Apakah anda yakin hapus data ini ?')"
|
||||
title="Hapus" class="btn btn-danger btn-sm">
|
||||
<i class="fa fa-trash"></i>
|
||||
</>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
Reference in New Issue
Block a user