hapus panjar

This commit is contained in:
fifi97
2021-07-07 09:14:25 +08:00
parent 065b492050
commit 9a55bb3587
3 changed files with 272 additions and 9 deletions
+25 -1
View File
@@ -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();