161 lines
15 KiB
PHP
161 lines
15 KiB
PHP
<?php /* Smarty version Smarty-3.1.20, created on 2021-03-23 12:37:10
|
|
compiled from "/Volumes/Dev/Sources/Clients/apartmoment/site_web/templates/frontOffice/am/modules/Beds24/hook/home-body.html" */ ?>
|
|
<?php /*%%SmartyHeaderCode:18323710066059d2e63259b4-13215836%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'c067b68470d23265e081e3634b0246482cf94589' =>
|
|
array (
|
|
0 => '/Volumes/Dev/Sources/Clients/apartmoment/site_web/templates/frontOffice/am/modules/Beds24/hook/home-body.html',
|
|
1 => 1613761751,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '18323710066059d2e63259b4-13215836',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'error' => 0,
|
|
'label_attr' => 0,
|
|
'label' => 0,
|
|
'required' => 0,
|
|
'name' => 0,
|
|
'value' => 0,
|
|
'error_focus' => 0,
|
|
'message' => 0,
|
|
'idx' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.20',
|
|
'unifunc' => 'content_6059d2e64324b7_51778906',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_6059d2e64324b7_51778906')) {function content_6059d2e64324b7_51778906($_smarty_tpl) {?><div class="reservations">
|
|
<?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name'=>"beds24.form.search")); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['form'][0][0]->generateForm(array('name'=>"beds24.form.search"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
|
|
|
|
<form id="beds24-search-form" method="post" action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0][0]->generateUrlFunction(array('path'=>"/search-availabilities"),$_smarty_tpl);?>
|
|
">
|
|
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['form_hidden_fields'][0][0]->renderHiddenFormField(array(),$_smarty_tpl);?>
|
|
|
|
|
|
<div class="row">
|
|
<?php $_smarty_tpl->smarty->_tag_stack[] = array('form_field', array('field'=>"start_date")); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"start_date"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
|
|
|
|
<div class="form-group col-md-3<?php if ($_smarty_tpl->tpl_vars['error']->value) {?> has-error<?php }?>">
|
|
<label class="control-label" for="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
"><i class="fa fa-calendar"></i> <?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label']->value,$_smarty_tpl);?>
|
|
<?php if ($_smarty_tpl->tpl_vars['required']->value) {?> <span class="required">*</span><?php }?></label>
|
|
<div class="control-input">
|
|
<input type="text" name="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['name']->value,$_smarty_tpl);?>
|
|
" id="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
" class="date-debut form-control" maxlength="255" placeholder="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['placeholder'],$_smarty_tpl);?>
|
|
" value="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['value']->value,$_smarty_tpl);?>
|
|
" <?php if ($_smarty_tpl->tpl_vars['required']->value) {?> aria-required="true" required<?php }?><?php if (!$_smarty_tpl->tpl_vars['error_focus']->value&&$_smarty_tpl->tpl_vars['error']->value) {?> autofocus<?php }?>>
|
|
<?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
|
|
<span class="help-block"><?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['message']->value,$_smarty_tpl);?>
|
|
</span>
|
|
<?php $_smarty_tpl->tpl_vars['error_focus'] = new Smarty_variable(true, null, 0);?>
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"start_date"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
|
|
|
|
|
|
<?php $_smarty_tpl->smarty->_tag_stack[] = array('form_field', array('field'=>"end_date")); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"end_date"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
|
|
|
|
<div class="form-group col-md-3<?php if ($_smarty_tpl->tpl_vars['error']->value) {?> has-error<?php }?>">
|
|
<label class="control-label" for="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
"><i class="fa fa-calendar"></i> <?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label']->value,$_smarty_tpl);?>
|
|
<?php if ($_smarty_tpl->tpl_vars['required']->value) {?> <span class="required">*</span><?php }?></label>
|
|
<div class="control-input">
|
|
<input type="text" name="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['name']->value,$_smarty_tpl);?>
|
|
" id="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
" class="date-fin form-control" maxlength="255" placeholder="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['placeholder'],$_smarty_tpl);?>
|
|
" value="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['value']->value,$_smarty_tpl);?>
|
|
" <?php if ($_smarty_tpl->tpl_vars['required']->value) {?> aria-required="true" required<?php }?><?php if (!$_smarty_tpl->tpl_vars['error_focus']->value&&$_smarty_tpl->tpl_vars['error']->value) {?> autofocus<?php }?>>
|
|
<?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
|
|
<span class="help-block"><?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['message']->value,$_smarty_tpl);?>
|
|
</span>
|
|
<?php $_smarty_tpl->tpl_vars['error_focus'] = new Smarty_variable(true, null, 0);?>
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"end_date"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
|
|
|
|
|
|
<?php $_smarty_tpl->smarty->_tag_stack[] = array('form_field', array('field'=>"adults")); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"adults"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
|
|
|
|
<div class="form-group col-md-2<?php if ($_smarty_tpl->tpl_vars['error']->value) {?> has-error<?php }?>">
|
|
<label class="control-label" for="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
"><i class="fa fa-male"></i> <?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label']->value,$_smarty_tpl);?>
|
|
<?php if ($_smarty_tpl->tpl_vars['required']->value) {?> <span class="required">*</span><?php }?></label>
|
|
<div class="control-input">
|
|
<select name="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['name']->value,$_smarty_tpl);?>
|
|
" id="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
" class=" form-control" <?php if ($_smarty_tpl->tpl_vars['required']->value) {?> aria-required="true" required<?php }?><?php if (!$_smarty_tpl->tpl_vars['error_focus']->value&&$_smarty_tpl->tpl_vars['error']->value) {?> autofocus<?php }?>>
|
|
<?php $_smarty_tpl->tpl_vars['idx'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['idx']->step = 1;$_smarty_tpl->tpl_vars['idx']->total = (int) ceil(($_smarty_tpl->tpl_vars['idx']->step > 0 ? 5+1 - (1) : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['idx']->step));
|
|
if ($_smarty_tpl->tpl_vars['idx']->total > 0) {
|
|
for ($_smarty_tpl->tpl_vars['idx']->value = 1, $_smarty_tpl->tpl_vars['idx']->iteration = 1;$_smarty_tpl->tpl_vars['idx']->iteration <= $_smarty_tpl->tpl_vars['idx']->total;$_smarty_tpl->tpl_vars['idx']->value += $_smarty_tpl->tpl_vars['idx']->step, $_smarty_tpl->tpl_vars['idx']->iteration++) {
|
|
$_smarty_tpl->tpl_vars['idx']->first = $_smarty_tpl->tpl_vars['idx']->iteration == 1;$_smarty_tpl->tpl_vars['idx']->last = $_smarty_tpl->tpl_vars['idx']->iteration == $_smarty_tpl->tpl_vars['idx']->total;?>
|
|
<option value="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['idx']->value,$_smarty_tpl);?>
|
|
"<?php if ($_smarty_tpl->tpl_vars['value']->value==$_smarty_tpl->tpl_vars['idx']->value) {?> selected<?php }?>><?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['idx']->value,$_smarty_tpl);?>
|
|
</option>
|
|
<?php }} ?>
|
|
</select>
|
|
<?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
|
|
<span class="help-block"><?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['message']->value,$_smarty_tpl);?>
|
|
</span>
|
|
<?php $_smarty_tpl->tpl_vars['error_focus'] = new Smarty_variable(true, null, 0);?>
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"adults"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
|
|
|
|
|
|
<?php $_smarty_tpl->smarty->_tag_stack[] = array('form_field', array('field'=>"children")); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"children"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
|
|
|
|
<div class="form-group col-md-2<?php if ($_smarty_tpl->tpl_vars['error']->value) {?> has-error<?php }?>">
|
|
<label class="control-label" for="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
"><i class="fa fa-child"></i> <?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label']->value,$_smarty_tpl);?>
|
|
<?php if ($_smarty_tpl->tpl_vars['required']->value) {?> <span class="required">*</span><?php }?></label>
|
|
<div class="control-input">
|
|
<select name="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['name']->value,$_smarty_tpl);?>
|
|
" id="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['label_attr']->value['for'],$_smarty_tpl);?>
|
|
" class=" form-control" <?php if ($_smarty_tpl->tpl_vars['required']->value) {?> aria-required="true" required<?php }?><?php if (!$_smarty_tpl->tpl_vars['error_focus']->value&&$_smarty_tpl->tpl_vars['error']->value) {?> autofocus<?php }?>>
|
|
<?php $_smarty_tpl->tpl_vars['idx'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['idx']->step = 1;$_smarty_tpl->tpl_vars['idx']->total = (int) ceil(($_smarty_tpl->tpl_vars['idx']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['idx']->step));
|
|
if ($_smarty_tpl->tpl_vars['idx']->total > 0) {
|
|
for ($_smarty_tpl->tpl_vars['idx']->value = 0, $_smarty_tpl->tpl_vars['idx']->iteration = 1;$_smarty_tpl->tpl_vars['idx']->iteration <= $_smarty_tpl->tpl_vars['idx']->total;$_smarty_tpl->tpl_vars['idx']->value += $_smarty_tpl->tpl_vars['idx']->step, $_smarty_tpl->tpl_vars['idx']->iteration++) {
|
|
$_smarty_tpl->tpl_vars['idx']->first = $_smarty_tpl->tpl_vars['idx']->iteration == 1;$_smarty_tpl->tpl_vars['idx']->last = $_smarty_tpl->tpl_vars['idx']->iteration == $_smarty_tpl->tpl_vars['idx']->total;?>
|
|
<option value="<?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['idx']->value,$_smarty_tpl);?>
|
|
"<?php if ($_smarty_tpl->tpl_vars['value']->value==$_smarty_tpl->tpl_vars['idx']->value) {?> selected<?php }?>><?php if ($_smarty_tpl->tpl_vars['idx']->value==0) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['intl'][0][0]->translate(array('l'=>"Aucun"),$_smarty_tpl);?>
|
|
<?php } else { ?><?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['idx']->value,$_smarty_tpl);?>
|
|
<?php }?></option>
|
|
<?php }} ?>
|
|
</select>
|
|
<?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
|
|
<span class="help-block"><?php echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['message']->value,$_smarty_tpl);?>
|
|
</span>
|
|
<?php $_smarty_tpl->tpl_vars['error_focus'] = new Smarty_variable(true, null, 0);?>
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['form_field'][0][0]->renderFormField(array('field'=>"children"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
|
|
|
|
|
|
<div class="col-md-2">
|
|
<button type="submit" class="btn btn-primary" id="book-now"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['intl'][0][0]->translate(array('l'=>"Réserver maintenant"),$_smarty_tpl);?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['form'][0][0]->generateForm(array('name'=>"beds24.form.search"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
|
|
|
|
|
|
<div id="beds24-search-results">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php }} ?>
|