hotel_commerce/cache/smarty/compile/b1/50/e6/b150e665c078a5f26b813fce286d740996faea0a_0.file.options.tpl.php
2023-06-26 13:09:26 +05:30

121 lines
4.2 KiB
PHP

<?php
/* Smarty version 3.1.39, created on 2023-06-22 13:37:36
from 'C:\xampp\htdocs\hotelcommerce\admin\themes\default\template\controllers\geolocation\helpers\options\options.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_64943280633064_62374290',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b150e665c078a5f26b813fce286d740996faea0a' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\geolocation\\helpers\\options\\options.tpl',
1 => 1687433793,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_64943280633064_62374290 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
<?php
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1619047291649432805ddf94_92367987', "field");
?>
<?php
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_5547013186494328060b0e0_68191851', "input");
?>
<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, "helpers/options/options.tpl");
}
/* {block "field"} */
class Block_1619047291649432805ddf94_92367987 extends Smarty_Internal_Block
{
public $subBlocks = array (
'field' =>
array (
0 => 'Block_1619047291649432805ddf94_92367987',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'checkbox_table') {?>
<div class="well margin-form" style="height: 300px; overflow-y: auto;">
<table class="table" style="border-spacing : 0; border-collapse : collapse;">
<thead>
<tr>
<th><input type="checkbox" name="checkAll" onclick="checkDelBoxes(this.form, 'countries[]', this.checked)" /></th>
<th><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Name'),$_smarty_tpl ) );?>
</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['field']->value['list'], 'country');
$_smarty_tpl->tpl_vars['country']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['country']->value) {
$_smarty_tpl->tpl_vars['country']->do_else = false;
?>
<tr>
<td><input type="checkbox" name="countries[]" value="<?php echo $_smarty_tpl->tpl_vars['country']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']];?>
" <?php if (in_array(strtoupper($_smarty_tpl->tpl_vars['country']->value['iso_code']),$_smarty_tpl->tpl_vars['allowed_countries']->value)) {?>checked="checked"<?php }?> /></td>
<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
<?php } else { ?>
<?php
$_smarty_tpl->inheritance->callParent($_smarty_tpl, $this, '{$smarty.block.parent}');
?>
<?php }
}
}
/* {/block "field"} */
/* {block "input"} */
class Block_5547013186494328060b0e0_68191851 extends Smarty_Internal_Block
{
public $subBlocks = array (
'input' =>
array (
0 => 'Block_5547013186494328060b0e0_68191851',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'C:\\xampp\\htdocs\\hotelcommerce\\tools\\smarty\\plugins\\modifier.replace.php','function'=>'smarty_modifier_replace',),));
?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea_newlines') {?>
<div class="col-lg-9">
<textarea name=<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
cols="<?php echo $_smarty_tpl->tpl_vars['field']->value['cols'];?>
" rows="<?php echo $_smarty_tpl->tpl_vars['field']->value['rows'];?>
"><?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['field']->value['value'],';',"\n"), ENT_QUOTES, 'UTF-8', true);?>
</textarea>
</div>
<?php } else { ?>
<?php
$_smarty_tpl->inheritance->callParent($_smarty_tpl, $this, '{$smarty.block.parent}');
?>
<?php }
}
}
/* {/block "input"} */
}