getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_67aae6a87c84f4_76751129',
'has_nocache_code' => false,
'file_dependency' =>
array (
'facb299c808b5054c02a45d8bb71c027b8a2fe49' =>
array (
0 => 'admin/ticket/view.tpl',
1 => 1712762115,
2 => 'file',
),
),
'includes' =>
array (
'file:admin/header.tpl' => 1,
'file:admin/footer.tpl' => 1,
),
))) {
function content_67aae6a87c84f4_76751129 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/admin/ticket';
$_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);
?>
#getValue('ticket')->id;?>
getValue('ticket')->title;?>
getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('comments'), 'comment');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('comment')->value) {
$foreach0DoElse = false;
?>
getValue('comment')->comment, (bool) 1);?>
getValue('comment')->commenter_name;?>
回复于 getValue('comment')->datetime;?>
# getValue('comment')->comment_id+1;?>
getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
>
$("#reply").click(function () {
$.ajax({
url: "/admin/ticket/getValue('ticket')->id;?>
",
type: 'PUT',
dataType: "json",
data: {
comment: $('#reply-comment').val()
},
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');
}
}
})
});
$("#add_ai_reply").click(function () {
$.ajax({
url: "/admin/ticket/getValue('ticket')->id;?>
/ai",
type: 'PUT',
dataType: "json",
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');
}
}
})
});
$("#confirm_close").click(function () {
$.ajax({
url: "/admin/ticket/getValue('ticket')->id;?>
/close",
type: 'PUT',
dataType: "json",
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');
}
}
})
});
>
renderSubTemplate('file:admin/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}