ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR/scripts/bacheca
/
home
mhhtmff
app
NH-HR
scripts
bacheca
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
bacheca.js
4.76 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR/scripts/bacheca/bacheca.js
function openBacheca() { if (auth_user == 1) { document.getElementById("bacheca").style.display = 'block'; document.getElementById("open_bacheca").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#bacheca_content").innerHTML = this.responseText; } }; xmlhttp.open("GET", "php/bacheca/bacheca_content.php"); xmlhttp.send(); } else { openLoginSection(); } } function openBachecaDetail(id) { if (auth_user == 1) { document.getElementById("bacheca_detail").style.display = 'block'; document.getElementById("open_bacheca_detail").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#bacheca_detail_content").innerHTML = this.responseText; } }; xmlhttp.open("GET", "php/bacheca/bacheca_detail_content.php?id="+id); xmlhttp.send(); } else { openLoginSection(); } } function openNewBacheca() { if (auth_user == 1) { document.getElementById("new_bacheca").style.display = 'block'; document.getElementById("open_new_bacheca").click(); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#new_bacheca_content").innerHTML = this.responseText; } }; xmlhttp.open("GET", "php/bacheca/new_bacheca.php"); xmlhttp.send(); } else { openLoginSection(); } } function sendBacheca() { var object = document.querySelector('#object').value; var body = document.querySelector('#body').value; $.ajax({ type: "POST", url: "php/bacheca/send_new_bacheca.php", data: { object: object, body: body }, success: function (res) { if (res === 'error') { Swal.fire({ type: 'error', text: 'Errore: ' + res }); } else { Swal.fire({ type: 'success', title: 'Pubblicazione inserita con successo!', showConfirmButton: false, timer: 2000 }); //Allegati var fd = new FormData(); for (i = 0; i <= 10; i++) { var files = document.querySelector('#ticket_attachments').files[i]; // Check file selected or not fd.append('file' + i, files); } $.ajax({ url: 'php/bacheca/attachments_upload.php', type: 'post', data: fd, dataType: 'json', contentType: false, processData: false, success: function (response) { if (response.status == 1) { var extension = response.extension; var path = response.path; } else { alert('File not uploaded'); } } }); document.querySelector('#close_new_bacheca').click(); openBacheca(); } } }); } function deleteBacheca(id) { Swal.fire({ title: "Eliminare la pubblicazione?", showDenyButton: false, showCancelButton: true, confirmButtonText: "Elimina", denyButtonText: `No` }).then((result) => { if (result.value == true) { $.ajax({ type: "POST", url: "php/bacheca/delete_bacheca.php", data: { id: id }, success: function (res) { if (res === 'error') { Swal.fire({ type: 'error', text: 'Errore: ' + res }); } else { Swal.fire({ type: 'success', title: 'Pubblicazione eliminata con successo!', showConfirmButton: false, timer: 2000 }); openBacheca(); } } }); } }); }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply