_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_649432a01bb7e8_54670362',
'has_nocache_code' => false,
'file_dependency' =>
array (
'86748f607a753e672938ce4eecb4c1f803080da4' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\toolbar.tpl',
1 => 1687433793,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_649432a01bb7e8_54670362 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, false);
?>
btn_save.click(function() {
// Vars
var btn_submit = $('#tpl_vars['table']->value;?>
_form_submit_btn');
// Avoid double click
if (submited)
return false;
submited = true;
//add hidden input to emulate submit button click when posting the form -> field name posted
btn_submit.before('');
$('#tpl_vars['table']->value;?>
_form').submit();
return false;
});
if (btn_save_and_stay)
{
btn_save_and_stay.click(function() {
//add hidden input to emulate submit button click when posting the form -> field name posted
btn_submit.before('');
$('#tpl_vars['table']->value;?>
_form').submit();
return false;
});
}
array (
0 => 'Block_1404578622649432a010e7b3_85758631',
),
'formSubmit' =>
array (
0 => 'Block_257868561649432a017cec0_14319447',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>
type="text/javascript">
//tpl_vars['table']->value;?>
_toolbar span[class~="process-icon-save"]').parent();
//get reference on form submit button
btn_submit = $('#tpl_vars['table']->value;?>
_form_submit_btn');
if (btn_save.length > 0 && btn_submit.length > 0)
{
//get reference on save and stay link
btn_save_and_stay = $('span[class~="process-icon-save-and-stay"]').parent();
//get reference on current save link label
lbl_save = $('#desc-tpl_vars['table']->value;?>
-save div');
//override save link label with submit button value
if (btn_submit.val().length > 0)
lbl_save.html(btn_submit.attr("value"));
if (btn_save_and_stay.length > 0)
{
//get reference on current save link label
lbl_save_and_stay = $('#desc-tpl_vars['table']->value;?>
-save-and-stay div');
//override save and stay link label with submit button value
if (btn_submit.val().length > 0 && lbl_save_and_stay && !lbl_save_and_stay.hasClass('locked'))
lbl_save_and_stay.html(btn_submit.val() + " smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'and stay'),$_smarty_tpl ) );?>
");
}
//hide standard submit button
btn_submit.hide();
//bind enter key press to validate form
$('#tpl_vars['table']->value;?>
_form').keypress(function (e) {
if (e.which == 13 && e.target.localName != 'textarea' && !e.target.hasClass('tagify'))
$('#desc-tpl_vars['table']->value;?>
-save').click();
});
//submit the form
inheritance->instanceBlock($_smarty_tpl, 'Block_257868561649432a017cec0_14319447', 'formSubmit', $this->tplIndex);
?>
}
tpl_vars['tab_modules_open']->value)) && $_smarty_tpl->tpl_vars['tab_modules_open']->value) {?>
$('#modules_list_container').slideDown();
openModulesList();
});
tpl_vars['tab_modules_list']->value)) && $_smarty_tpl->tpl_vars['tab_modules_list']->value) {?>
$('.process-icon-modules-list').parent('a').unbind().bind('click', function (){
$('#modules_list_container').slideDown();
openModulesList();
});
//]]>
>
array (
0 => 'Block_246576901649432a019eb83_12168369',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>
tpl_vars['title']->value) {?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['title']->value, 'item', false, 'key', 'title', array (
'last' => true,
'iteration' => true,
'total' => true,
));
$_smarty_tpl->tpl_vars['item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->do_else = false;
$_smarty_tpl->tpl_vars['__smarty_foreach_title']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_title']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_title']->value['iteration'] === $_smarty_tpl->tpl_vars['__smarty_foreach_title']->value['total'];
?>
]*?>!', ' ', $_smarty_tpl->tpl_vars['item']->value);?>
tpl_vars['__smarty_foreach_title']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_title']->value['last'] : null)) {?>
smarty->ext->_foreach->restore($_smarty_tpl, 1);?>