added kadis login
This commit is contained in:
61
application/views/kepaladinas/scripts.php
Normal file
61
application/views/kepaladinas/scripts.php
Normal file
@ -0,0 +1,61 @@
|
||||
<!--/#wrapper -->
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/script/html5shiv.min.js"></script>
|
||||
<script src="assets/script/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="<?= base_url() ?>assets/scripts/jquery.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/scripts/modernizr.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/plugin/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/plugin/mCustomScrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/plugin/nprogress/nprogress.js"></script>
|
||||
<script src="<?= base_url() ?>assets/plugin/sweet-alert/sweetalert.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/plugin/waves/waves.min.js"></script>
|
||||
|
||||
<script src="<?= base_url() ?>assets/sweetalert/sweetalert.js"></script>
|
||||
<script src="<?= base_url() ?>assets/toastr/toastr.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/block/jquery.blockUI.js"></script>
|
||||
<script src="<?= base_url() ?>assets/my_main.js"></script>
|
||||
<script src="<?= base_url() ?>assets/scripts/main.min.js"></script>
|
||||
|
||||
<?php
|
||||
if ($this->session->flashdata('info')) { ?>
|
||||
<script>
|
||||
toastr.success("<?= $this->session->flashdata('info') ?>");
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<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