hotel_commerce/cache/smarty/compile/6d/e4/34/6de43418c04019fd066ee9da25317104fdc09917_0.file.view.tpl.php
2023-06-26 13:09:26 +05:30

85 lines
2.4 KiB
PHP

<?php
/* Smarty version 3.1.39, created on 2023-06-22 13:37:57
from 'C:\xampp\htdocs\hotelcommerce\admin\themes\default\template\controllers\stats\helpers\view\view.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_649432953c83a3_94571961',
'has_nocache_code' => false,
'file_dependency' =>
array (
'6de43418c04019fd066ee9da25317104fdc09917' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\stats\\helpers\\view\\view.tpl',
1 => 1687433793,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_649432953c83a3_94571961 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
<?php
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_2088630220649432953bf026_52019017', "override_tpl");
?>
<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, "helpers/view/view.tpl");
}
/* {block "override_tpl"} */
class Block_2088630220649432953bf026_52019017 extends Smarty_Internal_Block
{
public $subBlocks = array (
'override_tpl' =>
array (
0 => 'Block_2088630220649432953bf026_52019017',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>
<?php echo '<script'; ?>
type="text/javascript">
$(function() {
var btn_save_calendar = $('span[class~="process-icon-save-calendar"]').parent();
var btn_submit_calendar = $('#submitDatePicker');
if (btn_save_calendar.length > 0 && btn_submit_calendar.length > 0)
{
btn_submit_calendar.hide();
btn_save_calendar.click(function() {
btn_submit_calendar.before('<input type="hidden" name="'+btn_submit_calendar.attr("name")+'" value="1" />');
$('#calendar_form').submit();
});
}
var btn_save_settings = $('span[class~="process-icon-save-settings"]').parent();
var btn_submit_settings = $('#submitSettings');
if (btn_save_settings.length > 0 && btn_submit_settings.length > 0)
{
btn_submit_settings.hide();
btn_save_settings.click(function() {
btn_submit_settings.before('<input type="hidden" name="'+btn_submit_settings.attr("name")+'" value="1" />');
$('#settings_form').submit();
});
}
});
<?php echo '</script'; ?>
>
<?php
}
}
/* {/block "override_tpl"} */
}