File manager - Edit - /home/autoph/public_html/projects/tickets-autohub/public/files/DB/import.txt
Back
<button id="import_comp">Import Comp</button> <button id="import_deal">Import Deal</button> <button id="import_depts">Import Depts</button> <script> $('#import_comp').on('click', function(e){ e.preventDefault(); $.ajax({ type: "POST", url: "/importCompanies", dataType: 'json', data: null, processData: false, contentType: false, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(result){ alert(result); }, error: function(error){ alert(error); } }); }); $('#import_deal').on('click', function(e){ e.preventDefault(); $.ajax({ type: "POST", url: "/importDealers", dataType: 'json', data: null, processData: false, contentType: false, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(result){ alert(result); }, error: function(error){ alert(error); } }); }); $('#import_depts').on('click', function(e){ e.preventDefault(); $.ajax({ type: "POST", url: "/importDepartments", dataType: 'json', data: null, processData: false, contentType: false, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(result){ alert(result); }, error: function(error){ alert(error); } }); }); </script>
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings