_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6494327f9af1a0_96237487',
'has_nocache_code' => false,
'file_dependency' =>
array (
'cd06497a5fd3e4439bdfe5f491a3c3ad8e749b2d' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\customer_threads\\helpers\\view\\view.tpl',
1 => 1687433793,
2 => 'file',
),
),
'includes' =>
array (
'file:./modal.tpl' => 1,
'file:./message.tpl' => 2,
'file:controllers/customer_threads/helpers/view/timeline_item.tpl' => 1,
),
),false)) {
function content_6494327f9af1a0_96237487 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
inheritance->instanceBlock($_smarty_tpl, 'Block_15106591666494327f68e118_02870277', "override_tpl");
?>
inheritance->endChild($_smarty_tpl, "helpers/view/view.tpl");
}
/* {block "override_tpl"} */
class Block_15106591666494327f68e118_02870277 extends Smarty_Internal_Block
{
public $subBlocks = array (
'override_tpl' =>
array (
0 => 'Block_15106591666494327f68e118_02870277',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>
_subTemplateRender("file:./modal.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Thread"),$_smarty_tpl ) );?>
:
#tpl_vars['id_customer_thread']->value);?>
tpl_vars['next_thread']->value)) && $_smarty_tpl->tpl_vars['next_thread']->value) {?>
tpl_vars['next_thread']->value['name'];?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['messages']->value, 'message');
$_smarty_tpl->tpl_vars['message']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['message']->value) {
$_smarty_tpl->tpl_vars['message']->do_else = false;
?>
_subTemplateRender("file:./message.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('message'=>$_smarty_tpl->tpl_vars['message']->value,'initial'=>false), 0, true);
?>
smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
tpl_vars['timeline_items']->value)) {?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Orders and messages timeline"),$_smarty_tpl ) );?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['timeline_items']->value, 'dates');
$_smarty_tpl->tpl_vars['dates']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['dates']->value) {
$_smarty_tpl->tpl_vars['dates']->do_else = false;
?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['dates']->value, 'timeline_item', false, 'date');
$_smarty_tpl->tpl_vars['timeline_item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['date']->value => $_smarty_tpl->tpl_vars['timeline_item']->value) {
$_smarty_tpl->tpl_vars['timeline_item']->do_else = false;
?>
_subTemplateRender("file:controllers/customer_threads/helpers/view/timeline_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('timeline_item'=>$_smarty_tpl->tpl_vars['timeline_item']->value), 0, true);
?>
smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
type="text/javascript">
var timer;
$(document).ready(function(){
$('select[name=id_employee_forward]').change(function(){
if ($(this).val() >= 0)
$('#message_forward').show(400);
else
$('#message_forward').hide(200);
if ($(this).val() == 0)
$('#message_forward_email').show(200);
else
$('#message_forward_email').hide(200);
});
$('textarea[name=message_forward]').click(function(){
if($(this).val() == 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'You can add a comment here.'),$_smarty_tpl ) );?>
')
{
$(this).val('');
}
});
timer = setInterval("markAsRead()", 3000);
});
function markAsRead()
{
$.ajax({
type: 'POST',
url: 'ajax-tab.php',
async: true,
dataType: 'json',
data: {
controller: 'AdminCustomerThreads',
action: 'markAsRead',
token : 'tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
',
id_thread: tpl_vars['id_customer_thread']->value;?>
}
});
clearInterval(timer);
timer = null;
}
>