_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', 'unifunc' => 'content_6494327ee252d2_05498306', 'has_nocache_code' => false, 'file_dependency' => array ( '701a2d649de712077c05f0ed1f272cda7e84f014' => array ( 0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\customer_threads\\helpers\\options\\options.tpl', 1 => 1687433793, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_6494327ee252d2_05498306 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_loadInheritance(); $_smarty_tpl->inheritance->init($_smarty_tpl, true); ?> inheritance->instanceBlock($_smarty_tpl, 'Block_8165908536494327ed3cb95_26056115', "after"); ?> inheritance->endChild($_smarty_tpl, "helpers/options/options.tpl"); } /* {block "after"} */ class Block_8165908536494327ed3cb95_26056115 extends Smarty_Internal_Block { public $subBlocks = array ( 'after' => array ( 0 => 'Block_8165908536494327ed3cb95_26056115', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> tpl_vars['use_sync']->value) {?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Sync'),$_smarty_tpl ) );?>

smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Click to synchronize mail automatically'),$_smarty_tpl ) );?>

type="text/javascript"> var ajaxQueries = new Array(); function run_sync() { $('#ajax_error').html(''); $('#ajax_error').hide(); $('#ajax_conf').html(''); $('#ajax_conf').hide(); for(i = 0; i < ajaxQueries.length; i++) ajaxQueries[i].abort(); ajaxQueries = new Array(); $('#ajax_loader').html(''); ajaxQuery = $.ajax({ type: "POST", url: "index.php", data: { ajax: "1", token: "tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?> ", syncImapMail: "1", ajax:"1", action:"syncImap", tab:"AdminCustomerThreads" }, dataType : "json", success: function(jsonData) { jsonError = ''; if (jsonData.hasError) { for (i=0;i < jsonData.errors.length;i++) jsonError = jsonError+'
  • '+jsonData.errors[i]+'
  • '; $('#ajax_error').html(''); $('#ajax_error').fadeIn(); } else { jsonError = '
  • smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Sync success'),$_smarty_tpl ) );?>
  • '; for (i=0;i < jsonData.errors.length;i++) jsonError = jsonError+'
  • '+jsonData.errors[i]+'
  • '; $('#ajax_conf').html(''); $('#ajax_conf').fadeIn(); } $('#ajax_loader').html(''); }, error: function(XMLHttpRequest, textStatus, errorThrown) { jAlert("TECHNICAL ERROR: unable to sync.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus); } }); ajaxQueries.push(ajaxQuery); }; >