_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', 'unifunc' => 'content_649432984ceea7_29998196', 'has_nocache_code' => false, 'file_dependency' => array ( '563f279acdf6a84c95e6bb66a109258d5d2b40e3' => array ( 0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\translations\\helpers\\view\\main.tpl', 1 => 1687433793, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_649432984ceea7_29998196 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_loadInheritance(); $_smarty_tpl->inheritance->init($_smarty_tpl, true); ?> inheritance->instanceBlock($_smarty_tpl, 'Block_160188700764943298332606_18921124', "override_tpl"); ?> inheritance->endChild($_smarty_tpl, "helpers/view/view.tpl"); } /* {block "override_tpl"} */ class Block_160188700764943298332606_18921124 extends Smarty_Internal_Block { public $subBlocks = array ( 'override_tpl' => array ( 0 => 'Block_160188700764943298332606_18921124', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> type="text/javascript"> function chooseTypeTranslation(id_lang) { getE('translation_lang').value = id_lang; document.getElementById('typeTranslationForm').submit(); } function addThemeSelect() { var list_type_for_theme = ['front', 'modules', 'pdf', 'mails']; var type = $('select[name=type]').val(); $('select[name=theme]').hide(); for (i=0; i < list_type_for_theme.length; i++) if (list_type_for_theme[i] == type) { $('select[name=theme]').show(); if (type == 'front') $('select[name=theme]').children('option[value=""]').attr('disabled', true) else $('select[name=theme]').children('option[value=""]').attr('disabled', false) } else $('select[name=theme]').val('tpl_vars['theme_default']->value;?> '); } $(document).ready(function(){ addThemeSelect(); $('select[name=type]').change(function() { addThemeSelect(); }); $('#translations-languages a').click(function(e) { e.preventDefault(); $(this).parent().addClass('active').siblings().removeClass('active'); $('#language-button').html($(this).html()+' '); }); $('#modify-translations').click(function(e) { var lang = $('#translations-languages li.active').data('type'); if (lang == null) return !alert('smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Please select your language!'),$_smarty_tpl ) );?> '); chooseTypeTranslation($('#translations-languages li.active').data('type')); }); }); >
type="text/javascript"> $(document).ready(function(){ $('#file-selectbutton').click(function(e) { $('#importLanguage').trigger('click'); }); $('#file-name').click(function(e) { $('#importLanguage').trigger('click'); }); $('#importLanguage').change(function(e) { if ($(this)[0].files !== undefined) { var files = $(this)[0].files; var name = ''; $.each(files, function(index, value) { name += value.name+', '; }); $('#file-name').val(name.slice(0, -2)); } else // Internet Explorer 9 Compatibility { var name = $(this).val().split(/[\\/]/); $('#file-name').val(name[name.length-1]); } }); }); >