if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.47',
'unifunc' => 'content_63f77d9c063311_29288797',
'has_nocache_code' => false,
'file_dependency' =>
array (
'3182899109d73b467fd94be44251ea4248840b4b' =>
array (
0 => '/var/www/site/data/www/site.ru/modules/anproductextratabs/views/templates/admin/form.tpl',
1 => 1667646058,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_63f77d9c063311_29288797 (Smarty_Internal_Template $_smarty_tpl) {
?><div class='row anproductextratabs_forms'>
<div class='col-lg-12'>
<h4><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Edit tab','mod'=>'anproductextratabs'),$_smarty_tpl ) );?>
<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['tab']->value->name,'htmlall','UTF-8' ));?>
</h4>
<input type='hidden' name='id_shop' value='<?php echo intval($_smarty_tpl->tpl_vars['tab']->value->id_shop);?>
'>
<div class='col-md-3'>
<label>Tab type: <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['tab']->value->getTypeFull($_smarty_tpl->tpl_vars['tab']->value->type),'htmlall','UTF-8' ));?>
</label>
</div>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['fields']->value, 'field');
$_smarty_tpl->tpl_vars['field']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->do_else = false;
?>
<div class='form-group'>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'hidden') {?>
<input type='hidden' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
' value='<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']]))) {
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']],'htmlall','UTF-8' ));
}?>'>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'switch') {?>
<div class="form-group">
<div class='col-md-3 text-right'>
<label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
</div>
<div class='col-md-3'>
<select class='form-control' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
'>
<?php if ((isset($_smarty_tpl->tpl_vars['field']->value['values']))) {?>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['field']->value['values'], 'value');
$_smarty_tpl->tpl_vars['value']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->do_else = false;
?>
<option value='<?php echo intval($_smarty_tpl->tpl_vars['value']->value['value']);?>
'<?php if (($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) || ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']] != $_smarty_tpl->tpl_vars['value']->value['value'] && $_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['value']->value['value'])) {?> selected<?php }?>><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['value']->value['label'],'htmlall','UTF-8' ));?>
</option>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
<?php }?>
</select>
</div>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') {?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['lang'] === true) {?>
<div class="translations tabbable" id="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
">
<div class="translationsFields tab-content">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['languages']->value, 'language');
$_smarty_tpl->tpl_vars['language']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->do_else = false;
?>
<div class="translationsFields-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
tab-pane translation-field translation-label-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['language']->value['iso_code'],'htmlall','UTF-8' ));?>
">
<div class='col-md-3 text-right'>
<label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
</div>
<div class='col-md-9'>
<textarea class='rte autoload_rte form-control' id='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'>
<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']])) && (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']]))) {?>
<?php echo $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']];?>
<?php }?>
</textarea>
</div>
</div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</div>
</div>
<?php } else { ?>
<?php }?>
<?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['lang'] === true) {?>
<div class="translations tabbable" id="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
">
<div class="translationsFields tab-content">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['languages']->value, 'language');
$_smarty_tpl->tpl_vars['language']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->do_else = false;
?>
<div class="translationsFields-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
tab-pane translation-field translation-label-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['language']->value['iso_code'],'htmlall','UTF-8' ));?>
">
<div class='col-md-3 text-right'>
<label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
</div>
<div class='col-md-9'>
<input value='<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']])) && (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']]))) {
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']],'htmlall','UTF-8' ));
}?>' type='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['type'],'htmlall','UTF-8' ));?>
' class='form-control' id='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'>
</div>
</div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</div>
</div>
<?php } else { ?>
<div class='col-md-3 text-right'>
<label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
</div>
<div class='col-md-9'>
<input value='<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']]))) {
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']],'htmlall','UTF-8' ));
}?>' type='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['type'],'htmlall','UTF-8' ));?>
' class='form-control' id='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
'>
</div>
<?php }?>
<?php }?>
</div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
<div class='form-group'>
<div class="translations tabbable" id="apnt_button_submit">
<div class="translationsFields tab-content">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['languages']->value, 'language');
$_smarty_tpl->tpl_vars['language']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->do_else = false;
?>
<div class="translationsFields-apnt_button_submit_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
tab-pane translation-field translation-label-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['language']->value['iso_code'],'htmlall','UTF-8' ));?>
">
<button type='button' data-id-tab='<?php echo intval($_smarty_tpl->tpl_vars['tab']->value->id);?>
' data-language='<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
' name='submit_tabs' class='btn btn-success pull-right submit_tab_<?php echo intval($_smarty_tpl->tpl_vars['tab']->value->id);?>
'><i class=''></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Save','mod'=>'anproductextratabs'),$_smarty_tpl ) );?>
</button>
</div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</div>
</div>
</div>
</div>
</div><?php }
}