finish all admin
This commit is contained in:
@ -30,4 +30,32 @@
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<script>
|
||||
function logout() {
|
||||
swal({
|
||||
title: 'Logout?',
|
||||
text: "Anda akan keluar dari sistem",
|
||||
icon: 'info',
|
||||
buttons: {
|
||||
cancel: {
|
||||
text: "Batal",
|
||||
value: null,
|
||||
visible: true,
|
||||
className: "btn btn-danger",
|
||||
closeModal: true,
|
||||
},
|
||||
confirm: {
|
||||
text: "Ya, Logout",
|
||||
value: true,
|
||||
visible: true,
|
||||
className: "btn btn-primary",
|
||||
closeModal: true
|
||||
}
|
||||
}
|
||||
}).then((result) => {
|
||||
if (result) {
|
||||
window.location.href = server_url + 'admin/logout';
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user