<?php
/* Smarty version 3.1.29, created on 2025-05-02 17:02:02
  from "/home/globalne/i-tunnel.xyz/templates/js/page/logactivity_js.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_6814d05acd9a77_30194293',
  'file_dependency' => 
  array (
    '5c0c38141f5aea19067d4ded8bc9fd5df3ad44c3' => 
    array (
      0 => '/home/globalne/i-tunnel.xyz/templates/js/page/logactivity_js.tpl',
      1 => 1741775697,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6814d05acd9a77_30194293 ($_smarty_tpl) {
echo '<script'; ?>
>
$('document').ready(function()
{
    $.fn.dataTable.ext.errMode = () => swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
        button: false,
        closeOnClickOutside: false,
        timer: 3000
    }).then(() => {
        location.reload()
    });
	table = $('.table-activity').dataTable({
	    responsive: false,
        "bProcessing": false,
        "bServerSide": true,
        "ajax": {
            "url": "/log-activity-serverside",
            "type": "POST"
        },
        order: [[0, 'desc']],
        "language": {                
                "infoFiltered": ""
            },
	});
	function getD(){
        $.ajax({
            url: "<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
serverside/data/get_data.php",
            type: "GET",
            dataType: "JSON",
        	cache: false,
            success: function(data)
            {
        		if(data.response == 1){
       
                }
                if(data.response == 2){
                	swal(`Error`, data.licmsg, `error`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 5000
                    }).then(() => {
                        location.reload()
                    });
                }
                if(data.response == 3){
                	swal(`Error`, data.licmsg, `error`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 5000
                    }).then(() => {
                        location.reload()
                    });
                }
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Error`, `Error parsing data.`, `error`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            },
            complete: function(){
        
        	}
        });
    }
    getD()
});
<?php echo '</script'; ?>
><?php }
}
