hapus panjar
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
<th>deskripsi</th>
|
||||
<th>kategori</th>
|
||||
<th>bayaran</th>
|
||||
<th>tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@@ -161,7 +162,8 @@
|
||||
panjar['tarikh'],
|
||||
panjar['deskripsi'],
|
||||
panjar['kategori'],
|
||||
panjar['bayaran']
|
||||
panjar['bayaran'],
|
||||
'<button onclick="deletepanjar();" class="btn btn-danger fas fa-trash-alt"></button>'
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
|
||||
@@ -169,6 +171,28 @@
|
||||
|
||||
}
|
||||
|
||||
function deletepanjar()
|
||||
{
|
||||
Swal.fire({
|
||||
title: 'Adakah anda pasti?',
|
||||
text: "Anda tidak dapat untuk mengembalinya kembali!",
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
cancelButtonText: "Batal",
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Teruskan!'
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
Swal.fire(
|
||||
'Deleted!',
|
||||
'Your file has been deleted.',
|
||||
'success'
|
||||
)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function caritarikh()
|
||||
{
|
||||
let mula = $('#mula').val();
|
||||
|
||||
Reference in New Issue
Block a user