hotel_commerce/cache/smarty/compile/47/11/7e/47117e51b0c082d58aa66e37de390fc44834b530_0.file.occupancy.tpl.php
2023-06-26 13:09:26 +05:30

153 lines
8.4 KiB
PHP

<?php
/* Smarty version 3.1.39, created on 2023-06-22 13:37:53
from 'C:\xampp\htdocs\hotelcommerce\admin\themes\default\template\controllers\products\occupancy.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_64943291cd4351_22066832',
'has_nocache_code' => false,
'file_dependency' =>
array (
'47117e51b0c082d58aa66e37de390fc44834b530' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\products\\occupancy.tpl',
1 => 1687433793,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_64943291cd4351_22066832 (Smarty_Internal_Template $_smarty_tpl) {
if ((isset($_smarty_tpl->tpl_vars['product']->value->id))) {?>
<input type="hidden" name="occupancy_loaded" value="1">
<div id="product-occupancy" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Occupancy" />
<h3 class="tab"> <i class="icon-users"></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Occupancy'),$_smarty_tpl ) );?>
</h3>
<div class="alert alert-info">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Below, enter the base occupancy of this room type.'),$_smarty_tpl ) );?>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="base_adults">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>''),$_smarty_tpl ) );?>
">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Base adults'),$_smarty_tpl ) );?>
</span>
</label>
<div class="col-sm-3">
<input id="base_adults" type="text" name="base_adults" class="form-control" value="<?php if ((isset($_smarty_tpl->tpl_vars['roomTypeInfo']->value))) {
echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['roomTypeInfo']->value['adults'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
} else { ?>2<?php }?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="base_children">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>''),$_smarty_tpl ) );?>
">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Base children'),$_smarty_tpl ) );?>
</span>
</label>
<div class="col-sm-3">
<input id="base_children" type="text" name="base_children" class="form-control" <?php if ((isset($_smarty_tpl->tpl_vars['roomTypeInfo']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['roomTypeInfo']->value['children'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
</div>
</div>
<input id="is_occupancy_submit" type="hidden" name="is_occupancy_submit" class="form-control" value="0">
<hr>
<div class="alert alert-info">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Below, enter the maximum number of adults and children which can be accommodated in a room of this room type.'),$_smarty_tpl ) );?>
<br>
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'For maximum room occupancy, the total number of guests which can be accommodated in a room of this room type.'),$_smarty_tpl ) );?>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="max_adults">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Enter maximum number of adults can be accommodated in a room of this room type.'),$_smarty_tpl ) );?>
">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Maximum adults'),$_smarty_tpl ) );?>
</span>
</label>
<div class="col-sm-3">
<input id="max_adults" type="text" name="max_adults" class="form-control" <?php if ((isset($_smarty_tpl->tpl_vars['roomTypeInfo']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['roomTypeInfo']->value['max_adults'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="max_children">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Enter maximum number of children can be accommodated in a room of this room type.'),$_smarty_tpl ) );?>
">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Maximum children'),$_smarty_tpl ) );?>
</span>
</label>
<div class="col-sm-3">
<input id="max_children" type="text" name="max_children" class="form-control" <?php if ((isset($_smarty_tpl->tpl_vars['roomTypeInfo']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['roomTypeInfo']->value['max_children'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="max_guests">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Enter maximum number of guests can be accommodated in a room of this room type.'),$_smarty_tpl ) );?>
">
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Maximum room occupancy'),$_smarty_tpl ) );?>
</span>
</label>
<div class="col-sm-3">
<input id="max_guests" type="text" name="max_guests" class="form-control" <?php if ((isset($_smarty_tpl->tpl_vars['roomTypeInfo']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['roomTypeInfo']->value['max_guests'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
</div>
</div>
<div class="panel-footer">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);
if ((isset($_REQUEST['page'])) && $_REQUEST['page'] > 1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);
}?>" class="btn btn-default">
<i class="process-icon-cancel"></i>
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Cancel'),$_smarty_tpl ) );?>
</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right checkOccupancySubmit" disabled="disabled">
<i class="process-icon-loading"></i>
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Save'),$_smarty_tpl ) );?>
</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right checkOccupancySubmit" disabled="disabled">
<i class="process-icon-loading"></i>
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Save and stay'),$_smarty_tpl ) );?>
</button>
</div>
</div>
<?php }?>
<?php echo '<script'; ?>
>
$(document).ready(function() {
$(".checkOccupancySubmit").on("click", function() {
$("#is_occupancy_submit").val(1);
return true;
});
});
<?php echo '</script'; ?>
><?php }
}