Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/test.qr.picotech.app/public_html/public/js/ drwxr-xr-x |
Viewing file: Select action/file-type: $(document).ready(function () { const countDataTable = $('#countdownTable').DataTable({ processing: true, serverSide: false, ajax: { url: '/check/order/countdown', type: 'GET', data: function(d) { d.restaurant_id = $('#restaurantFilter').val(); }, dataSrc: 'data', error: function(xhr) { console.error(xhr.responseText); } }, columns: [ { data: 'order_time' }, { data: 'order_number' }, { data: 'table_name' }, { data: 'remaining_time' }, { data: 'status' } ], language: { emptyTable: "No orders found" }, dom: 'lrtp', pageLength: 20, lengthChange: false, paging: true, }); function loadOrders() { $.ajax({ url: '/check/order/countdown', method: 'GET', data: { restaurant_id: $('#restaurantFilter').val() }, success: function(res) { if (res.status === 'success') { countDataTable.clear().rows.add(res.data).draw(); } else { $('#order_time_countdown_data').html('<tr><td colspan="5">' + res.data + '</td></tr>'); } }, error: function(xhr) { console.error(xhr.responseText); } }); } loadOrders(); $('#restaurantFilter').on('change', function() { loadOrders(); countDataTable.ajax.reload(); }); setInterval(() => { loadOrders(); }, 5500); }); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |