getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.3.1', 'unifunc' => 'content_67d141df42e9f5_29684125', 'has_nocache_code' => false, 'file_dependency' => array ( '41bbbb291083698274a901fefb2f81d3621767c2' => array ( 0 => 'admin/setting/im.tpl', 1 => 1740366544, 2 => 'file', ), ), 'includes' => array ( 'file:admin/header.tpl' => 1, 'file:admin/footer.tpl' => 1, ), ))) { function content_67d141df42e9f5_29684125 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/admin/setting'; $_smarty_tpl->renderSubTemplate('file:admin/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); ?>
> $("#save-setting").click(function () { $.ajax({ url: '/admin/setting/im', type: 'POST', dataType: "json", data: { getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('update_field'), 'key'); $foreach0DoElse = true; foreach ($_from ?? [] as $_smarty_tpl->getVariable('key')->value) { $foreach0DoElse = false; ?> getValue('key');?> : $('#getValue('key');?> ').val(), getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?> }, success: function (data) { if (data.ret === 1) { $('#success-message').text(data.msg); $('#success-dialog').modal('show'); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); $("#test-telegram").click(function () { $.ajax({ url: '/admin/setting/test/telegram', type: 'POST', dataType: "json", data: { telegram_user_id: $('#telegram_user_id').val(), }, success: function (data) { if (data.ret === 1) { $('#success-noreload-message').text(data.msg); $('#success-noreload-dialog').modal('show'); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); $("#test-discord").click(function () { $.ajax({ url: '/admin/setting/test/discord', type: 'POST', dataType: "json", data: { discord_user_id: $('#discord_user_id').val(), }, success: function (data) { if (data.ret === 1) { $('#success-noreload-message').text(data.msg); $('#success-noreload-dialog').modal('show'); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); $("#test-slack").click(function () { $.ajax({ url: '/admin/setting/test/slack', type: 'POST', dataType: "json", data: { slack_user_id: $('#slack_user_id').val(), }, success: function (data) { if (data.ret === 1) { $('#success-noreload-message').text(data.msg); $('#success-noreload-dialog').modal('show'); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); > renderSubTemplate('file:admin/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); } }