_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['actions']->value, 'action'); $_smarty_tpl->tpl_vars['action']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['action']->value) { $_smarty_tpl->tpl_vars['action']->do_else = false; ?> smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
tpl_vars['customer']->value->firstname))) {?>

tpl_vars['customer']->value->firstname, ENT_QUOTES, 'UTF-8', true);?> tpl_vars['customer']->value->lastname, ENT_QUOTES, 'UTF-8', true);?> (tpl_vars['customer']->value->email, ENT_QUOTES, 'UTF-8', true);?> )

tpl_vars['thread']->value->email, ENT_QUOTES, 'UTF-8', true);?>

tpl_vars['contact']->value)) && trim($_smarty_tpl->tpl_vars['contact']->value) != '') {?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"To:"),$_smarty_tpl ) );?> tpl_vars['contact']->value, ENT_QUOTES, 'UTF-8', true);?>
tpl_vars['customer']->value->firstname))) {?>

tpl_vars['count_ok']->value) {?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'[1]%1$d[/1] order(s) validated for a total amount of [2]%2$s[/2]','sprintf'=>array($_smarty_tpl->tpl_vars['count_ok']->value,$_smarty_tpl->tpl_vars['total_ok']->value),'tags'=>array('','')),$_smarty_tpl ) );?> smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"No orders validated for the moment"),$_smarty_tpl ) );?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0], array( array('date'=>$_smarty_tpl->tpl_vars['customer']->value->date_add,'full'=>0),$_smarty_tpl ) ); $_prefixVariable4 = ob_get_clean(); echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Customer since: %s",'sprintf'=>array($_prefixVariable4)),$_smarty_tpl ) );?>

tpl_vars['first_message']->value['id_employee']) {?> _subTemplateRender("file:./message.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('message'=>$_smarty_tpl->tpl_vars['first_message']->value,'initial'=>true), 0, false); ?>
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);?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Your answer to"),$_smarty_tpl ) );?> tpl_vars['customer']->value->firstname))) { echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value->firstname, ENT_QUOTES, 'UTF-8', true);?> tpl_vars['customer']->value->lastname, ENT_QUOTES, 'UTF-8', true);?> tpl_vars['thread']->value->email; }?>

tpl_vars['current_employee']->value->firstname))) {?>
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; } >