_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', 'unifunc' => 'content_64943295e1d568_11707426', 'has_nocache_code' => false, 'file_dependency' => array ( '48e801ac9cdeb65c8907ac32af4711e6f73f323e' => array ( 0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\stores\\helpers\\options\\options.tpl', 1 => 1687433793, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_64943295e1d568_11707426 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_loadInheritance(); $_smarty_tpl->inheritance->init($_smarty_tpl, true); ?> inheritance->instanceBlock($_smarty_tpl, 'Block_21049516964943295e00335_26938910', "after"); ?> inheritance->endChild($_smarty_tpl, "helpers/options/options.tpl"); } /* {block "after"} */ class Block_21049516964943295e00335_26938910 extends Smarty_Internal_Block { public $subBlocks = array ( 'after' => array ( 0 => 'Block_21049516964943295e00335_26938910', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> type="text/javascript"> function ajaxStoreStates(id_state_selected) { $.ajax({ url: "index.php", cache: false, data: "ajax=1&tab=AdminStates&token=smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0], array( array('tab'=>'AdminStates'),$_smarty_tpl ) );?> &action=states&id_country="+$('#PS_SHOP_COUNTRY_ID').val() + "&id_state=" + $('#PS_SHOP_STATE_ID').val(), success: function(html) { if (html == 'false') { $("#conf_id_PS_SHOP_STATE_ID").parent().fadeOut(); $('#PS_SHOP_STATE_ID option[value=0]').attr("selected", "selected"); } else { $("#PS_SHOP_STATE_ID").html(html); $("#conf_id_PS_SHOP_STATE_ID").parent().fadeIn(); $('#PS_SHOP_STATE_ID option[value=' + id_state_selected + ']').attr("selected", "selected"); } } }); } $(document).ready(function(){ tpl_vars['categoryData']->value['fields']['PS_SHOP_STATE_ID']['value']))) {?> if ($('#PS_SHOP_COUNTRY_ID') && $('#PS_SHOP_STATE_ID')) { ajaxStoreStates(tpl_vars['categoryData']->value['fields']['PS_SHOP_STATE_ID']['value'];?> ); $('#PS_SHOP_COUNTRY_ID').change(function() { ajaxStoreStates(); }); } }); >