function content_55d2ecf6a248d2_80709672($_smarty_tpl) { fn_preload_lang_vars(array('position_short', 'name', 'delivery_time', 'weight_limit', 'usergroups', 'status', 'edit', 'view', 'usergroup', 'delete', 'no_data', 'add_shipping_method', 'manage_shippings')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="shippings_form" class="<?php if (fn_check_form_permissions('')) { ?> cm-hide-inputs<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['shippings']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="1%"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </th> <th width="1%"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th width="20%"><?php echo $_smarty_tpl->__("name"); ?> </th> <th><?php echo $_smarty_tpl->__("delivery_time"); ?> </th> <th><?php echo $_smarty_tpl->__("weight_limit"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> )</th> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <th><?php echo $_smarty_tpl->__("usergroups"); ?> </th> <?php } ?> <th width="5%"> </th> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['shipping'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['shipping']->_loop = false; $_from = $_smarty_tpl->tpl_vars['shippings']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['shipping']->key => $_smarty_tpl->tpl_vars['shipping']->value) { $_smarty_tpl->tpl_vars['shipping']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["status_display"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("edit"), null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["status_display"] = new Smarty_variable("text", null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['shipping']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } else { ?> cm-no-hide-input<?php } ?> "> <input type="hidden" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['tax_ids'], ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['tax_ids'], ENT_QUOTES, 'UTF-8'); ?> " /> <td> <input type="checkbox" name="shipping_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <td> <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro input-hidden" /></td> <td data-ct-shipping-name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> "> <a href="<?php echo htmlspecialchars(fn_url("shippings.update?shipping_id=" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> </td> <td> <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][delivery_time]" size="20" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['delivery_time'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden" /></td> <td class="nowrap"> <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][min_weight]" size="4" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['min_weight'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden" /> - <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][max_weight]" size="4" value="<?php if ($_smarty_tpl->tpl_vars['shipping']->value['max_weight'] != "0.00") { echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['max_weight'], ENT_QUOTES, 'UTF-8'); } ?> " class="input-mini input-hidden right" /></td> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <td class="nowrap"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('select_mode' => true, 'title' => __("usergroup"), 'id' => "ship_data_" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], 'name' => "shipping_data[" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'] . "][usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['shipping']->value['usergroup_ids'], 'input_extra' => ''), 0); ?> </td> <?php } ?> <td class="nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_smarty_tpl->tpl_vars['link_text']->value, 'href' => "shippings.update?shipping_id=" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'])); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'href' => "shippings.delete?shipping_id=" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'])); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], 'display' => $_smarty_tpl->tpl_vars['status_display']->value, 'status' => $_smarty_tpl->tpl_vars['shipping']->value['status'], 'hidden' => '', 'object_id_name' => "shipping_id", 'table' => "shippings"), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </form> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['shippings']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[shippings.m_delete]", 'form' => "shippings_form")); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if ($_smarty_tpl->tpl_vars['shippings']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.m_update]", 'but_role' => "submit-link", 'but_target_form' => "shippings_form"), 0); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "shippings.add", 'prefix' => "top", 'hide_tools' => true, 'link_text' => '', 'title' => __("add_shipping_method"), 'icon' => "icon-plus"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("manage_shippings"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true), 0); }
function content_55e3587120cf51_87990967($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('currency_rate', 'currency_sign', 'editing_currency', 'no_data', 'new_currency', 'add_currency', 'exchange_rate', 'currencies')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <div class="items-container cm-sortable <?php if (!fn_allow_save_object('', '', true)) { ?> cm-hide-inputs<?php } ?> " data-ca-sortable-table="currencies" data-ca-sortable-id-name="currency_id" id="manage_currencies_list"> <?php if ($_smarty_tpl->tpl_vars['currencies_data']->value) { ?> <table class="table table-middle table-objects table-striped"> <tbody> <?php $_smarty_tpl->tpl_vars["currency"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["currency"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['currencies_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["currency"]->key => $_smarty_tpl->tpl_vars["currency"]->value) { $_smarty_tpl->tpl_vars["currency"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['currency']->value['is_primary'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["_href_delete"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_href_delete"] = new Smarty_variable("currencies.delete?currency_id=" . (string) $_smarty_tpl->tpl_vars['currency']->value['currency_id'], null, 0); ?> <?php } ?> <?php ob_start(); echo $_smarty_tpl->__("currency_rate"); $_tmp1 = ob_get_clean(); ob_start(); echo $_smarty_tpl->__("currency_sign"); $_tmp2 = ob_get_clean(); $_smarty_tpl->tpl_vars["currency_details"] = new Smarty_variable("<span>" . (string) $_smarty_tpl->tpl_vars['currency']->value['currency_code'] . "</span>, " . $_tmp1 . ": <span>" . (string) $_smarty_tpl->tpl_vars['currency']->value['coefficient'] . "</span>, " . $_tmp2 . ": <span>" . (string) $_smarty_tpl->tpl_vars['currency']->value['symbol'] . "</span>", null, 0); ?> <?php ob_start(); echo $_smarty_tpl->__("editing_currency"); $_tmp3 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['currency']->value['currency_id'], 'text' => $_smarty_tpl->tpl_vars['currency']->value['description'], 'details' => $_smarty_tpl->tpl_vars['currency_details']->value, 'href' => "currencies.update?currency_id=" . (string) $_smarty_tpl->tpl_vars['currency']->value['currency_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'href_delete' => $_smarty_tpl->tpl_vars['_href_delete']->value, 'delete_data' => $_smarty_tpl->tpl_vars['currency']->value['currency_code'], 'delete_target_id' => "manage_currencies_list", 'header_text' => $_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['currency']->value['description'], 'table' => "currencies", 'object_id_name' => "currency_id", 'status' => $_smarty_tpl->tpl_vars['currency']->value['status'], 'additional_class' => "cm-sortable-row cm-sortable-id-" . (string) $_smarty_tpl->tpl_vars['currency']->value['currency_id'], 'no_table' => true, 'non_editable' => $_smarty_tpl->tpl_vars['runtime']->value['company_id'], 'is_view_link' => true, 'draggable' => true, 'hidden' => true, 'update_controller' => "currencies", 'st_result_ids' => "manage_currencies_list"), 0); ?> <?php } ?> </tbody> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <!--manage_currencies_list--></div> <div class="buttons-container"> <?php $_smarty_tpl->_capture_stack[0][] = array("extra_tools", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "currencies:import_rates")); $_block_repeat = true; echo smarty_block_hook(array('name' => "currencies:import_rates"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "currencies:import_rates"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> </div> <?php if (fn_allow_save_object('', '', true)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/currencies/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('currency' => array()), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_currency", 'text' => __("new_currency"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'title' => __("add_currency"), 'act' => "general", 'icon' => "icon-plus"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("exchange_rate"); ?> </h6> <ul class="unstyled currencies-rate" id="currencies_stock_exchange"> </ul> </div> <a href="http://finance.yahoo.com/" class="currencies-powered" target="_blank" title="Yahoo finance"></a> <script type="text/javascript"> var exchangeRate = { primary_currency: "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['primary_currency']->value, ENT_QUOTES, 'UTF-8'); ?> ", init: function() { // Check if primary_currency is valid else use USD as default value this.getRate(this.primary_currency, 'USD', "exchangeRate.getAllCurrency"); $.ceEvent('on', 'ce.form_confirm', function(elm) { var code = elm.data('caParams'); if(code !== 'EUR' && code !== 'GBP' && code !== 'CHF') { $('#currencies_stock_exchange li:contains("' + code + '")').remove(); } }); }, getAllCurrency: function(data){ var self = this; var currencies = ['USD','EUR','GBP','CHF']; if(parseFloat(data.query.results.row.rate, 10) == 0) { this.primary_currency = 'USD'; } <?php $_smarty_tpl->tpl_vars["currency"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["currency"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['currencies_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["currency"]->key => $_smarty_tpl->tpl_vars["currency"]->value) { $_smarty_tpl->tpl_vars["currency"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['currency']->value['currency_code'] != "EUR" && $_smarty_tpl->tpl_vars['currency']->value['currency_code'] != "GBP" && $_smarty_tpl->tpl_vars['currency']->value['currency_code'] != "CHF" && $_smarty_tpl->tpl_vars['currency']->value['currency_code'] != "USD") { ?> currencies.push("<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['currency_code'], ENT_QUOTES, 'UTF-8'); ?> "); <?php } ?> <?php } ?> $.each(currencies, function(index, value) { self.getRate(value, self.primary_currency); }); }, getRate: function (from, to, callback) { var script = document.createElement('script'); callback = callback || "exchangeRate.parseExchangeRate"; script.setAttribute('src', "http://query.yahooapis.com/v1/public/yql?q=select%20rate%2Cname%20from%20csv%20where%20url%3D'http%3A%2F%2Fdownload.finance.yahoo.com%2Fd%2Fquotes%3Fs%3D" + from + to + "%253DX%26f%3Dl1n'%20and%20columns%3D'rate%2Cname'&format=json&callback=" + callback); document.body.appendChild(script); }, parseExchangeRate: function(data) { var name = Tygh.$.trim(data.query.results.row.name.split('to')[0]); var rate = parseFloat(data.query.results.row.rate, 10); var container = Tygh.$('#currencies_stock_exchange'); if(rate !== 0 && name != this.primary_currency) { function asc_sort(a, b){ return ($(b).text()) < ($(a).text()) ? 1 : -1; } container.append('<li>' + name + ' / '+ this.primary_currency +' <span class="pull-right muted">'+ rate +'</span></li>'); container.find('li').sort(asc_sort).appendTo(container); } } }; exchangeRate.init(); </script> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "currencies:manage_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "currencies:manage_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "currencies:manage_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("currencies"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'select_languages' => true, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); ?> <?php }
function content_55e61f9b555597_02885983($_smarty_tpl) { if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } fn_preload_lang_vars(array('none', 'enter_other', 'none', 'enter_other', 'enter_other', 'enter_other')); $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['feature']->_loop = false; $_smarty_tpl->tpl_vars["feature_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) { $_smarty_tpl->tpl_vars['feature']->_loop = true; $_smarty_tpl->tpl_vars["feature_id"]->value = $_smarty_tpl->tpl_vars['feature']->key; ?> <?php $_smarty_tpl->tpl_vars['allow_enter_variant'] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['feature']->value, "product_features"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] != smarty_modifier_enum("ProductFeatures::GROUP")) { ?> <div class="control-group"> <label class="control-label" for="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['feature']->value['prefix']) { ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> </span><?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::TEXT_SELECTBOX") || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX") || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::EXTENDED")) { ?> <?php $_smarty_tpl->tpl_vars["value_selected"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['use_variant_picker']) { ?> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['selected']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['feature']->value['variant_id'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['feature']->value['variants'][$_smarty_tpl->tpl_vars['feature']->value['variant_id']]['variant']) { ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable($_smarty_tpl->tpl_vars['feature']->value['variants'][$_smarty_tpl->tpl_vars['feature']->value['variant_id']]['variant'], null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['variant_id']) { ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable(fn_get_product_feature_variant($_smarty_tpl->tpl_vars['feature']->value['variant_id']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable($_smarty_tpl->tpl_vars['selected_variant']->value['variant'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable($_smarty_tpl->__("none"), null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/ajax_select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_url' => "product_features.get_feature_variants_list?feature_id=" . (string) $_smarty_tpl->tpl_vars['feature_id']->value, 'text' => $_smarty_tpl->tpl_vars['selected_variant']->value, 'result_elm' => "feature_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value, 'id' => (string) $_smarty_tpl->tpl_vars['feature_id']->value . "_selector", 'js_action' => "Tygh." . "\$" . "('#input_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value . "').toggleBy((Tygh." . "\$" . "('#feature_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value . "').val() != 'disable_select'));"), 0); ?> <input type="text" class="hidden-input<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX")) { ?> cm-value-decimal<?php } ?> " name="product_data[add_new_variant][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][variant]" id="input_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("enter_other"); ?> " /> <?php } else { ?> <select name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " onchange="Tygh.$('#input_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').toggleBy((this.value != 'disable_select'));"> <option value="">-<?php echo $_smarty_tpl->__("none"); ?> -</option> <?php $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["var"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) { $_smarty_tpl->tpl_vars["var"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['var']->value['variant_id'] == $_smarty_tpl->tpl_vars['feature']->value['variant_id']) { $_smarty_tpl->tpl_vars["value_selected"] = new Smarty_variable(true, null, 0); ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_enter_variant']->value) { ?> <option value="disable_select">-<?php echo $_smarty_tpl->__("enter_other"); ?> -</option> <?php } ?> </select> <input type="text" class="hidden-input<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX")) { ?> cm-value-decimal<?php } ?> " name="product_data[add_new_variant][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][variant]" id="input_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("enter_other"); ?> " /> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::MULTIPLE_CHECKBOX")) { ?> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="" /> <?php $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["var"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) { $_smarty_tpl->tpl_vars["var"]->_loop = true; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"><input type="checkbox" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> ]" <?php if ($_smarty_tpl->tpl_vars['var']->value['selected']) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_enter_variant']->value) { ?> <input type="text" name="product_data[add_new_variant][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][variant]" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("enter_other"); ?> " /> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::SINGLE_CHECKBOX")) { ?> <label class="checkbox"> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="N" /> <input type="checkbox" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['feature']->value['value'] == "Y") { ?> checked="checked"<?php } ?> /></label> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::DATE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "date_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value, 'date_name' => "product_data[product_features][" . (string) $_smarty_tpl->tpl_vars['feature_id']->value . "]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['feature']->value['value_int']) === null || $tmp === '' ? '' : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php } else { ?> <input type="text" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_FIELD")) { if ($_smarty_tpl->tpl_vars['feature']->value['value_int'] != '') { echo htmlspecialchars(floatval($_smarty_tpl->tpl_vars['feature']->value['value_int']), ENT_QUOTES, 'UTF-8'); } } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8'); } ?> " id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_FIELD")) { ?> cm-value-decimal<?php } ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['suffix']) { ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </span><?php } ?> </div> </div> <?php } } ?> <?php $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['feature']->_loop = false; $_smarty_tpl->tpl_vars["feature_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) { $_smarty_tpl->tpl_vars['feature']->_loop = true; $_smarty_tpl->tpl_vars["feature_id"]->value = $_smarty_tpl->tpl_vars['feature']->key; ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::GROUP") && $_smarty_tpl->tpl_vars['feature']->value['subfeatures']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['feature']->value['description']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_assign_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_features' => $_smarty_tpl->tpl_vars['feature']->value['subfeatures']), 0); ?> <?php } } }
function content_55e61f9bbf8558_38066348($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_math')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php'; } fn_preload_lang_vars(array('general', 'variants', 'name', 'position', 'inventory', 'tt_views_product_options_update_inventory', 'type', 'description', 'comment', 'comment_hint', 'required', 'missing_variants_handling', 'display_message', 'hide_option_completely', 'regexp', 'tt_views_product_options_update_regexp', 'regexp_hint', 'inner_hint', 'tt_views_product_options_update_inner_hint', 'incorrect_filling_message', 'tt_views_product_options_update_incorrect_filling_message', 'allowed_extensions', 'allowed_extensions_hint', 'max_uploading_file_size', 'max_uploading_file_size_hint', 'multiupload', 'position_short', 'name', 'modifier', 'type', 'weight_modifier', 'type', 'status', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon')); if ($_smarty_tpl->tpl_vars['option_data']->value['option_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['option_data']->value['option_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["cm_no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['option_data']->value, "product_options"), null, 0); ?> <div id="content_group_product_option_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="option_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="form-horizontal form-edit form-highlight cm-disable-empty-files <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <input type="hidden" name="option_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php } } ?> <?php if ($_REQUEST['product_id']) { ?> <input class="cm-no-hide-input" type="hidden" name="option_data[product_id]" value="<?php echo htmlspecialchars($_REQUEST['product_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['company_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_company_id']->value, null, 0); ?> <?php } ?> <?php } } ?> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_option_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "S" || $_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "R" || $_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C" || !$_smarty_tpl->tpl_vars['option_data']->value) { ?> <li id="tab_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js"><a><?php echo $_smarty_tpl->__("variants"); ?> </a></li> <?php } ?> </ul> </div> <div class="cm-tabs-content" id="tabs_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="content_tab_option_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <input class="cm-no-hide-input" type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['object']->value, ENT_QUOTES, 'UTF-8'); ?> " name="object"> <label for="elm_option_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input class="span9" type="text" name="option_data[option_name]" id="elm_option_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> "/> </div> </div> <div class="control-group"> <label class="control-label" for="elm_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("position"); ?> </label> <div class="controls"> <input type="text" name="option_data[position]" id="elm_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_inventory_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("inventory"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_inventory")), 0); ?> </label> <input type="hidden" name="option_data[inventory]" value="N" /> <div class="controls"> <?php if (strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) { ?> <label class="checkbox"> <input type="checkbox" name="option_data[inventory]" id="elm_inventory_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['inventory'] == "Y") { ?> checked="checked"<?php } ?> /> </label> <?php } else { ?> <p>-</p> <?php } ?> </div> </div> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "option_data[company_id]", 'id' => "elm_option_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value, 'selected' => ($tmp = @$_smarty_tpl->tpl_vars['option_data']->value['company_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['company_id']->value : $tmp, 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value), 0); ?> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> <input type="hidden" name="option_data[option_type]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['option_type'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-no-hide-input" /> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_option_type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("type"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("views/product_options/components/option_types.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "option_data[option_type]", 'value' => $_smarty_tpl->tpl_vars['option_data']->value['option_type'], 'display' => "select", 'tag_id' => "elm_option_type_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'check' => true), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> </label> <div class="controls"> <textarea id="elm_option_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[description]" cols="55" rows="8" class="cm-wysiwyg span9"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_comment_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("comment"); ?> </label> <div class="controls"> <input type="text" name="option_data[comment]" id="elm_option_comment_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['comment'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("comment_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_file_required_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("required"); ?> </label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="option_data[required]" value="N" /><input type="checkbox" id="elm_option_file_required_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[required]" value="Y" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['required'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['option_data']->value['option_type'] || strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) { ?> <div class="control-group"> <label class="control-label" for="elm_option_missing_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("missing_variants_handling"); ?> </label> <div class="controls"> <?php if (strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) { ?> <select id="elm_option_missing_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[missing_variants_handling]"> <option value="M" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['missing_variants_handling'] == "M") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("display_message"); ?> </option> <option value="H" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['missing_variants_handling'] == "H") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("hide_option_completely"); ?> </option> </select> <?php } else { ?> <p>-</p> <?php } ?> </div> </div> <?php } ?> <div id="extra_options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "I" && $_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "T") { ?> class="hidden"<?php } ?> > <div class="control-group"> <label class="control-label" for="elm_option_regexp_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("regexp"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_regexp")), 0); ?> </label> <div class="controls"> <input type="text" name="option_data[regexp]" id="elm_option_regexp_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo $_smarty_tpl->tpl_vars['option_data']->value['regexp']; ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("regexp_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_inner_hint_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("inner_hint"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_inner_hint")), 0); ?> </label> <div class="controls"> <input type="text" name="option_data[inner_hint]" id="elm_option_inner_hint_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['inner_hint'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_incorrect_message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("incorrect_filling_message"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_incorrect_filling_message")), 0); ?> </label> <div class="controls"> <input type="text" name="option_data[incorrect_message]" id="elm_option_incorrect_message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['incorrect_message'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> </div> </div> </div> <div id="file_options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "F") { ?> class="hidden"<?php } ?> > <div class="control-group"> <label class="control-label" for="elm_option_allowed_extensions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("allowed_extensions"); ?> </label> <div class="controls"> <input type="text" name="option_data[allowed_extensions]" id="elm_option_allowed_extensions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['allowed_extensions'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("allowed_extensions_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_max_uploading_file_size_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("max_uploading_file_size"); ?> </label> <div class="controls"> <input type="text" name="option_data[max_file_size]" id="elm_option_max_uploading_file_size_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['max_file_size'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("max_uploading_file_size_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_multiupload_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("multiupload"); ?> </label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="option_data[multiupload]" value="N" /><input type="checkbox" id="elm_option_multiupload_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[multiupload]" value="Y" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['multiupload'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:properties")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_options:properties"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_options:properties"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> <!--content_tab_option_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <div class="hidden" id="content_tab_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <table class="table table-middle"> <thead> <tr class="first-sibling"> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("name"); ?> </th> <th><?php echo $_smarty_tpl->__("modifier"); ?> / <?php echo $_smarty_tpl->__("type"); ?> </th> <th><?php echo $_smarty_tpl->__("weight_modifier"); ?> / <?php echo $_smarty_tpl->__("type"); ?> </th> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("status"); ?> </th> <th> <div id="on_st_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combinations-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> exicon-expand"></div><div id="off_st_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combinations-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> exicon-collapse"></div> </th> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["vr"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["vr"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['option_data']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_v"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars["vr"]->key => $_smarty_tpl->tpl_vars["vr"]->value) { $_smarty_tpl->tpl_vars["vr"]->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_v"]['iteration']++; ?> <?php $_smarty_tpl->tpl_vars["num"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['fe_v']['iteration'], null, 0); ?> <tbody class="hover cm-row-item" id="option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> "> <tr> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-micro" /></td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variant_name]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['variant_name'], ENT_QUOTES, 'UTF-8'); ?> " class="input-medium" /></td> <td class="nowrap <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> cm-no-hide-input<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['modifier'], ENT_QUOTES, 'UTF-8'); ?> " size="5" class="input-mini" /> / <select class="input-mini" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier_type]"> <option value="A" <?php if ($_smarty_tpl->tpl_vars['vr']->value['modifier_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['vr']->value['modifier_type'] == "P") { ?> selected="selected"<?php } ?> >%</option> </select> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => $_smarty_tpl->tpl_vars['vr']->value['variant_id'], 'name' => "update_all_vendors[" . (string) $_smarty_tpl->tpl_vars['num']->value . "]"), 0); ?> </td> <td class="nowrap"> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['weight_modifier'], ENT_QUOTES, 'UTF-8'); ?> " size="5" class="input-mini" /> / <select class="input-mini" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier_type]"> <option value="A" <?php if ($_smarty_tpl->tpl_vars['vr']->value['weight_modifier_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['vr']->value['weight_modifier_type'] == "P") { ?> selected="selected"<?php } ?> >%</option> </select> </td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "option_data[variants][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "select", 'obj' => $_smarty_tpl->tpl_vars['vr']->value, 'meta' => "input-small"), 0); ?> </td> <td class="nowrap"> <span id="on_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-expand"></span></span> <span id="off_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-collapse"></span> </span> <a id="sw_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("extra"); ?> </a> <input type="hidden" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variant_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </td> <td class="right cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "option_variants_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_" . (string) $_smarty_tpl->tpl_vars['num']->value, 'tag_level' => "3", 'only_delete' => "Y"), 0); ?> </td> </tr> <tr id="extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-ex-op hidden"> <td colspan="7"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:edit_product_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "variant_image", 'image_key' => $_smarty_tpl->tpl_vars['num']->value, 'hide_titles' => true, 'no_detailed' => true, 'image_object_type' => "variant_image", 'image_type' => "V", 'image_pair' => $_smarty_tpl->tpl_vars['vr']->value['image_pair'], 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> </tr> </tbody> <?php } ?> <?php echo smarty_function_math(array('equation' => "x + 1", 'assign' => "num", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['num']->value) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); $_smarty_tpl->tpl_vars["vr"] = new Smarty_variable('', null, 0); ?> <tbody class="hover cm-row-item <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> " id="box_add_variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <tr> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="" size="3" class="input-micro" /></td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variant_name]" value="" class="input-medium" /></td> <td> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier]" value="" size="5" class="input-mini" /> / <select class="input-mini" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier_type]"> <option value="A"><?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> </option> <option value="P">%</option> </select> </td> <td> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier]" value="" size="5" class="input-mini" /> / <select class='input-mini' name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier_type]"> <option value="A"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> </option> <option value="P">%</option> </select> </td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "option_data[variants][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "select", 'meta' => "input-small"), 0); ?> </td> <td> <span id="on_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-expand"></span></span> <span id="off_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-collapse"></span></span> <a id="sw_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("extra"); ?> </a> </td> <td class="right cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_variant_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'tag_level' => "2"), 0); ?> </td> </tr> <tr id="extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-ex-op hidden"> <td colspan="7"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:edit_product_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group cm-non-cb"> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "variant_image", 'image_key' => $_smarty_tpl->tpl_vars['num']->value, 'hide_titles' => true, 'no_detailed' => true, 'image_object_type' => "variant_image", 'image_type' => "V", 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> </tr> </tbody> </table> </fieldset> <!--content_tab_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> </div> <div class="buttons-container"> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value && $_smarty_tpl->tpl_vars['shared_product']->value != "Y") { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[product_options.update]", 'cancel_action' => "close", 'extra' => '', 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </form> <!--content_group_product_option_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php }
function content_55dc7db6ede751_81542503($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('general', 'language_code', 'name', 'country', 'tt_views_languages_update_country', 'clone_from', 'install')); if ($_smarty_tpl->tpl_vars['lang_data']->value) { ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['lang_data']->value['lang_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable("0", null, 0); } ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(!fn_allow_save_object('', "languages"), null, 0); ?> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="add_language_form" class="form-horizontal<?php if (!fn_allow_save_object('', "languages")) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="selected_section" value="languages" /> <input type="hidden" name="lang_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:tabs_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "languages:tabs_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "languages:tabs_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <div class="cm-tabs-content"> <div id="content_tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label for="elm_to_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("language_code"); ?> :</label> <div class="controls"> <input id="elm_to_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="language_data[lang_code]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_data']->value['lang_code'], ENT_QUOTES, 'UTF-8'); ?> " size="6" maxlength="2"> </div> </div> <div class="control-group"> <label for="elm_lang_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input id="elm_lang_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="language_data[name]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_data']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " maxlength="64"> </div> </div> <div class="control-group"> <label for="elm_lang_country_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("country"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_languages_update_country")), 0); ?> :</label> <div class="controls"> <select id="elm_lang_country_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="language_data[country_code]"> <?php $_smarty_tpl->tpl_vars["country"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["country"]->_loop = false; $_smarty_tpl->tpl_vars["code"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["country"]->key => $_smarty_tpl->tpl_vars["country"]->value) { $_smarty_tpl->tpl_vars["country"]->_loop = true; $_smarty_tpl->tpl_vars["code"]->value = $_smarty_tpl->tpl_vars["country"]->key; ?> <option <?php if ($_smarty_tpl->tpl_vars['code']->value == $_smarty_tpl->tpl_vars['lang_data']->value['country_code']) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <?php if (fn_allowed_for("ULTIMATE:FREE")) { ?> <?php $_smarty_tpl->tpl_vars['hidden'] = new Smarty_variable(false, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['hidden'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj' => $_smarty_tpl->tpl_vars['lang_data']->value, 'display' => "radio", 'input_name' => "language_data[status]", 'hidden' => $_smarty_tpl->tpl_vars['hidden']->value), 0); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <div class="control-group"> <label for="elm_from_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("clone_from"); ?> :</label> <div class="controls"> <select name="language_data[from_lang_code]" id="elm_from_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars["language"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["language"]->_loop = false; $_from = fn_get_translation_languages(''); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["language"]->key => $_smarty_tpl->tpl_vars["language"]->value) { $_smarty_tpl->tpl_vars["language"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['lang_code'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "languages:update"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "languages:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "languages:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "languages:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[languages.update]", 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> <?php } else { ?> <div class="install-addon"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="add_language_form" class="form-horizontal<?php if ($_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <div class="install-addon-wrapper"> <img class="install-addon-banner" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> /addon_box.png" width="151px" height="141px" /> <?php echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "language_data[po_file]", 'allowed_ext' => "po, zip"), 0); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[languages.install_from_po]", 'but_text' => __("install"), 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> </div> <?php } ?> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php }
function content_55e61f9ba13292_82585819($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('new_option', 'add_option', 'new_option', 'add_option', 'apply_to_products', 'global', 'edit', 'view', 'view', 'editing_option', 'no_data', 'options')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array()); $_block_repeat = true; echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo '<script'; ?> type="text/javascript"> function fn_check_option_type(value, tag_id) { var id = tag_id.replace('option_type_', '').replace('elm_', ''); Tygh.$('#tab_option_variants_' + id).toggleBy(!(value == 'S' || value == 'R' || value == 'C')); Tygh.$('#required_options_' + id).toggleBy(!(value == 'I' || value == 'T' || value == 'F')); Tygh.$('#extra_options_' + id).toggleBy(!(value == 'I' || value == 'T')); Tygh.$('#file_options_' + id).toggleBy(!(value == 'F')); if (value == 'C') { var t = Tygh.$('table', '#content_tab_option_variants_' + id); Tygh.$('.cm-non-cb', t).switchAvailability(true); // hide obsolete columns Tygh.$('tbody:gt(1)', t).switchAvailability(true); // hide obsolete rows } else if (value == 'S' || value == 'R') { var t = Tygh.$('table', '#content_tab_option_variants_' + id); Tygh.$('.cm-non-cb', t).switchAvailability(false); // show all columns Tygh.$('tbody', t).switchAvailability(false); // show all rows Tygh.$('#box_add_variant_' + id).show(); // show "add new variants" box } else if (value == 'I' || value == 'T') { Tygh.$('#extra_options_' + id).show(); // show "add new variants" box } } <?php echo '</script'; ?> ><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "global") { ?> <?php $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("pagination_contents", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("product_options_list", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("toolbar", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_options/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option_id' => "0", 'company_id' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'disable_company_picker' => true), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_options/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option_id' => "0"), 0); ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "product") { ?> <?php $_smarty_tpl->tpl_vars["position"] = new Smarty_variable("pull-right", null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['view_mode']->value == "embed") { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_option", 'text' => __("new_option"), 'link_text' => __("add_option"), 'act' => "general", 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'meta' => $_smarty_tpl->tpl_vars['position']->value, 'icon' => "icon-plus"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_option", 'text' => __("new_option"), 'title' => __("add_option"), 'act' => "general", 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'meta' => $_smarty_tpl->tpl_vars['position']->value, 'icon' => "icon-plus"), 0); ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['extra']->value; ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value != "global") { ?> <div class="btn-toolbar clearfix cm-toggle-button"> <?php echo Smarty::$_smarty_vars['capture']['toolbar']; ?> </div> <?php } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['product_options']->value && $_smarty_tpl->tpl_vars['object']->value == "global") { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("apply_to_products"), 'but_role' => "action", 'but_href' => "product_options.apply"), 0); ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo Smarty::$_smarty_vars['capture']['toolbar']; ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php } ?> <div class="items-container" id="product_options_list"> <?php if ($_smarty_tpl->tpl_vars['product_options']->value) { ?> <table width="100%" class="table table-middle table-objects"> <tbody> <?php $_smarty_tpl->tpl_vars["po"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["po"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_options']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["po"]->key => $_smarty_tpl->tpl_vars["po"]->value) { $_smarty_tpl->tpl_vars["po"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "product" && !$_smarty_tpl->tpl_vars['po']->value['product_id']) { ?> <?php ob_start(); echo $_smarty_tpl->__("global"); $_tmp7 = ob_get_clean(); $_smarty_tpl->tpl_vars["details"] = new Smarty_variable("(" . $_tmp7 . ")", null, 0); ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["details"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "product") { ?> <?php if (!$_smarty_tpl->tpl_vars['po']->value['product_id']) { ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&object=" . (string) $_smarty_tpl->tpl_vars['object']->value, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value . "&object=" . (string) $_smarty_tpl->tpl_vars['object']->value, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["query_delete_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "products"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["query_delete_product_id"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['po']->value, "product_options"), null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("edit"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["additional_class"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(false, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["additional_class"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable($_smarty_tpl->tpl_vars['po']->value['status'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable("product_options.delete?option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . (string) $_smarty_tpl->tpl_vars['query_delete_product_id']->value, null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'] || $_smarty_tpl->tpl_vars['object']->value == "global" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['po']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["is_view_link"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php ob_start(); echo $_smarty_tpl->__("editing_option"); $_tmp8 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_table' => true, 'id' => $_smarty_tpl->tpl_vars['po']->value['option_id'], 'id_prefix' => "_product_option_", 'details' => $_smarty_tpl->tpl_vars['details']->value, 'text' => $_smarty_tpl->tpl_vars['po']->value['option_name'], 'hide_for_vendor' => $_smarty_tpl->tpl_vars['hide_for_vendor']->value, 'status' => $_smarty_tpl->tpl_vars['status']->value, 'table' => "product_options", 'object_id_name' => "option_id", 'href' => "product_options.update?option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . (string) $_smarty_tpl->tpl_vars['query_product_id']->value, 'href_delete' => $_smarty_tpl->tpl_vars['href_delete']->value, 'delete_target_id' => $_smarty_tpl->tpl_vars['delete_target_id']->value, 'header_text' => $_tmp8 . ": " . (string) $_smarty_tpl->tpl_vars['po']->value['option_name'], 'skip_delete' => !$_smarty_tpl->tpl_vars['allow_save']->value, 'additional_class' => $_smarty_tpl->tpl_vars['additional_class']->value, 'prefix' => "product_options", 'link_text' => $_smarty_tpl->tpl_vars['link_text']->value, 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value, 'company_object' => $_smarty_tpl->tpl_vars['po']->value), 0); ?> <?php } ?> </tbody> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <!--product_options_list--></div> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "product") { ?> <?php echo Smarty::$_smarty_vars['capture']['mainbox']; ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_language' => $_smarty_tpl->tpl_vars['select_language']->value), 0); ?> <?php } }
function content_55ccecdc135ce6_43835279($_smarty_tpl) { fn_preload_lang_vars(array('none', 'enter_other', 'none', 'enter_other', 'enter_other', 'enter_other', 'details', 'image')); ?> <script type="text/javascript"> function show_product_variant_details(myId){ $('tr#variant_details_'+myId).toggle(); } function show_variant_details(myId){ $('td#link_variant_details_'+myId).toggle(); } </script> <?php $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['feature']->_loop = false; $_smarty_tpl->tpl_vars["feature_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) { $_smarty_tpl->tpl_vars['feature']->_loop = true; $_smarty_tpl->tpl_vars["feature_id"]->value = $_smarty_tpl->tpl_vars['feature']->key; ?> <?php $_smarty_tpl->tpl_vars['allow_enter_variant'] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['feature']->value, "product_features"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] != "G") { ?> <div class="control-group"> <label class="control-label" for="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['feature']->value['prefix']) { ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> </span><?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "E") { ?> <?php $_smarty_tpl->tpl_vars["value_selected"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['use_variant_picker']) { ?> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['selected']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['feature']->value['variant_id'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['feature']->value['variants'][$_smarty_tpl->tpl_vars['feature']->value['variant_id']]['variant']) { ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable($_smarty_tpl->tpl_vars['feature']->value['variants'][$_smarty_tpl->tpl_vars['feature']->value['variant_id']]['variant'], null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['variant_id']) { ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable(fn_get_product_feature_variant($_smarty_tpl->tpl_vars['feature']->value['variant_id']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable($_smarty_tpl->tpl_vars['selected_variant']->value['variant'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["selected_variant"] = new Smarty_variable($_smarty_tpl->__("none"), null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/ajax_select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_url' => "product_features.get_feature_variants_list?feature_id=" . (string) $_smarty_tpl->tpl_vars['feature_id']->value, 'text' => $_smarty_tpl->tpl_vars['selected_variant']->value, 'result_elm' => "feature_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value, 'id' => (string) $_smarty_tpl->tpl_vars['feature_id']->value . "_selector", 'js_action' => "Tygh." . "\$" . "('#input_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value . "').toggleBy((Tygh." . "\$" . "('#feature_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value . "').val() != 'disable_select'));"), 0); ?> <input type="text" class="hidden-input<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "N") { ?> cm-value-decimal<?php } ?> " name="product_data[add_new_variant][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][variant]" id="input_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("enter_other"); ?> " /> <?php } else { ?> <select name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " onchange="Tygh.$('#input_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').toggleBy((this.value != 'disable_select'));"> <option value="">-<?php echo $_smarty_tpl->__("none"); ?> -</option> <?php $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["var"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) { $_smarty_tpl->tpl_vars["var"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['var']->value['variant_id'] == $_smarty_tpl->tpl_vars['feature']->value['variant_id']) { $_smarty_tpl->tpl_vars["value_selected"] = new Smarty_variable(true, null, 0); ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_enter_variant']->value) { ?> <option value="disable_select">-<?php echo $_smarty_tpl->__("enter_other"); ?> -</option> <?php } ?> </select> <input type="text" class="hidden-input<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "N") { ?> cm-value-decimal<?php } ?> " name="product_data[add_new_variant][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][variant]" id="input_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("enter_other"); ?> " /> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "M" && $_smarty_tpl->tpl_vars['feature']->value['feature_variants_images'] == 0) { ?> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="" /> <?php $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["var"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) { $_smarty_tpl->tpl_vars["var"]->_loop = true; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"><input type="checkbox" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> ]" <?php if ($_smarty_tpl->tpl_vars['var']->value['selected']) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_enter_variant']->value) { ?> <input type="text" name="product_data[add_new_variant][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][variant]" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("enter_other"); ?> " /> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "M" && $_smarty_tpl->tpl_vars['feature']->value['feature_variants_images'] == 1) { ?> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="" /> <table style="width:100%"> <?php $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["var"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) { $_smarty_tpl->tpl_vars["var"]->_loop = true; ?> <tr> <td><label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox" style="display:inline-block;"><input type="checkbox" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> ]" <?php if ($_smarty_tpl->tpl_vars['var']->value['selected']) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " onchange="show_variant_details(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> )" /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8'); ?> </label></td> <td id="link_variant_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (!$_smarty_tpl->tpl_vars['var']->value['selected']) { ?> style="display:none;"<?php } ?> ><a href="#" onclick="show_product_variant_details(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> );return false;"><?php echo $_smarty_tpl->__("details"); ?> </a><br/></td> </tr> <tr id="variant_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " class="hidden"> <td colspan="2"> <div> <div class="control-group"> <label class="control-label" for="elm_image_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("image"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "p_feature_var_extra", 'image_object_id' => $_smarty_tpl->tpl_vars['var']->value['variant_id'], 'hide_titles' => true, 'image_key' => $_smarty_tpl->tpl_vars['var']->value['variant_id'], 'no_detailed' => true, 'image_object_type' => "p_feature_var_extra", 'image_type' => "M", 'image_pair' => $_smarty_tpl->tpl_vars['var']->value['product_image_pairs_extra'], 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> </div> </td> </tr> <?php } ?> </table> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "C") { ?> <label class="checkbox"> <input type="hidden" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="N" /> <input type="checkbox" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['feature']->value['value'] == "Y") { ?> checked="checked"<?php } ?> /></label> <?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "D") { ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "date_" . (string) $_smarty_tpl->tpl_vars['feature_id']->value, 'date_name' => "product_data[product_features][" . (string) $_smarty_tpl->tpl_vars['feature_id']->value . "]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['feature']->value['value_int']) === null || $tmp === '' ? '' : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php } else { ?> <input type="text" name="product_data[product_features][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "O") { if ($_smarty_tpl->tpl_vars['feature']->value['value_int'] != '') { echo htmlspecialchars(floatval($_smarty_tpl->tpl_vars['feature']->value['value_int']), ENT_QUOTES, 'UTF-8'); } } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8'); } ?> " id="feature_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "O") { ?> cm-value-decimal<?php } ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['suffix']) { ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </span><?php } ?> </div> </div> <?php } } ?> <?php $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['feature']->_loop = false; $_smarty_tpl->tpl_vars["feature_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) { $_smarty_tpl->tpl_vars['feature']->_loop = true; $_smarty_tpl->tpl_vars["feature_id"]->value = $_smarty_tpl->tpl_vars['feature']->key; ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "G" && $_smarty_tpl->tpl_vars['feature']->value['subfeatures']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['feature']->value['description']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_assign_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_features' => $_smarty_tpl->tpl_vars['feature']->value['subfeatures']), 0); ?> <?php } } }
function content_55d2ed19774126_96674473($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('general', 'configure', 'name', 'processor', 'offline', 'checkout', 'gateways', 'template', 'tt_views_payments_update_template', 'payment_category', 'payments_tab1', 'payments_tab2', 'payments_tab3', 'payment_category_note', 'usergroups', 'ttc_usergroups', 'description', 'surcharge', 'surcharge_title', 'tt_views_payments_update_surcharge_title', 'taxes', 'payment_instructions', 'icon')); if ($_smarty_tpl->tpl_vars['payment']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['payment']->value['payment_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable("0", null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['payment']->value, "payments"), null, 0); ?> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="payments_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " enctype="multipart/form-data" class=" form-horizontal<?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="payment_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <li id="tab_conf_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js cm-ajax <?php if (!$_smarty_tpl->tpl_vars['payment']->value['processor_id']) { ?> hidden<?php } ?> "><a <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id']) { ?> href="<?php echo htmlspecialchars(fn_url("payments.processor?payment_id=" . (string) $_smarty_tpl->tpl_vars['id']->value), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo $_smarty_tpl->__("configure"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="tabs_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label for="elm_payment_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-required control-label"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input id="elm_payment_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[payment]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['payment'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "payment_data[company_id]", 'id' => "payment_data_" . (string) $_REQUEST['payment_id'], 'selected' => $_smarty_tpl->tpl_vars['payment']->value['company_id']), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_payment_processor_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("processor"); ?> :</label> <div class="controls"> <select id="elm_payment_processor_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[processor_id]" onchange="fn_switch_processor(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> , this.value);"> <option value=""><?php echo $_smarty_tpl->__("offline"); ?> </option> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "payments:processors_optgroups")); $_block_repeat = true; echo smarty_block_hook(array('name' => "payments:processors_optgroups"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <optgroup label="<?php echo $_smarty_tpl->__("checkout"); ?> "> <?php $_smarty_tpl->tpl_vars["processor"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["processor"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['payment_processors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["processor"]->key => $_smarty_tpl->tpl_vars["processor"]->value) { $_smarty_tpl->tpl_vars["processor"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['processor']->value['type'] != "P") { ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id'] == $_smarty_tpl->tpl_vars['processor']->value['processor_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </optgroup> <optgroup label="<?php echo $_smarty_tpl->__("gateways"); ?> "> <?php $_smarty_tpl->tpl_vars["processor"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["processor"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['payment_processors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["processor"]->key => $_smarty_tpl->tpl_vars["processor"]->value) { $_smarty_tpl->tpl_vars["processor"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['processor']->value['type'] == "P") { ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id'] == $_smarty_tpl->tpl_vars['processor']->value['processor_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </optgroup> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "payments:processors_optgroups"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </select> <p id="elm_processor_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="description <?php if (!$_smarty_tpl->tpl_vars['payment_processors']->value[$_smarty_tpl->tpl_vars['payment']->value['processor_id']]['description']) { ?> hidden<?php } ?> "><br> <small><?php echo $_smarty_tpl->tpl_vars['payment_processors']->value[$_smarty_tpl->tpl_vars['payment']->value['processor_id']]['description']; ?> </small> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_tpl_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("template"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_payments_update_template")), 0); ?> :</label> <div class="controls"> <select id="elm_payment_tpl_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[template]" <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id']) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['full_path'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['full_path']->_loop = false; $_smarty_tpl->tpl_vars['template'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['templates']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['full_path']->key => $_smarty_tpl->tpl_vars['full_path']->value) { $_smarty_tpl->tpl_vars['full_path']->_loop = true; $_smarty_tpl->tpl_vars['template']->value = $_smarty_tpl->tpl_vars['full_path']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['full_path']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['payment']->value['template'] == $_smarty_tpl->tpl_vars['full_path']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['template']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_category_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("payment_category"); ?> :</label> <div class="controls"> <select id="elm_payment_category_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[payment_category]"> <option value="tab1" <?php if ($_smarty_tpl->tpl_vars['payment']->value['payment_category'] == "tab1") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("payments_tab1"); ?> </option> <option value="tab2" <?php if ($_smarty_tpl->tpl_vars['payment']->value['payment_category'] == "tab2") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("payments_tab2"); ?> </option> <option value="tab3" <?php if ($_smarty_tpl->tpl_vars['payment']->value['payment_category'] == "tab3") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("payments_tab3"); ?> </option> </select> <p class="description"> <small><?php echo $_smarty_tpl->__("payment_category_note"); ?> </small> </p> </div> </div> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_usergroups")), 0); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "elm_payment_usergroup_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'name' => "payment_data[usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['payment']->value['usergroup_ids'], 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_payment_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <input id="elm_payment_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[description]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['description'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "payments:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "payments:update"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "payments:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="control-group"> <label class="control-label" for="elm_payment_surcharge_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("surcharge"); ?> :</label> <div class="controls"> <input id="elm_payment_surcharge_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[p_surcharge]" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['p_surcharge'], ENT_QUOTES, 'UTF-8'); ?> " size="4"> % + <input type="text" name="payment_data[a_surcharge]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['a_surcharge'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini" size="4"> <?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_surcharge_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("surcharge_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_payments_update_surcharge_title")), 0); ?> :</label> <div class="controls"> <input id="elm_payment_surcharge_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[surcharge_title]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['surcharge_title'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> :</label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label for="elm_payment_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" name="payment_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_payment_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['payment']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> <div class="text-type-value">—</div> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_instructions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("payment_instructions"); ?> :</label> <div class="controls"> <textarea id="elm_payment_instructions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[instructions]" cols="55" rows="8" class="cm-wysiwyg input-textarea-long"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['instructions'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "payment_data[status]", 'id' => "elm_payment_status_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'obj_id' => $_smarty_tpl->tpl_vars['id']->value, 'obj' => $_smarty_tpl->tpl_vars['payment']->value), 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "payment_data[localization]", 'id' => "elm_payment_localization_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'data_from' => $_smarty_tpl->tpl_vars['payment']->value['localization']), 0); ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> :</label> <div class="controls"><?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "payment_image", 'image_key' => $_smarty_tpl->tpl_vars['id']->value, 'image_object_type' => "payment", 'image_pair' => $_smarty_tpl->tpl_vars['payment']->value['icon'], 'no_detailed' => "Y", 'hide_titles' => "Y", 'image_object_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "payments:properties")); $_block_repeat = true; echo smarty_block_hook(array('name' => "payments:properties"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "payments:properties"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> <!--content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> </div> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[payments.update]", 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php }
function content_55e352de5bd936_15590729($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } fn_preload_lang_vars(array('new_question', 'add_question', 'editing_question', 'editing_question', 'no_data')); if ($_smarty_tpl->tpl_vars['page_type']->value == @constant('PAGE_TYPE_POLL') && $_smarty_tpl->tpl_vars['page_data']->value['page_id']) { ?> <div class="cm-hide-save-button" id="content_poll_questions"> <?php echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <div class="items-container"> <?php if (!fn_allowed_for("ULTIMATE") || fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages")) { ?> <div class="pull-right"> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("addons/polls/views/pages/update_question.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('question_data' => array()), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_question", 'text' => __("new_question"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'link_text' => __("add_question"), 'act' => "general"), 0); ?> </div> <?php } ?> <div class="clearfix"><br><br> <table class="table table-middle"> <?php $_smarty_tpl->tpl_vars["q"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["q"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['questions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["q"]->key => $_smarty_tpl->tpl_vars["q"]->value) { $_smarty_tpl->tpl_vars["q"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["q"]->key; ?> <?php if (!fn_allowed_for("ULTIMATE") || fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages")) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_question"); $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['q']->value['item_id'], 'text' => $_smarty_tpl->tpl_vars['q']->value['description'], 'href' => "pages.update_question?item_id=" . (string) $_smarty_tpl->tpl_vars['q']->value['item_id'], 'object_id_name' => "item_id", 'table' => "poll_questions", 'href_delete' => "pages.delete_question?item_id=" . (string) $_smarty_tpl->tpl_vars['q']->value['item_id'], 'delete_target_id' => "content_poll_questions", 'header_text' => $_tmp2 . ": " . (string) $_smarty_tpl->tpl_vars['q']->value['description'], 'no_table' => "true", 'nostatus' => true), 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_question"); $_tmp3 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['q']->value['item_id'], 'text' => $_smarty_tpl->tpl_vars['q']->value['description'], 'href' => "pages.update_question?item_id=" . (string) $_smarty_tpl->tpl_vars['q']->value['item_id'], 'object_id_name' => "item_id", 'table' => "poll_questions", 'header_text' => $_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['q']->value['description'], 'no_table' => "true", 'nostatus' => true), 0); ?> <?php } ?> <?php } ?> </table> <?php if (!$_smarty_tpl->tpl_vars['questions']->value) { ?> <p><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </div> </div> <!--content_poll_questions--></div> <div id="content_poll_statistics" class="cm-hide-save-button cm-track"> <?php echo $_smarty_tpl->getSubTemplate("addons/polls/views/pages/components/statistics.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php } }
function content_55e358937eea47_05815342($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('general', 'name', 'code', 'primary_currency', 'currency_rate', 'currency_sign', 'after_sum', 'tt_views_currencies_update_after_sum', 'ths_sign', 'tt_views_currencies_update_ths_sign', 'dec_sign', 'tt_views_currencies_update_dec_sign', 'decimals', 'tt_views_currencies_update_decimals')); if ($_smarty_tpl->tpl_vars['currency']->value['currency_code']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['currency']->value['currency_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable("0", null, 0); ?> <?php } ?> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="update_currency_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " method="post" class=" form-horizontal<?php if (fn_check_form_permissions('')) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="currency_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_REQUEST['return_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="content_tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" name="currency_data[description]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['description'], ENT_QUOTES, 'UTF-8'); ?> " id="description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " size="18"> </div> </div> <div class="control-group"> <label class="control-label cm-required" for="currency_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("code"); ?> :</label> <div class="controls"> <input type="text" name="currency_data[currency_code]" size="8" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['currency_code'], ENT_QUOTES, 'UTF-8'); ?> " id="currency_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " onkeyup="var matches = this.value.match(/^(\w*)/gi); if (matches) this.value = matches;"> </div> </div> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <div class="control-group"> <label class="control-label" for="is_primary_currency_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("primary_currency"); ?> :</label> <div class="controls"> <input type="hidden" name="currency_data[coefficient]" value="1" /> <input type="checkbox" name="currency_data[is_primary]" value="Y" <?php if ($_smarty_tpl->tpl_vars['currency']->value['is_primary'] == "Y") { ?> checked="checked"<?php } ?> onclick="Tygh.$('.cm-coefficient').prop('disabled', Tygh.$(this).prop('checked'))" id="is_primary_currency_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label cm-required" for="coefficient_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("currency_rate"); ?> :</label> <div class="controls"> <input type="text" name="currency_data[coefficient]" size="7" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['coefficient'], ENT_QUOTES, 'UTF-8'); ?> " id="coefficient_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-coefficient" <?php if ($_smarty_tpl->tpl_vars['currency']->value['is_primary'] == "Y") { ?> disabled="disabled"<?php } ?> > </div> </div> <div class="control-group"> <label class="control-label" for="symbol_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("currency_sign"); ?> :</label> <div class="controls"> <input type="text" name="currency_data[symbol]" size="6" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['symbol'], ENT_QUOTES, 'UTF-8'); ?> " id="symbol_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "currencies:autoupdate")); $_block_repeat = true; echo smarty_block_hook(array('name' => "currencies:autoupdate"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "currencies:autoupdate"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="control-group"> <label class="control-label" for="after_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("after_sum"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_currencies_update_after_sum")), 0); ?> :</label> <div class="controls"> <input type="hidden" name="currency_data[after]" value="N" /> <input type="checkbox" name="currency_data[after]" value="Y" <?php if ($_smarty_tpl->tpl_vars['currency']->value['after'] == "Y") { ?> checked="checked"<?php } ?> id="after_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['id']->value && !fn_allowed_for("ULTIMATE:FREE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "currency_data[status]", 'id' => "add_currency", 'hidden' => true), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label" for="thousands_separator_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("ths_sign"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_currencies_update_ths_sign")), 0); ?> :</label> <div class="controls"> <input type="text" name="currency_data[thousands_separator]" size="1" maxlength="1" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['thousands_separator'], ENT_QUOTES, 'UTF-8'); ?> " id="thousands_separator_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <div class="control-group"> <label class="control-label" for="decimal_separator_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("dec_sign"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_currencies_update_dec_sign")), 0); ?> :</label> <div class="controls"> <input type="text" name="currency_data[decimals_separator]" size="1" maxlength="1" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['decimals_separator'], ENT_QUOTES, 'UTF-8'); ?> " id="decimal_separator_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <div class="control-group"> <label class="control-label" for="decimals_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("decimals"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_currencies_update_decimals")), 0); ?> :</label> <div class="controls"> <input type="text" name="currency_data[decimals]" size="1" maxlength="2" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['decimals'], ENT_QUOTES, 'UTF-8'); ?> " id="decimals_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> </fieldset> </div> <?php if (fn_allow_save_object('', '', true)) { ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[currencies.update]", 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php }
function content_55deaf378a54c4_45634213($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('news', 'date', 'status', 'edit', 'delete', 'no_data', 'add_news', 'news')); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="news_form" class="cm-hide-inputs"> <input type="hidden" name="fake" value="1" /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php if ($_smarty_tpl->tpl_vars['news']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="1%"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => "cm-no-hide-input"), 0); ?> </th> <th width="40%" class="shift-left"><?php echo $_smarty_tpl->__("news"); ?> </th> <th width="10%"><?php echo $_smarty_tpl->__("date"); ?> </th> <th width="5%"> </th> <th class="right" width="10%"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['n'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['n']->_loop = false; $_from = $_smarty_tpl->tpl_vars['news']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['n']->key => $_smarty_tpl->tpl_vars['n']->value) { $_smarty_tpl->tpl_vars['n']->_loop = true; ?> <tbody> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['n']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " valign="top" > <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['n']->value, "news"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php $_smarty_tpl->tpl_vars["display"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["display"] = new Smarty_variable("text", null, 0); ?> <?php } ?> <td class="left <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="news_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['n']->value['news_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <td class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <a class="row-status" href="<?php echo htmlspecialchars(fn_url("news.update?news_id=" . (string) $_smarty_tpl->tpl_vars['n']->value['news_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['n']->value['news'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['n']->value), 0); ?> </td> <td class="left nowrap <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <span><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['n']->value['date'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format']), ENT_QUOTES, 'UTF-8'); ?> </span> </td> <td class="center nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "news.update?news_id=" . (string) $_smarty_tpl->tpl_vars['n']->value['news_id'])); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm", 'text' => __("delete"), 'href' => "news.delete?news_id=" . (string) $_smarty_tpl->tpl_vars['n']->value['news_id'])); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools right"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right nowrap"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['n']->value['news_id'], 'status' => $_smarty_tpl->tpl_vars['n']->value['status'], 'hidden' => '', 'object_id_name' => "news_id", 'table' => "news", 'popup_additional_class' => (string) $_smarty_tpl->tpl_vars['no_hide_input']->value, 'display' => $_smarty_tpl->tpl_vars['display']->value), 0); ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "news.add", 'prefix' => "top", 'title' => __("add_news"), 'hide_tools' => true), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['news']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[news.m_delete]", 'form' => "news_form")); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("news"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content_id' => "manage_news"), 0); ?> <?php }
function content_55deab25236ec0_75734762($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('general', 'variants', 'categories', 'name', 'feature_code', 'position', 'description', 'type', 'group', 'checkbox', 'single', 'multiple', 'selectbox', 'text', 'number', 'brand_type', 'others', 'text', 'number', 'date', 'warning_variants_removal', 'group', 'none', 'feature_display_on_product', 'tt_views_product_features_update_feature_display_on_product', 'feature_display_on_catalog', 'tt_views_product_features_update_feature_display_on_catalog', 'feature_display_on_header', 'tt_views_product_features_update_feature_display_on_header', '_feature_variants_images', 'prefix', 'tt_views_product_features_update_prefix', 'suffix', 'tt_views_product_features_update_suffix', 'text_all_categories_included')); if ($_smarty_tpl->tpl_vars['feature']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['feature']->value['feature_id'], null, 0); } else { ?> <?php if ($_smarty_tpl->tpl_vars['is_group']->value == true) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(@constant('NEW_FEATURE_GROUP_ID'), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['feature']->value, "product_features"), null, 0); } ?> <?php $_smarty_tpl->tpl_vars['hide_inputs_class'] = new Smarty_variable('', null, 0); if (fn_check_form_permissions('') || !$_smarty_tpl->tpl_vars['allow_save']->value) { $_smarty_tpl->tpl_vars['hide_inputs_class'] = new Smarty_variable("cm-hide-inputs", null, 0); } ?> <script type="text/javascript"> function show_additional_images_actions(checkboxValue){ if(checkboxValue) $('.feature_variant_details').show(); else $('.feature_variant_details').hide(); } function show_additional_images_block(myId){ $('tr#extra_'+myId).toggle(); } </script> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="update_features_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="form-horizontal form-edit cm-disable-empty-files <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hide_inputs_class']->value, ENT_QUOTES, 'UTF-8'); ?> " enctype="multipart/form-data"> <input type="hidden" class="cm-no-hide-input" name="redirect_url" value="<?php echo htmlspecialchars($_REQUEST['return_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="feature_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <li id="tab_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js cm-ajax <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] && strpos("SMNE", $_smarty_tpl->tpl_vars['feature']->value['feature_type']) === false || !$_smarty_tpl->tpl_vars['feature']->value) { ?> hidden<?php } ?> "><a href="<?php echo htmlspecialchars(fn_url("product_features.get_variants?feature_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&feature_type=" . (string) $_smarty_tpl->tpl_vars['feature']->value['feature_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("variants"); ?> </a></li> <li id="tab_categories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js <?php if ($_smarty_tpl->tpl_vars['feature']->value['parent_id']) { ?> hidden<?php } ?> "><a><?php echo $_smarty_tpl->__("categories"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="tabs_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="elm_feature_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input class="span9" type="text" name="feature_data[description]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> " id="elm_feature_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "feature_data[company_id]", 'id' => "elm_feature_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'selected' => $_smarty_tpl->tpl_vars['feature']->value['company_id']), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_feature_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("feature_code"); ?> </label> <div class="controls"> <input type="text" size="3" name="feature_data[feature_code]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_code'], ENT_QUOTES, 'UTF-8'); ?> " class="input-medium" id="elm_feature_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("position"); ?> </label> <div class="controls"> <input type="text" size="3" name="feature_data[position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-medium" id="elm_feature_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> </label> <div class="controls"> <textarea name="feature_data[full_description]" cols="55" rows="4" class="span9 cm-wysiwyg" id="elm_feature_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['full_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <?php if ($_smarty_tpl->tpl_vars['is_group']->value || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "G") { ?> <input type="hidden" name="feature_data[feature_type]" value="G" /> <?php } else { ?> <div class="control-group"> <label class="control-label cm-required" for="elm_feature_type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("type"); ?> </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "G") { echo $_smarty_tpl->__("group"); } else { ?> <select name="feature_data[feature_type]" id="elm_feature_type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-feature-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-feature-type <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> cm-new-feature<?php } ?> "> <optgroup label="<?php echo $_smarty_tpl->__("checkbox"); ?> "> <option value="C" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "C") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("single"); ?> </option> <option value="M" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "M") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("multiple"); ?> </option> </optgroup> <optgroup label="<?php echo $_smarty_tpl->__("selectbox"); ?> "> <option value="S" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("text"); ?> </option> <option value="N" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("number"); ?> </option> <option value="E" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "E") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("brand_type"); ?> </option> </optgroup> <optgroup label="<?php echo $_smarty_tpl->__("others"); ?> "> <option value="T" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "T") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("text"); ?> </option> <option value="O" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "O") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("number"); ?> </option> <option value="D" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "D") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("date"); ?> </option> </optgroup> </select> <div class="error-message feature_type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " style="display: none" id="warning_feature_change_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="arrow"></div><div class="message"><p><?php echo $_smarty_tpl->__("warning_variants_removal"); ?> </p></div></div> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_group_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("group"); ?> </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "G") { ?> -<?php } else { ?> <select name="feature_data[parent_id]" id="elm_feature_group_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-feature-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-feature-group"> <option value="0">-<?php echo $_smarty_tpl->__("none"); ?> -</option> <?php $_smarty_tpl->tpl_vars["group_feature"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["group_feature"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['group_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["group_feature"]->key => $_smarty_tpl->tpl_vars["group_feature"]->value) { $_smarty_tpl->tpl_vars["group_feature"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['group_feature']->value['feature_type'] == "G") { ?> <option data-ca-display-on-product="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['display_on_product'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-display-on-catalog="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['display_on_catalog'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-display-on-header="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['display_on_header'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['group_feature']->value['feature_id'] == $_smarty_tpl->tpl_vars['feature']->value['parent_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </select> <?php } ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_feature_display_on_product_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("feature_display_on_product"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_features_update_feature_display_on_product")), 0); ?> </label> <div class="controls"> <input type="hidden" name="feature_data[display_on_product]" value="N" /> <input type="checkbox" name="feature_data[display_on_product]" value="Y" data-ca-display-id="OnProduct" <?php if ($_smarty_tpl->tpl_vars['feature']->value['display_on_product'] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['parent_id'] && $_smarty_tpl->tpl_vars['group_features']->value[$_smarty_tpl->tpl_vars['feature']->value['parent_id']]['display_on_product'] == "Y") { ?> disabled="disabled"<?php } ?> /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_display_on_catalog_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("feature_display_on_catalog"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_features_update_feature_display_on_catalog")), 0); ?> </label> <div class="controls"> <input type="hidden" name="feature_data[display_on_catalog]" value="N" /> <input type="checkbox" name="feature_data[display_on_catalog]" value="Y" data-ca-display-id="OnCatalog" <?php if ($_smarty_tpl->tpl_vars['feature']->value['display_on_catalog'] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['parent_id'] && $_smarty_tpl->tpl_vars['group_features']->value[$_smarty_tpl->tpl_vars['feature']->value['parent_id']]['display_on_catalog'] == "Y") { ?> disabled="disabled"<?php } ?> /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_display_on_header_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("feature_display_on_header"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_features_update_feature_display_on_header")), 0); ?> </label> <div class="controls"> <input type="hidden" name="feature_data[display_on_header]" value="N" /> <input type="checkbox" name="feature_data[display_on_header]" value="Y" data-ca-display-id="OnHeader" <?php if ($_smarty_tpl->tpl_vars['feature']->value['display_on_header'] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['parent_id'] && $_smarty_tpl->tpl_vars['group_features']->value[$_smarty_tpl->tpl_vars['feature']->value['parent_id']]['display_on_header'] == "Y") { ?> disabled="disabled"<?php } ?> /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_variants_images_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("_feature_variants_images"); ?> </label> <div class="controls"> <input type="hidden" name="feature_data[feature_variants_images]" value="0" /> <input type="checkbox" name="feature_data[feature_variants_images]" value="1" data-ca-display-id="OnVariantImg" <?php if ($_smarty_tpl->tpl_vars['feature']->value['feature_variants_images'] == "1") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['feature']->value['parent_id'] && $_smarty_tpl->tpl_vars['group_features']->value[$_smarty_tpl->tpl_vars['feature']->value['parent_id']]['feature_variants_images'] == "1") { ?> disabled="disabled"<?php } ?> onchange="show_additional_images_actions($(this).prop('checked'))" /> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['feature']->value && !$_smarty_tpl->tpl_vars['is_group']->value || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] && $_smarty_tpl->tpl_vars['feature']->value['feature_type'] != "G") { ?> <div class="control-group"> <label class="control-label" for="elm_feature_prefix_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("prefix"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_features_update_prefix")), 0); ?> </label> <div class="controls"> <input type="text" name="feature_data[prefix]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> " id="elm_feature_prefix_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_feature_suffix_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("suffix"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_features_update_suffix")), 0); ?> </label> <div class="controls"> <input type="text" name="feature_data[suffix]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> " id="elm_feature_suffix_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /></div> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_features:properties")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_features:properties"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_features:properties"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> <!--content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php if ($_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['id']->value != "0G") { ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_features/components/variants_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['feature']->value['parent_id']) { ?> <div class="hidden" id="content_tab_categories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['feature']->value['categories_path']) { ?> <?php $_smarty_tpl->tpl_vars["items"] = new Smarty_variable(explode(",", $_smarty_tpl->tpl_vars['feature']->value['categories_path']), null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('company_ids' => $_smarty_tpl->tpl_vars['picker_selected_companies']->value, 'multiple' => true, 'input_name' => "feature_data[categories_path]", 'item_ids' => $_smarty_tpl->tpl_vars['items']->value, 'data_id' => "category_ids_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'no_item_text' => __("text_all_categories_included"), 'use_keys' => "N", 'owner_company_id' => $_smarty_tpl->tpl_vars['feature']->value['company_id'], 'but_meta' => "pull-right"), 0); ?> <!--content_tab_categories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> </div> <div class="buttons-container"> <?php if (fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[product_features.update]", 'cancel_action' => "close", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'save' => $_smarty_tpl->tpl_vars['feature']->value['feature_id']), 0); ?> </div> </form> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php }
function content_55e3e07812bbf1_53486277($_smarty_tpl) { if (!is_callable('smarty_block_notes')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.notes.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('name', 'position_short', 'type', 'graphic_banner', 'text_banner', 'image', 'description', 'open_in_new_window', 'url', 'creation_date', 'banner_details_notes', 'banners.new_banner', 'banners.editing_banner')); if ($_smarty_tpl->tpl_vars['banner']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['banner']->value['banner_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['banner']->value, "banners"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["b_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['banner']->value['type']) === null || $tmp === '' ? "G" : $tmp, null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> " name="banners_form" enctype="multipart/form-data"> <input type="hidden" class="cm-no-hide-input" name="fake" value="1" /> <input type="hidden" class="cm-no-hide-input" name="banner_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_general"> <div class="control-group"> <label for="elm_banner_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" name="banner_data[banner]" id="elm_banner_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['banner'], ENT_QUOTES, 'UTF-8'); ?> " size="25" class="input-large" /></div> </div> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "banner_data[company_id]", 'id' => "banner_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['banner']->value['company_id']), 0); ?> <?php } ?> <div class="control-group"> <label for="elm_banner_position" class="control-label"><?php echo $_smarty_tpl->__("position_short"); ?> </label> <div class="controls"> <input type="text" name="banner_data[position]" id="elm_banner_position" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['banner']->value['position']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " size="3"/> </div> </div> <div class="control-group"> <label for="elm_banner_type" class="control-label cm-required"><?php echo $_smarty_tpl->__("type"); ?> </label> <div class="controls"> <select name="banner_data[type]" id="elm_banner_type" onchange="Tygh.$('#banner_graphic').toggle(); Tygh.$('#banner_text').toggle(); Tygh.$('#banner_url').toggle(); Tygh.$('#banner_target').toggle();"> <option <?php if ($_smarty_tpl->tpl_vars['banner']->value['type'] == "G") { ?> selected="selected"<?php } ?> value="G"><?php echo $_smarty_tpl->__("graphic_banner"); ?> <option <?php if ($_smarty_tpl->tpl_vars['banner']->value['type'] == "T") { ?> selected="selected"<?php } ?> value="T"><?php echo $_smarty_tpl->__("text_banner"); ?> </select> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['b_type']->value != "G") { ?> hidden<?php } ?> " id="banner_graphic"> <label class="control-label"><?php echo $_smarty_tpl->__("image"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "banners_main", 'image_object_type' => "promo", 'image_pair' => $_smarty_tpl->tpl_vars['banner']->value['main_pair'], 'image_object_id' => $_smarty_tpl->tpl_vars['id']->value, 'no_detailed' => true, 'hide_titles' => true), 0); ?> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['b_type']->value == "G") { ?> hidden<?php } ?> " id="banner_text"> <label class="control-label" for="elm_banner_description"><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <textarea id="elm_banner_description" name="banner_data[description]" cols="35" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['b_type']->value == "T") { ?> hidden<?php } ?> " id="banner_target"> <label class="control-label" for="elm_banner_target"><?php echo $_smarty_tpl->__("open_in_new_window"); ?> </label> <div class="controls"> <input type="hidden" name="banner_data[target]" value="T" /> <input type="checkbox" name="banner_data[target]" id="elm_banner_target" value="B" <?php if ($_smarty_tpl->tpl_vars['banner']->value['target'] == "B") { ?> checked="checked"<?php } ?> /> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['b_type']->value == "T") { ?> hidden<?php } ?> " id="banner_url"> <label class="control-label" for="elm_banner_url"><?php echo $_smarty_tpl->__("url"); ?> :</label> <div class="controls"> <input type="text" name="banner_data[url]" id="elm_banner_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['url'], ENT_QUOTES, 'UTF-8'); ?> " size="25" class="input-large" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_banner_timestamp_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("creation_date"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_banner_timestamp_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'date_name' => "banner_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['banner']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "banner_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['banner']->value['localization']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "banner_data[status]", 'id' => "elm_banner_status", 'obj_id' => $_smarty_tpl->tpl_vars['id']->value, 'obj' => $_smarty_tpl->tpl_vars['banner']->value, 'hidden' => true), 0); ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "submit-link", 'but_target_form' => "banners_form", 'but_name' => "dispatch[banners.update]"), 0); ?> <?php } else { ?> <?php if (fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_second_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[banners.update]", 'but_role' => "submit-link", 'but_target_form' => "banners_form", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'hide_second_button' => $_smarty_tpl->tpl_vars['hide_second_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('notes', array()); $_block_repeat = true; echo smarty_block_notes(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "banners:update_notes")); $_block_repeat = true; echo smarty_block_hook(array('name' => "banners:update_notes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->__("banner_details_notes", array("[layouts_href]" => fn_url('block_manager.manage'))); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "banners:update_notes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_notes(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->__("banners.new_banner"), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__("banners.editing_banner"); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['banner']->value['banner'], null, 0); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['title']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'select_languages' => true), 0); ?> <?php }
function content_55d2ed0455f969_19652325($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('show_rate_for_destination', 'cost_dependences', 'products_cost', 'rate_value', 'type', 'more_than', 'absolute', 'percent', 'delete', 'delete', 'no_items', 'more_than', 'absolute', 'percent', 'weight_dependences', 'products_weight', 'rate_value', 'type', 'per', 'more_than', 'absolute', 'percent', 'delete', 'delete', 'no_items', 'more_than', 'absolute', 'percent', 'items_dependences', 'products_amount', 'rate_value', 'type', 'per_item', 'more_than', 'items', 'items', 'absolute', 'percent', 'delete', 'delete', 'no_items', 'more_than', 'items', 'absolute', 'percent')); ?> <input type="hidden" name="shipping_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="selected_section" value="shipping_charges" /> <script type="text/javascript"> (function(_, $) { $(function() { var tab = $('#dashboard-shipping'); $('a[data-toggle="tab"]', tab).on('shown', function(e) { localStorage.setItem('tab-active', $(e.target).attr('href')); }); var lastTab = localStorage.getItem('tab-active'); if (lastTab) { $('a[href='+ lastTab +']', tab).click(); } }); }(Tygh, Tygh.$)); </script> <div class="dashboard-shipping tabs cm-j-tabs" data-ca-width="760" id="dashboard-shipping"> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M") { ?> <p><?php echo $_smarty_tpl->__("show_rate_for_destination"); ?> :</p> <ul class="nav nav-pills" id="dashboard-shipping-tab-menu"> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["rate"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['shipping']->value['rates']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["rate"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["rate"]->key => $_smarty_tpl->tpl_vars["rate"]->value) { $_smarty_tpl->tpl_vars["rate"]->_loop = true; $_smarty_tpl->tpl_vars["rate"]->index++; $_smarty_tpl->tpl_vars["rate"]->first = $_smarty_tpl->tpl_vars["rate"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rates"]['first'] = $_smarty_tpl->tpl_vars["rate"]->first; ?> <li class="cm-js <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rates']['first']) { ?> active<?php } ?> "> <a href="#destination_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rate']->value['destination_id'], ENT_QUOTES, 'UTF-8'); ?> " data-toggle="tab"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rate']->value['destination'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['rate']->value['rate_defined']) { ?> (+)<?php } ?> </a> </li> <?php } ?> </ul> <?php } ?> <div class="tab-content"> <?php $_smarty_tpl->tpl_vars["rate_data"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["rate_data"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['shipping']->value['rates']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["rate_data"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["rate_data"]->key => $_smarty_tpl->tpl_vars["rate_data"]->value) { $_smarty_tpl->tpl_vars["rate_data"]->_loop = true; $_smarty_tpl->tpl_vars["rate_data"]->index++; $_smarty_tpl->tpl_vars["rate_data"]->first = $_smarty_tpl->tpl_vars["rate_data"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rates"]['first'] = $_smarty_tpl->tpl_vars["rate_data"]->first; ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M") { ?> <?php $_smarty_tpl->tpl_vars["destination_id"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate_data']->value['destination_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["destination_id"] = new Smarty_variable("0", null, 0); ?> <?php } ?> <div class="tab-pane<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rates']['first']) { ?> active<?php } ?> " id="destination_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("cost_dependences"), 'meta' => "clear"), 0); ?> <table class="table table-middle"> <thead> <tr class="cm-first-sibling"> <th width="1%"><?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_target' => "cost-" . (string) $_smarty_tpl->tpl_vars['destination_id']->value), 0); ?> </th> <th width="30%"><?php echo $_smarty_tpl->__("products_cost"); ?> </th> <th width="15%"><?php echo $_smarty_tpl->__("rate_value"); ?> </th> <th width="15%"><?php echo $_smarty_tpl->__("type"); ?> </th> <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:cost_dependences_head")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:cost_dependences_head"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:cost_dependences_head"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </th> <th> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["rate"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['rate_data']->value['rate_value']['C']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["rate"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["rate"]->key => $_smarty_tpl->tpl_vars["rate"]->value) { $_smarty_tpl->tpl_vars["rate"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["rate"]->key; $_smarty_tpl->tpl_vars["rate"]->index++; $_smarty_tpl->tpl_vars["rate"]->first = $_smarty_tpl->tpl_vars["rate"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rdf"]['first'] = $_smarty_tpl->tpl_vars["rate"]->first; ?> <tr> <td> <input type="checkbox" name="delete_rate_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][C][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> disabled="disabled"<?php } ?> class="checkbox cm-item-cost-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> cm-item" /></td> <td class="nowrap"> <?php echo $_smarty_tpl->__("more_than"); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][0][amount]" value="0" /> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => "0"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => (string) $_smarty_tpl->tpl_vars['k']->value, 'view' => "input", 'input_name' => "shipping_data[rates][" . (string) $_smarty_tpl->tpl_vars['destination_id']->value . "][rate_value][C][" . (string) $_smarty_tpl->tpl_vars['k']->value . "][amount]", 'class' => "input-small input-hidden"), 0); ?> <?php } ?> </td> <td> <input type="text" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][value]" size="5" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['rate']->value['value']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small input-hidden" /></td> <td> <select class="input-medium" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][type]"> <option value="F" <?php if ($_smarty_tpl->tpl_vars['rate']->value['type'] == "F") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("absolute"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )</option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['rate']->value['type'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("percent"); ?> (%)</option> </select></td> <td><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:cost_dependences_body")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:cost_dependences_body"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:cost_dependences_body"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="nowrap right"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first'] && fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings")) { ?> <a class="cm-confirm cm-tooltip" href="<?php echo htmlspecialchars(fn_url("shippings.delete_rate_value?rate_type=C&amount=" . (string) $_smarty_tpl->tpl_vars['k']->value . "&shipping_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&destination_id=" . (string) $_smarty_tpl->tpl_vars['destination_id']->value . "&rate_id=" . (string) $_smarty_tpl->tpl_vars['rate_data']->value['rate_id']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("delete"); ?> "><i class="icon-trash"></i></a> <?php } else { ?> <span class="icon-trash undeleted-element" <?php echo $_smarty_tpl->__("delete"); ?> ></span> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_class' => "cm-delete-row"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => 'Y', 'but_class' => "cm-delete-row"), 0); ?> <?php } ?> </div> </td> </tr> <?php } if (!$_smarty_tpl->tpl_vars["rate"]->_loop) { ?> <tr class="no-items"> <td colspan="6"> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][0][amount]" value="0" /> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][0][value]" value="0" /> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][0][type]" value="F" /> <p><?php echo $_smarty_tpl->__("no_items"); ?> </p></td> </tr> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <tr id="box_add_rate_celm_cost_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td> <input type="checkbox" disabled="disabled" value="Y" class="checkbox cm-item-cost cm-item" /></td> <td> <?php echo $_smarty_tpl->__("more_than"); ?> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => '', 'view' => "input", 'input_name' => "shipping_data[add_rates][" . (string) $_smarty_tpl->tpl_vars['destination_id']->value . "][rate_value][C][0][amount]", 'class' => "input-small input-hidden"), 0); ?> </td> <td> <input type="text" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][0][value]" size="5" value="" class="input-small input-hidden" /></td> <td> <select class="input-medium" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][C][0][type]"> <option value="F"><?php echo $_smarty_tpl->__("absolute"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )</option> <option value="P"><?php echo $_smarty_tpl->__("percent"); ?> (%)</option> </select></td> <td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:cost_dependences_new")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:cost_dependences_new"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:cost_dependences_new"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="right"> <div class="hidden-tools"><?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_rate_celm_cost_" . (string) $_smarty_tpl->tpl_vars['destination_id']->value, 'tag_level' => 3), 0); ?> </div></td> </tr> <?php } ?> </table> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("weight_dependences"), 'meta' => "clear"), 0); ?> <table class="table table-middle"> <thead> <tr class="cm-first-sibling"> <th width="1%"><?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_target' => "weight-" . (string) $_smarty_tpl->tpl_vars['destination_id']->value), 0); ?> </th> <th width="30%"><?php echo $_smarty_tpl->__("products_weight"); ?> </th> <th width="15%"><?php echo $_smarty_tpl->__("rate_value"); ?> </th> <th width="15%"><?php echo $_smarty_tpl->__("type"); ?> </th> <th width="10%"><?php echo $_smarty_tpl->__("per", array("[object]" => $_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'])); ?> </th> <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:weight_dependences_head")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:weight_dependences_head"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:weight_dependences_head"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </th> <th> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["rate"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['rate_data']->value['rate_value']['W']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["rate"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["rate"]->key => $_smarty_tpl->tpl_vars["rate"]->value) { $_smarty_tpl->tpl_vars["rate"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["rate"]->key; $_smarty_tpl->tpl_vars["rate"]->index++; $_smarty_tpl->tpl_vars["rate"]->first = $_smarty_tpl->tpl_vars["rate"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rdf"]['first'] = $_smarty_tpl->tpl_vars["rate"]->first; ?> <tr> <td> <input type="checkbox" name="delete_rate_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][W][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> disabled="disabled"<?php } ?> class="checkbox cm-item-weight-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> cm-item" /></td> <td class="nowrap"> <?php echo $_smarty_tpl->__("more_than"); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][amount]" value="0" /> 0 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <input type="text" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" data-p-sign="s" data-a-sign=" <?php echo $_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol']; ?> " size="5" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-numeric input-small input-hidden" /> <?php } ?> </td> <td> <input type="text" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][value]" size="5" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['rate']->value['value']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small input-hidden" /></td> <td> <select class="input-medium" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][type]"> <option value="F" <?php if ($_smarty_tpl->tpl_vars['rate']->value['type'] == "F") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("absolute"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )</option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['rate']->value['type'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("percent"); ?> (%)</option> </select></td> <td> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][per_unit]" value="N" /> <input type="checkbox" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][per_unit]" value="Y" <?php if ($_smarty_tpl->tpl_vars['rate']->value['per_unit'] == "Y") { ?> checked="checked"<?php } ?> class="checkbox" /> </td> <td><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:weight_dependences_body")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:weight_dependences_body"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:weight_dependences_body"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="nowrap right"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first'] && fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings")) { ?> <a class="cm-confirm cm-tooltip" href="<?php echo htmlspecialchars(fn_url("shippings.delete_rate_value?rate_type=W&amount=" . (string) $_smarty_tpl->tpl_vars['k']->value . "&shipping_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&destination_id=" . (string) $_smarty_tpl->tpl_vars['destination_id']->value . "&rate_id=" . (string) $_smarty_tpl->tpl_vars['rate_data']->value['rate_id']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("delete"); ?> "><i class="icon-trash"></i></a> <?php } else { ?> <span class="icon-trash undeleted-element" <?php echo $_smarty_tpl->__("delete"); ?> ></span> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_class' => "cm-delete-row"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => 'Y', 'but_class' => "cm-delete-row"), 0); ?> <?php } ?> </div> </td> </tr> <?php } if (!$_smarty_tpl->tpl_vars["rate"]->_loop) { ?> <tr class="no-items"> <td colspan="6"> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][amount]" value="0" /> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][value]" value="0" /> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][type]" value="F" /> <p><?php echo $_smarty_tpl->__("no_items"); ?> </p></td> </tr> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <tr id="box_add_rate_celm_weight_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td> <input type="checkbox" disabled="disabled" value="Y" class="checkbox cm-item-weight cm-item" /></td> <td> <?php echo $_smarty_tpl->__("more_than"); ?> <input type="text" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][amount]" data-p-sign="s" data-a-sign=" <?php echo $_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol']; ?> " size="5" value="" class="cm-numeric input-small input-hidden" /></td> <td> <input type="text" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][value]" size="5" value="" class="input-small input-hidden" /></td> <td> <select class="input-medium" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][type]"> <option value="F"><?php echo $_smarty_tpl->__("absolute"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )</option> <option value="P"><?php echo $_smarty_tpl->__("percent"); ?> (%)</option> </select></td> <td> <input type="hidden" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][per_unit]" value="N" /> <input type="checkbox" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][W][0][per_unit]" value="Y" class="checkbox" /> </td> <td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:weight_dependences_new")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:weight_dependences_new"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:weight_dependences_new"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="right"> <div class="hidden-tools"><?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_rate_celm_weight_" . (string) $_smarty_tpl->tpl_vars['destination_id']->value, 'tag_level' => 3), 0); ?> </div></td> </tr> <?php } ?> </table> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("items_dependences"), 'meta' => "clear"), 0); ?> <table class="table table-middle"> <thead> <tr class="cm-first-sibling"> <th width="1%"><?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_target' => "items-" . (string) $_smarty_tpl->tpl_vars['destination_id']->value), 0); ?> </th> <th width="30%"><?php echo $_smarty_tpl->__("products_amount"); ?> </th> <th width="15%"><?php echo $_smarty_tpl->__("rate_value"); ?> </th> <th width="15%"><?php echo $_smarty_tpl->__("type"); ?> </th> <th width="10%"><?php echo $_smarty_tpl->__("per_item"); ?> </th> <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:items_dependences_head")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:items_dependences_head"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:items_dependences_head"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </th> <th> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["rate"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['rate_data']->value['rate_value']['I']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["rate"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["rate"]->key => $_smarty_tpl->tpl_vars["rate"]->value) { $_smarty_tpl->tpl_vars["rate"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["rate"]->key; $_smarty_tpl->tpl_vars["rate"]->index++; $_smarty_tpl->tpl_vars["rate"]->first = $_smarty_tpl->tpl_vars["rate"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rdf"]['first'] = $_smarty_tpl->tpl_vars["rate"]->first; ?> <tr> <td> <input type="checkbox" name="delete_rate_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][I][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> disabled="disabled"<?php } ?> class="checkbox cm-item-items-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> cm-item" /></td> <td class="nowrap"> <?php echo $_smarty_tpl->__("more_than"); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][amount]" value="0" /> 0 <?php echo $_smarty_tpl->__("items"); ?> <?php } else { ?> <input type="text" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" data-v-min="0" data-v-max="999999" data-p-sign="s" data-a-sign=" <?php echo $_smarty_tpl->__("items"); ?> " size="5" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-numeric input-small input-hidden" /> <?php } ?> </td> <td> <input type="text" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][value]" size="5" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['rate']->value['value']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small input-hidden" /></td> <td> <select class="input-medium" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][type]"> <option value="F" <?php if ($_smarty_tpl->tpl_vars['rate']->value['type'] == "F") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("absolute"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )</option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['rate']->value['type'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("percent"); ?> (%)</option> </select></td> <td> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][per_unit]" value="N" /> <input type="checkbox" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> 0<?php } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); } ?> ][per_unit]" value="Y" class="checkbox" <?php if ($_smarty_tpl->tpl_vars['rate']->value['per_unit'] == "Y") { ?> checked="checked"<?php } ?> /> </td> <td><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:items_dependences_body")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:items_dependences_body"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:items_dependences_body"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="nowrap right"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first'] && fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings")) { ?> <a class="cm-confirm cm-tooltip" href="<?php echo htmlspecialchars(fn_url("shippings.delete_rate_value?rate_type=I&amount=" . (string) $_smarty_tpl->tpl_vars['k']->value . "&shipping_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&destination_id=" . (string) $_smarty_tpl->tpl_vars['destination_id']->value . "&rate_id=" . (string) $_smarty_tpl->tpl_vars['rate_data']->value['rate_id']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("delete"); ?> "><i class="icon-trash"></i></a> <?php } else { ?> <span class="icon-trash undeleted-element" <?php echo $_smarty_tpl->__("delete"); ?> ></span> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rdf']['first']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_class' => "cm-delete-row"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => 'Y', 'but_class' => "cm-delete-row"), 0); ?> <?php } ?> </div> </td> </tr> <?php } if (!$_smarty_tpl->tpl_vars["rate"]->_loop) { ?> <tr class="no-items"> <td colspan="6"> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][amount]" value="0" /> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][value]" value="0" /> <input type="hidden" name="shipping_data[rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][type]" value="F" /> <p><?php echo $_smarty_tpl->__("no_items"); ?> </p></td> </tr> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <tr id="box_add_rate_celm_items_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td> <input type="checkbox" disabled="disabled" value="Y" class="checkbox cm-item-items cm-item" /></td> <td> <?php echo $_smarty_tpl->__("more_than"); ?> <input type="text" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][amount]" data-v-min="0" data-v-max="999999" data-p-sign="s" data-a-sign=" <?php echo $_smarty_tpl->__("items"); ?> " size="5" value="" class="cm-numeric input-small input-hidden" /></td> <td> <input type="text" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][value]" size="5" value="" class="input-small input-hidden" /></td> <td> <select class="input-medium" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][type]"> <option value="F"><?php echo $_smarty_tpl->__("absolute"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )</option> <option value="P"><?php echo $_smarty_tpl->__("percent"); ?> (%)</option> </select></td> <td> <input type="hidden" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][per_unit]" value="N" /> <input type="checkbox" name="shipping_data[add_rates][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['destination_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][rate_value][I][0][per_unit]" value="Y" class="checkbox" /> </td> <td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:items_dependences_new")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:items_dependences_new"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:items_dependences_new"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="right"> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_rate_celm_items_" . (string) $_smarty_tpl->tpl_vars['destination_id']->value, 'tag_level' => 3), 0); ?> </div> </td> </tr> <?php } ?> </table> </div> <?php } ?> </div> </div> <?php }
function content_55deaa21789720_54671987($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('general', 'ranges', 'categories', 'name', 'position_short', 'show_on_home_page', 'filter_by', 'features', 'product_fields', 'round_to', 'display_type', 'expanded', 'minimized', 'display_variants_count', 'tt_views_product_filters_update_display_variants_count', 'display_more_variants_count', 'tt_views_product_filters_update_display_more_variants_count', 'position_short', 'name', 'range_from', 'range_to', 'text_all_categories_included')); if ($_smarty_tpl->tpl_vars['filter']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['filter']->value, "product_filters"), null, 0); } ?> <?php $_smarty_tpl->tpl_vars["filter_fields"] = new Smarty_variable(fn_get_product_filter_fields(''), null, 0); ?> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="update_filter_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " method="post" class="form-horizontal form-edit <?php if (fn_check_form_permissions('') || !$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" class="cm-no-hide-input" name="filter_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="redirect_url" value="<?php echo htmlspecialchars($_REQUEST['return_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] && strpos("ODN", $_smarty_tpl->tpl_vars['filter']->value['feature_type']) !== false || $_smarty_tpl->tpl_vars['filter']->value['field_type'] && $_smarty_tpl->tpl_vars['filter_fields']->value[$_smarty_tpl->tpl_vars['filter']->value['field_type']]['is_range'] == true || !$_smarty_tpl->tpl_vars['id']->value) { ?> <li id="tab_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> hidden<?php } ?> "><a><?php echo $_smarty_tpl->__("ranges"); ?> </a></li> <?php } ?> <li id="tab_categories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js"><a><?php echo $_smarty_tpl->__("categories"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="tabs_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label for="elm_filter_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" id="elm_filter_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="filter_data[filter]" class="span9" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "filter_data[company_id]", 'id' => "elm_filter_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'selected' => $_smarty_tpl->tpl_vars['filter']->value['company_id']), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_filter_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("position_short"); ?> </label> <div class="controls"> <input type="text" id="elm_filter_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="filter_data[position]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['position'], ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['id']->value) { ?> 0<?php } ?> "/> </div> </div> <div class="control-group"> <label class="control-label" for="elm_filter_show_on_home_page_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("show_on_home_page"); ?> </label> <div class="controls"> <input type="hidden" name="filter_data[show_on_home_page]" value="N" /> <input type="checkbox" id="elm_filter_show_on_home_page_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="filter_data[show_on_home_page]" <?php if ($_smarty_tpl->tpl_vars['filter']->value['show_on_home_page'] == "Y" || !$_smarty_tpl->tpl_vars['filter']->value) { ?> checked="checked"<?php } ?> value="Y"/> </div> </div> <div class="control-group"> <label class="control-label" for="elm_filter_filter_by_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("filter_by"); ?> </label> <div class="controls"> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <select name="filter_data[filter_type]" onchange="fn_check_product_filter_type(this.value, 'tab_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> );" id="elm_filter_filter_by_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['filter_features']->value) { ?> <optgroup label="<?php echo $_smarty_tpl->__("features"); ?> "> <?php $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['feature']->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) { $_smarty_tpl->tpl_vars['feature']->_loop = true; ?> <option value="<?php if (strpos("ON", $_smarty_tpl->tpl_vars['feature']->value['feature_type']) !== false) { ?> R<?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "D") { ?> D<?php } else { ?> F<?php } ?> F-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php if ($_smarty_tpl->tpl_vars['feature']->value['subfeatures']) { ?> <?php $_smarty_tpl->tpl_vars['subfeature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['subfeature']->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature']->value['subfeatures']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['subfeature']->key => $_smarty_tpl->tpl_vars['subfeature']->value) { $_smarty_tpl->tpl_vars['subfeature']->_loop = true; ?> <option value="<?php if (strpos("ON", $_smarty_tpl->tpl_vars['feature']->value['feature_type']) !== false) { ?> R<?php } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "D") { ?> D<?php } else { ?> F<?php } ?> F-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subfeature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subfeature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> <?php } ?> </optgroup> <?php } ?> <optgroup label="<?php echo $_smarty_tpl->__("product_fields"); ?> "> <?php $_smarty_tpl->tpl_vars["field"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["field"]->_loop = false; $_smarty_tpl->tpl_vars["field_type"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["field"]->key => $_smarty_tpl->tpl_vars["field"]->value) { $_smarty_tpl->tpl_vars["field"]->_loop = true; $_smarty_tpl->tpl_vars["field_type"]->value = $_smarty_tpl->tpl_vars["field"]->key; ?> <?php if (!$_smarty_tpl->tpl_vars['field']->value['hidden']) { ?> <option value="<?php if ($_smarty_tpl->tpl_vars['field']->value['is_range']) { ?> R<?php } else { ?> B<?php } ?> -<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field_type']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['field']->value['description']); ?> </option> <?php } ?> <?php } ?> </optgroup> </select> <?php } else { ?> <input type="hidden" name="filter_data[filter_type]" value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_id']) { ?> FF-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); } else { if ($_smarty_tpl->tpl_vars['filter_fields']->value[$_smarty_tpl->tpl_vars['filter']->value['field_type']]['is_range']) { ?> R<?php } else { ?> B<?php } ?> -<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); } ?> "> <span class="shift-input"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['filter']->value['feature_group']) { ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_group'], ENT_QUOTES, 'UTF-8'); ?> )<?php } ?> </span> <?php } ?> </div> </div> <div class="control-group<?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> hidden<?php } ?> " id="round_to_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _container"> <label class="control-label" for="elm_filter_round_to_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("round_to"); ?> </label> <div class="controls"> <select name="filter_data[round_to]" id="elm_filter_round_to_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <option value="1" <?php if ($_smarty_tpl->tpl_vars['filter']->value['round_to'] == 1) { ?> selected="selected"<?php } ?> >1</option> <option value="10" <?php if ($_smarty_tpl->tpl_vars['filter']->value['round_to'] == 10) { ?> selected="selected"<?php } ?> >10</option> <option value="100"<?php if ($_smarty_tpl->tpl_vars['filter']->value['round_to'] == 100) { ?> selected="selected"<?php } ?> >100</option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_filter_display_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("display_type"); ?> </label> <div class="controls"> <select name="filter_data[display]" id="elm_filter_display_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <option value="Y" <?php if ($_smarty_tpl->tpl_vars['filter']->value['display'] == 'Y') { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("expanded"); ?> </option> <option value="N" <?php if ($_smarty_tpl->tpl_vars['filter']->value['display'] == 'N') { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("minimized"); ?> </option> </select> </div> </div> <div class="control-group <?php if (!($_smarty_tpl->tpl_vars['filter']->value['feature_id'] || $_smarty_tpl->tpl_vars['filter_fields']->value[$_smarty_tpl->tpl_vars['filter']->value['field_type']]['is_range'] || $_smarty_tpl->tpl_vars['filter']->value['feature'] == 'Vendor')) { ?> hidden<?php } ?> " id="display_count_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _container"> <label class="control-label" for="elm_filter_display_count_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("display_variants_count"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_filters_update_display_variants_count")), 0); ?> </label> <div class="controls"> <input type="text" id="elm_filter_display_count_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="filter_data[display_count]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['display_count']) === null || $tmp === '' ? "10" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group <?php if (!($_smarty_tpl->tpl_vars['filter']->value['feature_id'] || $_smarty_tpl->tpl_vars['filter_fields']->value[$_smarty_tpl->tpl_vars['filter']->value['field_type']]['is_range'] || $_smarty_tpl->tpl_vars['filter']->value['feature'] == 'Vendor')) { ?> hidden<?php } ?> " id="display_more_count_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _container"> <label class="control-label" for="elm_filter_display_more_count_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("display_more_variants_count"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_filters_update_display_more_variants_count")), 0); ?> </label> <div class="controls"> <input type="text" id="elm_filter_display_more_count_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="filter_data[display_more_count]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['display_more_count']) === null || $tmp === '' ? "20" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> </fieldset> </div> <div class="hidden" id="content_tab_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <table class="table table-middle"> <thead> <tr> <th><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th><?php echo $_smarty_tpl->__("name"); ?> </th> <th><?php echo $_smarty_tpl->__("range_from"); ?> - <?php echo $_smarty_tpl->__("range_to"); ?> </th> <th> </th> </tr> </thead> <?php if ($_smarty_tpl->tpl_vars['filter']->value['ranges']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_f"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_f"]['iteration']++; ?> <?php $_smarty_tpl->tpl_vars["num"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['fe_f']['iteration'], null, 0); ?> <tr name="sub"} id="range_item_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "> <td> <input type="hidden" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][range_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " /> </td> <td><input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][range_name]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_name'], ENT_QUOTES, 'UTF-8'); ?> " /></td> <td class="nowrap"> <?php if ($_smarty_tpl->tpl_vars['features']->value[$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['prefix']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['features']->value[$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['prefix'], ENT_QUOTES, 'UTF-8'); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] !== "D") { ?> <input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][from]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['from'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-value-decimal" /> - <input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][to]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['to'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-value-decimal" /> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "date_1_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'], 'date_name' => "filter_data[dates_ranges][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][from]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['range']->value['from']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> - <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "date_2_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'], 'date_name' => "filter_data[dates_ranges][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][to]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['range']->value['to']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['features']->value[$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['suffix']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['features']->value[$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['suffix'], ENT_QUOTES, 'UTF-8'); } ?> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "range_item_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'], 'tag_level' => "1", 'only_delete' => "Y"), 0); ?> </td> </tr> <?php } ?> <?php } ?> <?php echo smarty_function_math(array('equation' => "x + 1", 'assign' => "num", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['num']->value) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); ?> <tr id="box_add_to_range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td class="nowrap"> <input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" value="0" /> </td> <td><input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][range_name]" /></td> <td class="nowrap"> <?php if (!$_smarty_tpl->tpl_vars['id']->value || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "D") { ?> <div id="inputs_ranges<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> class="hidden"<?php } ?> > <input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][from]" value="" class="input-text-medium cm-value-decimal" /> - <input type="text" name="filter_data[ranges][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][to]" value="" class="cm-value-decimal" /> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <div id="dates_ranges<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if (!$_smarty_tpl->tpl_vars['id']->value || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "D") { ?> class="hidden"<?php } ?> > <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "date_3_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'date_name' => "filter_data[dates_ranges][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][from]", 'date_val' => @constant('TIME'), 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> - <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "date_4_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'date_name' => "filter_data[dates_ranges][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][to]", 'date_val' => @constant('TIME'), 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> <?php } ?> </td> <td> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_to_range_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'tag_level' => "1"), 0); ?> </td> </tr> </table> </div> <div class="hidden" id="content_tab_categories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('company_ids' => $_smarty_tpl->tpl_vars['picker_selected_companies']->value, 'multiple' => true, 'input_name' => "filter_data[categories_path]", 'item_ids' => $_smarty_tpl->tpl_vars['filter']->value['categories_path'], 'data_id' => "category_ids_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'no_item_text' => __("text_all_categories_included"), 'use_keys' => "N", 'owner_company_id' => $_smarty_tpl->tpl_vars['filter']->value['company_id'], 'but_meta' => "pull-right"), 0); ?> </div> </div> <div class="buttons-container"> <?php if (fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[product_filters.update]", 'cancel_action' => "close", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </form> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <script type="text/javascript"> fn_check_product_filter_type(Tygh.$('#elm_filter_filter_by_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ').val(), 'tab_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> '); </script> <?php } }
function content_55cdb2a772c4b0_94646970($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('position_short', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'name', 'status', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'edit', 'delete', 'no_data')); if (!$_smarty_tpl->tpl_vars['checkbox_name']->value) { $_smarty_tpl->tpl_vars["checkbox_name"] = new Smarty_variable("page_ids", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['parent_id']->value) { ?> <div <?php if (!$_smarty_tpl->tpl_vars['expand_all']->value) { ?> class="hidden"<?php } ?> id="page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php } $_smarty_tpl->tpl_vars['page'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['page']->_loop = false; $_from = $_smarty_tpl->tpl_vars['pages_tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['page']->key => $_smarty_tpl->tpl_vars['page']->value) { $_smarty_tpl->tpl_vars['page']->_loop = true; ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page']->value, "pages"), null, 0); } ?> <table width="100%" class="table table-tree table-middle table-nobg"> <?php if ($_smarty_tpl->tpl_vars['header']->value && !$_smarty_tpl->tpl_vars['hide_header']->value) { $_smarty_tpl->tpl_vars["header"] = new Smarty_variable('', null, 0); ?> <thead> <tr> <th class="left" width="3%"> <?php if ($_smarty_tpl->tpl_vars['display']->value != "radio") { ?> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> </th> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <th class="left" width="7%"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <?php } ?> <th width="70%" class="left"> <?php if (!$_smarty_tpl->tpl_vars['hide_show_all']->value && !$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " id="on_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combinations-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " ><span class="exicon-expand "></span></span> <span alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " id="off_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combinations-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " ><span class="exicon-collapse "></span></span> <?php } ?> <?php echo $_smarty_tpl->__("name"); ?> </th> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value) { ?> <th width="10%"> </th><?php } ?> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> <?php } ?> </tr> </thead> <?php } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['page']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['level'] > 0 && !$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> class="multiple-table-row"<?php } ?> > <td class="left" width="3%"> <?php if ($_smarty_tpl->tpl_vars['display']->value == "radio") { ?> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checkbox_name']->value, ENT_QUOTES, 'UTF-8'); ?> " id="radio_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /> <?php } else { ?> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checkbox_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" id="checkbox_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /> <?php } ?> </td> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <td width="7%"> <input type="text" name="pages_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" maxlength="10" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro input-hidden" /> <?php if (fn_allowed_for("ULTIMATE")) { ?> <input type="hidden" name="pages_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ][company_id]" size="3" maxlength="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> " class="hidden" /> <?php } ?> </td> <?php } ?> <td class="row-status" width="70%"> <div class="text-over" <?php if (!$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> style="padding-left: <?php echo smarty_function_math(array('equation' => "x*14", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['page']->value['level']) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); ?> px;"<?php } ?> ><?php if ($_smarty_tpl->tpl_vars['page']->value['subpages'] || $_smarty_tpl->tpl_vars['page']->value['has_children']) { $_smarty_tpl->tpl_vars["_dispatch"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['dispatch']->value) === null || $tmp === '' ? "pages.manage" : $tmp, null, 0); if ($_smarty_tpl->tpl_vars['except_id']->value) { $_smarty_tpl->tpl_vars["except_url"] = new Smarty_variable("&except_id=" . (string) $_smarty_tpl->tpl_vars['except_id']->value, null, 0); } ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['expand_all']->value && !$_smarty_tpl->tpl_vars['hide_show_all']->value) { ?> hidden<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['has_children']) { ?> onclick="Tygh.$.ceAjax('request', '<?php echo fn_url((string) $_smarty_tpl->tpl_vars['_dispatch']->value . "?parent_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&get_tree=multi_level" . (string) $_smarty_tpl->tpl_vars['except_url']->value . "&display=" . (string) $_smarty_tpl->tpl_vars['display']->value . "&checkbox_name=" . (string) $_smarty_tpl->tpl_vars['checkbox_name']->value . "&combination_suffix=" . (string) $_smarty_tpl->tpl_vars['combination_suffix']->value); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: 'page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ', caching: true<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> );"<?php } ?> ><span class="exicon-expand"></span></span><span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['expand_all']->value || $_smarty_tpl->tpl_vars['hide_show_all']->value) { ?> hidden<?php } ?> "><span class="exicon-collapse"></span> </span><?php } elseif (!$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> <span style="padding-left: 14px;"> </span><?php } if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url("pages.update?page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['status'] == "N") { ?> class="manage-root-item-disabled"<?php } ?> id="page_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8'); ?> "><?php } else { ?> <label class="inline-label" for="radio_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " id="page_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> </a><?php } else { ?> </label><?php } if ($_smarty_tpl->tpl_vars['page']->value['page_type']) { $_smarty_tpl->tpl_vars["pt"] = new Smarty_variable($_smarty_tpl->tpl_vars['page_types']->value[$_smarty_tpl->tpl_vars['page']->value['page_type']], null, 0); ?> <span class="muted"> (<?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['pt']->value['single']); ?> )</span><?php } ?> <div class="shift-left"><?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['page']->value), 0); ?> </div></div> </td> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <td width="10%"> <input type="hidden" name="pages_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ][parent_id]" size="3" maxlength="10" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['parent_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['get_tree']) { ?> <?php $_smarty_tpl->tpl_vars["multi_level"] = new Smarty_variable("&multi_level=Y", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <?php $_smarty_tpl->tpl_vars["_href"] = new Smarty_variable("pages.update?page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value, null, 0); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => $_smarty_tpl->tpl_vars['_href']->value)); ?> </li> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['allow_save']->value || !fn_allowed_for("ULTIMATE")) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "confirm", 'href' => "pages.delete?page_type=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_type'] . "&page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . (string) $_smarty_tpl->tpl_vars['multi_level']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value) { ?> <td width="10%" class="nowrap right"> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['allow_save']->value || !fn_allowed_for("ULTIMATE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['page']->value['page_id'], 'status' => $_smarty_tpl->tpl_vars['page']->value['status'], 'hidden' => true, 'object_id_name' => "page_id", 'table' => "pages", 'popup_additional_class' => "dropleft"), 0); ?> <?php } ?> </td> <?php } ?> </tr> </table> <?php if ($_smarty_tpl->tpl_vars['page']->value['subpages'] || $_smarty_tpl->tpl_vars['page']->value['has_children']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('pages_tree' => $_smarty_tpl->tpl_vars['page']->value['subpages'], 'parent_id' => $_smarty_tpl->tpl_vars['page']->value['page_id']), 0); ?> <?php } } if (!$_smarty_tpl->tpl_vars['page']->_loop) { ?> <?php if (!$_smarty_tpl->tpl_vars['hide_show_all']->value) { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['parent_id']->value) { ?> <!--page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php } }
function content_55e353badf1f88_59490125($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('position_short', 'name', 'type', 'required', 'status', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'position_short', 'name', 'position_short', 'description')); ?> <script type="text/javascript"> function fn_check_element_type(elm, id, selectable_elements) { var $ = Tygh.$; var elem_id = id.replace('elm_', 'box_element_variants_'); $('#' + elem_id).toggleBy(selectable_elements.indexOf(elm) == -1); // Hide description box for separator $('#descr_' + id).toggleBy((elm == 'D')); $('#hr_' + id).toggleBy((elm != 'D')); $('#req_' + id).prop('disabled', (elm == 'D' || elm == 'H')); } function fn_go_check_element_type(id, selectable_elements) { var $ = Tygh.$; var id = id || ''; var c = parseInt(id.replace('add_elements', '').replace('_', '')); c = (isNaN(c))? 1 : c++; var c_id = c.toString(); $('#elm_add_variants_' + c_id).trigger('change'); } </script> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages"), null, 0); } ?> <table class="table hidden-inputs table-middle"> <thead> <tr> <th width="5%"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th width="30%"><?php echo $_smarty_tpl->__("name"); ?> </th> <th width="30%"><?php echo $_smarty_tpl->__("type"); ?> </th> <th width="5%"><?php echo $_smarty_tpl->__("required"); ?> </th> <th width="10%"> </th> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["element"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["element"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['elements']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_e"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars["element"]->key => $_smarty_tpl->tpl_vars["element"]->value) { $_smarty_tpl->tpl_vars["element"]->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_e"]['iteration']++; $_smarty_tpl->tpl_vars["num"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['fe_e']['iteration'], null, 0); ?> <tbody class="cm-row-item cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['element']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <tr> <td class="nowrap"> <span id="on_box_element_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-expand"></span></span> <span id="off_box_element_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-collapse"></span> </span> <input type="hidden" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][element_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input class="input-micro" type="text" size="3" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " /></td> <td> <input id="descr_elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['element']->value['element_type'] == @constant('FORM_SEPARATOR')) { ?> hidden<?php } ?> " type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][description]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['description'], ENT_QUOTES, 'UTF-8'); ?> " /> <hr id="hr_elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " width="100%" <?php if ($_smarty_tpl->tpl_vars['element']->value['element_type'] != @constant('FORM_SEPARATOR')) { ?> class="hidden"<?php } ?> /></td> <td> <?php echo $_smarty_tpl->getSubTemplate("addons/form_builder/views/pages/components/element_types.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('element_type' => $_smarty_tpl->tpl_vars['element']->value['element_type'], 'elm_id' => $_smarty_tpl->tpl_vars['element']->value['element_id']), 0); ?> </td> <td class="center"> <input type="hidden" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][required]" value="N" /> <input id="req_elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " type="checkbox" <?php if (strstr("HD", $_smarty_tpl->tpl_vars['element']->value['element_type'])) { ?> disabled="disabled"<?php } ?> name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][required]" value="Y" <?php if ($_smarty_tpl->tpl_vars['element']->value['required'] == "Y") { ?> checked="checked"<?php } ?> class="checkbox" /></td> <td> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => "Y"), 0); ?> </div> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['element']->value['element_id'], 'prefix' => "elm", 'status' => $_smarty_tpl->tpl_vars['element']->value['status'], 'hidden' => '', 'object_id_name' => "element_id", 'table' => "form_options", 'non_editable' => !$_smarty_tpl->tpl_vars['allow_save']->value), 0); ?> </td> </tr> <tr id="box_element_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " class="<?php if (!substr_count($_smarty_tpl->tpl_vars['selectable_elements']->value, $_smarty_tpl->tpl_vars['element']->value['element_type'])) { ?> hidden<?php } ?> row-more row-gray hidden"> <td> </td> <td colspan="4"> <table class="table table-middle"> <thead> <tr class="cm-first-sibling"> <th width="5%" class="left"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th><?php echo $_smarty_tpl->__("name"); ?> </th> <th> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['var'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['var']->_loop = false; $_smarty_tpl->tpl_vars["vnum"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['element']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['var']->key => $_smarty_tpl->tpl_vars['var']->value) { $_smarty_tpl->tpl_vars['var']->_loop = true; $_smarty_tpl->tpl_vars["vnum"]->value = $_smarty_tpl->tpl_vars['var']->key; ?> <tr class="cm-first-sibling cm-row-item"> <td> <input type="hidden" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vnum']->value, ENT_QUOTES, 'UTF-8'); ?> ][element_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input class="input-micro" size="3" type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vnum']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " /></td> <td><input type="text" class="span7" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vnum']->value, ENT_QUOTES, 'UTF-8'); ?> ][description]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['description'], ENT_QUOTES, 'UTF-8'); ?> " /></td> <td> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => "Y"), 0); ?> </div> </td> </tr> <?php } ?> <?php echo smarty_function_math(array('equation' => "x + 1", 'assign' => "vnum", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['vnum']->value) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); ?> <tr id="box_elm_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['element']->value['element_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-row-item cm-elm-variants"> <td><input class="input-micro" size="3" type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vnum']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" /></td> <td><input type="text" class="span7" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vnum']->value, ENT_QUOTES, 'UTF-8'); ?> ][description]" /></td> <td> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "elm_variants_" . (string) $_smarty_tpl->tpl_vars['element']->value['element_id'], 'tag_level' => "5"), 0); ?> </div> </td> </tr> </table> </td> <td> </td> </tr> </tbody> <?php } ?> <?php echo smarty_function_math(array('equation' => "x + 1", 'assign' => "num", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['num']->value) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); ?> <tbody class="cm-row-item cm-row-status-a" id="box_add_elements"> <tr class="no-border"> <td class="right"> <input class="input-micro" size="3" type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="" /></td> <td> <input id="descr_elm_add_variants" type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][description]" value="" /> <hr id="hr_elm_add_variants" class="hidden" /></td> <td> <?php echo $_smarty_tpl->getSubTemplate("addons/form_builder/views/pages/components/element_types.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('element_type' => '', 'elm_id' => "add_variants"), 0); ?> </td> <td class="center"> <input type="hidden" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][required]" value="N" /> <input id="req_elm_add_variants" type="checkbox" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][required]" value="Y" checked="checked" class="checkbox" /></td> <td class="left"> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_elements", 'on_add' => "fn_go_check_element_type();"), 0); ?> </div> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "page_data[form][elements_data][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "popup"), 0); ?> </td> </tr> <tr id="box_element_variants_add_variants" class="row-more row-gray"> <td> </td> <td colspan="4"> <table class="table table-middle"> <thead> <tr class="cm-first-sibling"> <th width="5%" class="left"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th><?php echo $_smarty_tpl->__("description"); ?> </th> <th> </th> </tr> </thead> <tr id="box_elm_variants_add_variants" class="cm-row-item cm-elm-variants"> <td><input class="input-micro" size="3" type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][0][position]" /></td> <td><input class="span7" type="text" name="page_data[form][elements_data][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variants][0][description]" /></td> <td> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "elm_variants_add_variants", 'tag_level' => "5"), 0); ?> </div> </td> </tr> </table> </td> <td> </td> </tr> </tbody> </table> <?php }
function content_55e61e6bb11d10_64552035($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('contact_information', 'user_profile_info', 'text_multiprofile_notice', 'billing_address', 'shipping_address', 'shipping_address', 'usergroup', 'status', 'no_data', 'allow_api_access', 'api_key', 'new_profile', 'editing_profile', 'editing_profile', 'editing_profile', 'view_all_orders', 'act_on_behalf', 'delete', 'create', 'notify_user')); if ($_smarty_tpl->tpl_vars['user_data']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value['user_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <form name="profile_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" class="form-horizontal form-edit form-table <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['user_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['id']->value != $_smarty_tpl->tpl_vars['auth']->value['user_id'] || $_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> cm-hide-inputs<?php } ?> "> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] == 'Y' && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && (!$_smarty_tpl->tpl_vars['user_data']->value['company_id'] || $_smarty_tpl->tpl_vars['user_data']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE") && !fn_allow_save_object($_smarty_tpl->tpl_vars['user_data']->value, "users") && $_smarty_tpl->tpl_vars['id']->value && !fn_ult_check_users_usergroup_companies($_smarty_tpl->tpl_vars['id']->value) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR") && (!fn_allow_save_object($_smarty_tpl->tpl_vars['user_data']->value, "users") || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_REQUEST['user_type'] == 'C' || fn_string_not_empty($_smarty_tpl->tpl_vars['user_data']->value['company_id']) && $_smarty_tpl->tpl_vars['user_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <input type="hidden" name="user_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="selected_section" id="selected_section" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="user_type" value="<?php echo htmlspecialchars($_REQUEST['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <div id="content_general"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:general_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:general_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_account.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if ((fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['user_type']->value == "V") && $_smarty_tpl->tpl_vars['id']->value != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var'] = new Smarty_variable(false, null, 0); ?> <?php if (fn_allowed_for("ULTIMATE") && fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_type']->value)) { ?> <?php $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var'] = new Smarty_variable('all_vendors', null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "user_data[company_id]", 'id' => "user_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['user_data']->value['company_id'], 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value, 'disable_company_picker' => $_smarty_tpl->tpl_vars['hide_inputs']->value), 0); ?> <?php } else { ?> <input type="hidden" name="user_data[company_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['company_id']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:general_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "C", 'title' => __("contact_information")), 0); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == "Y" && $_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("user_profile_info")), 0); ?> <p class="form-note"><?php echo $_smarty_tpl->__("text_multiprofile_notice"); ?> </p> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/multiple_profiles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['B']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "B", 'title' => __("billing_address")), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "S", 'title' => __("shipping_address"), 'body_id' => "sa", 'shipping_flag' => fn_compare_shipping_billing($_smarty_tpl->tpl_vars['profile_fields']->value)), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "S", 'title' => __("shipping_address"), 'shipping_flag' => false), 0); ?> <?php } ?> </div> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if ($_smarty_tpl->tpl_vars['id']->value && ((!fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_data']->value) || !$_smarty_tpl->tpl_vars['user_data']->value['user_id']) && !$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_data']->value) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] && $_smarty_tpl->tpl_vars['usergroups']->value && !$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['auth']->value['is_root'] == 'Y' && ($_smarty_tpl->tpl_vars['user_data']->value['company_id'] != 0 || $_smarty_tpl->tpl_vars['user_data']->value['company_id'] == 0 && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] != 'Y') || $_smarty_tpl->tpl_vars['user_data']->value['user_type'] == 'V' && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['auth']->value['is_root'] == 'Y' && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['user_data']->value['company_id'] == $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <div id="content_usergroups" class="cm-hide-save-button"> <?php if ($_smarty_tpl->tpl_vars['usergroups']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="50%"><?php echo $_smarty_tpl->__("usergroup"); ?> </th> <th class="right" width="10%"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['usergroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['usergroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['usergroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['usergroup']->key => $_smarty_tpl->tpl_vars['usergroup']->value) { $_smarty_tpl->tpl_vars['usergroup']->_loop = true; ?> <tr> <td><a href="<?php echo htmlspecialchars(fn_url("usergroups.manage#group" . (string) $_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <td class="right"> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['usergroups'][$_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id']]) { ?> <?php $_smarty_tpl->tpl_vars["ug_status"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value['usergroups'][$_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id']]['status'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["ug_status"] = new Smarty_variable("F", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], 'status' => $_smarty_tpl->tpl_vars['ug_status']->value, 'hidden' => '', 'items_status' => fn_get_predefined_statuses("profiles"), 'extra' => "&user_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, 'update_controller' => "usergroups", 'notify' => true, 'hide_for_vendor' => $_smarty_tpl->tpl_vars['runtime']->value['company_id']), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </div> <?php } ?> <?php } ?> <div id="content_addons"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:detailed_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php if ($_smarty_tpl->tpl_vars['show_api_tab']->value) { ?> <div id="content_api"> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['hide_api_checkbox']->value) { ?> hidden<?php } ?> "> <div class="controls"> <label class="checkbox" for="sw_api_container"> <input <?php if ($_smarty_tpl->tpl_vars['user_data']->value['api_key'] != '') { ?> checked="checked"<?php } ?> class="cm-combination" type="checkbox" name="user_api_status" value="Y" id="sw_api_container" /><?php echo $_smarty_tpl->__("allow_api_access"); ?> </label> </div> </div> <div id="api_container" <?php if ($_smarty_tpl->tpl_vars['user_data']->value['api_key'] == '') { ?> class="hidden"<?php } ?> > <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("api_key"); ?> </label> <div class="controls"> <input type="text" class="input-large" name="user_data[api_key]" value="<?php if ($_smarty_tpl->tpl_vars['user_data']->value['api_key']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['api_key'], ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['new_api_key']->value, ENT_QUOTES, 'UTF-8'); } ?> " readonly="readonly"/> </div> </div> </div> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!fn_allow_save_object($_smarty_tpl->tpl_vars['user_data']->value, "users") && $_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] || $_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:tabs_extra"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'group_name' => $_smarty_tpl->tpl_vars['runtime']->value['controller'], 'active_tab' => $_smarty_tpl->tpl_vars['selected_section']->value, 'track' => true), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["_user_desc"] = new Smarty_variable(fn_get_user_type_description($_smarty_tpl->tpl_vars['user_type']->value), null, 0); ?> <?php ob_start(); echo $_smarty_tpl->__("new_profile"); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp1 . " (" . (string) $_smarty_tpl->tpl_vars['_user_desc']->value . ")", null, 0); } else { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['firstname']) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_profile"); $_tmp2 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp2 . ": " . (string) $_smarty_tpl->tpl_vars['user_data']->value['firstname'] . " " . (string) $_smarty_tpl->tpl_vars['user_data']->value['lastname'], null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['user_data']->value['b_firstname']) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_profile"); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['user_data']->value['b_firstname'] . " " . (string) $_smarty_tpl->tpl_vars['user_data']->value['b_lastname'], null, 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_profile"); $_tmp4 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp4 . ": " . (string) $_smarty_tpl->tpl_vars['user_data']->value['email'], null, 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars['_title'] = new Smarty_variable(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['_title']->value), null, 0); $_smarty_tpl->tpl_vars["redirect_url"] = new Smarty_variable("profiles.manage%26user_type=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['user_type'], null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == "C") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("view_all_orders"), 'href' => "orders.manage?user_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <?php } ?> <?php if (fn_user_need_login($_smarty_tpl->tpl_vars['user_data']->value['user_type']) && (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && !($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == 'A' && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] == 'Y' && !$_smarty_tpl->tpl_vars['user_data']->value['company_id'])) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("act_on_behalf"), 'href' => "profiles.act_as_user?user_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm cm-post", 'href' => "profiles.delete?user_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['redirect_url']->value)); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:update_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value && trim(Smarty::$_smarty_vars['capture']['tools_list']) !== '') { ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> <div class="btn-group btn-hover dropleft"> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_changes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "dropdown-toggle", 'but_role' => "submit-link", 'but_name' => "dispatch[profiles." . (string) $_smarty_tpl->tpl_vars['runtime']->value['mode'] . "]", 'but_target_form' => "profile_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("create"), 'but_meta' => "dropdown-toggle", 'but_role' => "submit-link", 'but_name' => "dispatch[profiles." . (string) $_smarty_tpl->tpl_vars['runtime']->value['mode'] . "]", 'but_target_form' => "profile_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } ?> <ul class="dropdown-menu"> <li><a><input type="checkbox" name="notify_customer" value="Y" checked="checked" id="notify_customer" /> <?php echo $_smarty_tpl->__("notify_user"); ?> </a></li> </ul> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['_title']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons']), 0); ?> </form><?php }
function content_55e61f9ae0ca45_28054294($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_math')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('information', 'name', 'text_ult_product_store_field_tooltip', 'categories', 'tt_views_products_update_categories', 'price', 'full_description', 'edit_content_on_site', 'images', 'text_product_thumbnail', 'text_product_detailed_image', 'options_settings', 'options_type', 'simultaneous', 'sequential', 'exceptions_type', 'forbidden', 'allowed', 'pricing_inventory', 'sku', 'list_price', 'tt_views_products_update_list_price', 'in_stock', 'edit', 'zero_price_action', 'zpa_refuse', 'zpa_permit', 'zpa_ask_price', 'inventory', 'tt_views_products_update_inventory', 'track_with_options', 'track_without_options', 'dont_track', 'min_order_qty', 'max_order_qty', 'quantity_step', 'list_quantity_count', 'taxes', 'availability', 'usergroups', 'creation_date', 'available_since', 'out_of_stock_actions', 'tt_views_products_update_out_of_stock_actions', 'none', 'buy_in_advance', 'sign_up_for_notification', 'extra', 'product_details_view', 'feature_comparison', 'downloadable', 'edp_enable_shipping', 'time_unlimited_download', 'short_description', 'popularity', 'ttc_popularity', 'search_words', 'promo_text', 'additional_images', 'sort_images', 'sort', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'preview', 'clone', 'delete', 'editing_product', 'new_product')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['company_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "product"), null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['product_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['product_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); ?> <?php } ?> <form id='form' action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="product_update_form" class="form-horizontal form-edit cm-disable-empty-files <?php if (fn_check_form_permissions('') || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <input type="hidden" name="fake" value="1" /> <input type="hidden" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " name="selected_section" id="selected_section" value="<?php echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " name="product_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="product-manage" id="content_detailed"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#acc_information"), 0); ?> <div id="acc_information" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="product_description_product" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input class="input-large" form="form" type="text" name="product_data[product]" id="product_description_product" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'product', 'name' => "update_all_vendors[product]"), 0); ?> </div> </div> <?php $_smarty_tpl->tpl_vars["result_ids"] = new Smarty_variable("product_categories", null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:product_details_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "companies:product_details_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['mode']->value != "add") { ?> <?php $_smarty_tpl->tpl_vars["reload_form"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["companies_tooltip"] = new Smarty_variable($_smarty_tpl->__("text_ult_product_store_field_tooltip"), null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "product_data[company_id]", 'id' => "product_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'tooltip' => $_smarty_tpl->tpl_vars['companies_tooltip']->value, 'reload_form' => $_smarty_tpl->tpl_vars['reload_form']->value), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "companies:product_details_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8'); ?> " name="result_ids"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_categories"> <?php echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl); ?> <?php if ($_REQUEST['category_id']) { ?> <?php $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable(explode(",", $_REQUEST['category_id']), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable('', null, 0); ?> <?php } ?> <label for="ccategories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8'); ?> _ids" class="control-label cm-required"><?php echo $_smarty_tpl->__("categories"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_categories")), 0); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('hide_input' => $_smarty_tpl->tpl_vars['product_data']->value['shared_product'], 'company_ids' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'rnd' => $_smarty_tpl->tpl_vars['rnd']->value, 'data_id' => "categories", 'input_name' => "product_data[category_ids]", 'radio_input_name' => "product_data[main_category]", 'main_category' => $_smarty_tpl->tpl_vars['product_data']->value['main_category'], 'item_ids' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['category_ids']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['request_category_id']->value : $tmp, 'hide_link' => true, 'hide_delete_button' => true, 'display_input_id' => "category_ids", 'disable_no_item_text' => true, 'view_mode' => "list", 'but_meta' => "btn"), 0); ?> </div> <!--product_categories--></div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="elm_price_price" class="control-label cm-required"><?php echo $_smarty_tpl->__("price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ):</label> <div class="controls"> <input type="text" name="product_data[price]" id="elm_price_price" size="10" value="<?php echo htmlspecialchars(fn_format_price(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['price']) === null || $tmp === '' ? "0.00" : $tmp, $_smarty_tpl->tpl_vars['primary_currency']->value, null, false), ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'price', 'name' => "update_all_vendors[price]"), 0); ?> </div> </div> <div class="control-group cm-no-hide-input"> <label class="control-label" for="elm_product_full_descr"><?php echo $_smarty_tpl->__("full_description"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'full_description', 'name' => "update_all_vendors[full_description]"), 0); ?> <textarea id="elm_product_full_descr" name="product_data[full_description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['full_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php ob_start(); echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); if (fn_allowed_for("ULTIMATE")) { echo "&switch_company_id="; echo (string) $_smarty_tpl->tpl_vars['product_data']->value['company_id']; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0); ?> <?php } ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "product_data[status]", 'id' => "elm_product_status", 'obj' => $_smarty_tpl->tpl_vars['product_data']->value, 'hidden' => true), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_detailed_images")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_detailed_images"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("images"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_main", 'image_object_type' => "product", 'image_pair' => $_smarty_tpl->tpl_vars['product_data']->value['main_pair'], 'icon_text' => __("text_product_thumbnail"), 'detailed_text' => __("text_product_detailed_image"), 'no_thumbnail' => true), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_detailed_images"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options_settings"), 'target' => "#acc_options"), 0); ?> <?php if (fn_allowed_for("ULTIMATE:FREE")) { ?> <?php $_smarty_tpl->tpl_vars['promo_class'] = new Smarty_variable("cm-promo-popup", null, 0); ?> <?php $_smarty_tpl->tpl_vars['disable_selectors'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <div id="acc_options" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_options_type"><?php echo $_smarty_tpl->__("options_type"); ?> :</label> <div class="controls"> <select class="span3" name="product_data[options_type]" id="elm_options_type" <?php if ($_smarty_tpl->tpl_vars['disable_selectors']->value) { ?> disabled="disabled"<?php } ?> > <option value="P" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("simultaneous"); ?> </option> <option value="S" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("sequential"); ?> </option> </select> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_exceptions_type"><?php echo $_smarty_tpl->__("exceptions_type"); ?> :</label> <div class="controls"> <select class="span3" name="product_data[exceptions_type]" id="elm_exceptions_type" <?php if ($_smarty_tpl->tpl_vars['disable_selectors']->value) { ?> disabled="disabled"<?php } ?> > <option value="F" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "F") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("forbidden"); ?> </option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("allowed"); ?> </option> </select> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("pricing_inventory"), 'target' => "#acc_pricing_inventory"), 0); ?> <div id="acc_pricing_inventory" class="collapse in"> <div class="control-group"> <label class="control-label" for="elm_product_code"><?php echo $_smarty_tpl->__("sku"); ?> :</label> <div class="controls"> <input type="text" name="product_data[product_code]" id="elm_product_code" size="20" maxlength="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_list_price"><?php echo $_smarty_tpl->__("list_price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ) <?php echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_list_price")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[list_price]" id="elm_list_price" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_price']) === null || $tmp === '' ? "0.00" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_in_stock"><?php echo $_smarty_tpl->__("in_stock"); ?> :</label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS")) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "product_options.inventory?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, 'but_role' => "edit"), 0); ?> <?php } else { ?> <input type="text" name="product_data[amount]" id="elm_in_stock" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['amount']) === null || $tmp === '' ? "1" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_zero_price_action"><?php echo $_smarty_tpl->__("zero_price_action"); ?> :</label> <div class="controls"> <select class="span5" name="product_data[zero_price_action]" id="elm_zero_price_action"> <option value="R" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "R") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_refuse"); ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_permit"); ?> </option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_ask_price"); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_tracking"><?php echo $_smarty_tpl->__("inventory"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_inventory")), 0); ?> :</label> <div class="controls"> <select class="span3" name="product_data[tracking]" id="elm_product_tracking" <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") { ?> disabled="disabled"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['product_options']->value) { ?> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS"), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS") && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("track_with_options"); ?> </option> <?php } ?> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); ?> " <?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); $_tmp3 = ob_get_clean(); if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp3 && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("track_without_options"); ?> </option> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8'); ?> " <?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8'); $_tmp4 = ob_get_clean(); if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp4 || $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("dont_track"); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_min_qty"><?php echo $_smarty_tpl->__("min_order_qty"); ?> :</label> <div class="controls"> <input type="text" name="product_data[min_qty]" size="10" id="elm_min_qty" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['min_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_max_qty"><?php echo $_smarty_tpl->__("max_order_qty"); ?> :</label> <div class="controls"> <input type="text" name="product_data[max_qty]" id="elm_max_qty" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['max_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_qty_step"><?php echo $_smarty_tpl->__("quantity_step"); ?> :</label> <div class="controls"> <input type="text" name="product_data[qty_step]" id="elm_qty_step" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['qty_step']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_list_qty_count"><?php echo $_smarty_tpl->__("list_quantity_count"); ?> :</label> <div class="controls"> <input type="text" name="product_data[list_qty_count]" id="elm_list_qty_count" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_qty_count']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> :</label> <div class="controls"> <input type="hidden" name="product_data[tax_ids]" value="" /> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label class="checkbox inline" for="elm_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="product_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['product_data']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> – <?php } ?> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#acc_availability"), 0); ?> <div id="acc_availability" class="collapse in"> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "product_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['product_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_date_holder"><?php echo $_smarty_tpl->__("creation_date"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_holder", 'date_name' => "product_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_date_avail_holder"><?php echo $_smarty_tpl->__("available_since"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_avail_holder", 'date_name' => "product_data[avail_since]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['avail_since']) === null || $tmp === '' ? '' : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_out_of_stock_actions"><?php echo $_smarty_tpl->__("out_of_stock_actions"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_out_of_stock_actions")), 0); ?> :</label> <div class="controls"> <select class="span3" name="product_data[out_of_stock_actions]" id="elm_out_of_stock_actions"> <option value="N" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("none"); ?> </option> <option value="B" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "B") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("buy_in_advance"); ?> </option> <option value="S" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("sign_up_for_notification"); ?> </option> </select> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("extra"), 'target' => "#acc_extra"), 0); ?> <div id="acc_extra" class="collapse in"> <div class="control-group"> <label class="control-label" for="elm_details_layout"><?php echo $_smarty_tpl->__("product_details_view"); ?> :</label> <div class="controls"> <select class="span5" id="elm_details_layout" name="product_data[details_layout]"> <?php $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item"]->_loop = false; $_smarty_tpl->tpl_vars["layout"] = new Smarty_Variable(); $_from = fn_get_product_details_views($_smarty_tpl->tpl_vars['id']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) { $_smarty_tpl->tpl_vars["item"]->_loop = true; $_smarty_tpl->tpl_vars["layout"]->value = $_smarty_tpl->tpl_vars["item"]->key; ?> <option <?php if ($_smarty_tpl->tpl_vars['product_data']->value['details_layout'] == $_smarty_tpl->tpl_vars['layout']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_feature_comparison"><?php echo $_smarty_tpl->__("feature_comparison"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[feature_comparison]" value="N" /> <input type="checkbox" name="product_data[feature_comparison]" id="elm_product_feature_comparison" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['feature_comparison'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") { ?> <div class="control-group"> <label class="control-label" for="elm_product_is_edp"><?php echo $_smarty_tpl->__("downloadable"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[is_edp]" value="N" /> <input type="checkbox" name="product_data[is_edp]" id="elm_product_is_edp" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] == "Y") { ?> checked="checked"<?php } ?> onclick="Tygh.$('#edp_shipping').toggleBy(); Tygh.$('#edp_unlimited').toggleBy();"/> </label> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") { ?> hidden<?php } ?> " id="edp_shipping"> <label class="control-label" for="elm_product_edp_shipping"><?php echo $_smarty_tpl->__("edp_enable_shipping"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[edp_shipping]" value="N" /> <input type="checkbox" name="product_data[edp_shipping]" id="elm_product_edp_shipping" value="Y"<?php if ($_smarty_tpl->tpl_vars['product_data']->value['edp_shipping'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") { ?> hidden<?php } ?> " id="edp_unlimited"> <label class="control-label" for="elm_product_edp_unlimited"><?php echo $_smarty_tpl->__("time_unlimited_download"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[unlimited_download]" value="N" /> <input type="checkbox" name="product_data[unlimited_download]" id="elm_product_edp_unlimited" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['unlimited_download'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_from' => $_smarty_tpl->tpl_vars['product_data']->value['localization'], 'data_name' => "product_data[localization]"), 0); ?> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_short_descr"><?php echo $_smarty_tpl->__("short_description"); ?> :</label> <div class="controls"> <textarea id="elm_product_short_descr" name="product_data[short_description]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['short_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "short_description", 'name' => "update_all_vendors[short_description]"), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_popularity"><?php echo $_smarty_tpl->__("popularity"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_popularity")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[popularity]" id="elm_product_popularity" size="55" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['popularity']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_search_words"><?php echo $_smarty_tpl->__("search_words"); ?> :</label> <div class="controls"> <textarea name="product_data[search_words]" id="elm_product_search_words" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['search_words'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'search_words', 'name' => "update_all_vendors[search_words]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_promo_text"><?php echo $_smarty_tpl->__("promo_text"); ?> :</label> <div class="controls"> <textarea id="elm_product_promo_text" name="product_data[promo_text]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['promo_text'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "promo_text", 'name' => "update_all_vendors[promo_text]"), 0); ?> </div> </div> </div> <!--content_detailed--></div> <div id="content_images" class="hidden clearfix"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("additional_images")), 0); ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['image_pairs']) { ?> <div class="cm-sortable sortable-box" data-ca-sortable-table="images_links" data-ca-sortable-id-name="pair_id" id="additional_images"> <?php $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable("0", null, 0); ?> <?php $_smarty_tpl->tpl_vars['pair'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['pair']->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_data']->value['image_pairs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['pair']->key => $_smarty_tpl->tpl_vars['pair']->value) { $_smarty_tpl->tpl_vars['pair']->_loop = true; ?> <div class="cm-row-item cm-sortable-id-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pair']->value['pair_id'], ENT_QUOTES, 'UTF-8'); ?> cm-sortable-box"> <div class="cm-sortable-handle sortable-bar"><img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> /icon_sort_bar.gif" width="26" height="25" border="0" title="<?php echo $_smarty_tpl->__("sort_images"); ?> " alt="<?php echo $_smarty_tpl->__("sort"); ?> " class="valign" /></div> <div class="sortable-item"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_additional", 'image_object_type' => "product", 'image_key' => $_smarty_tpl->tpl_vars['pair']->value['pair_id'], 'image_type' => "A", 'image_pair' => $_smarty_tpl->tpl_vars['pair']->value, 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'delete_pair' => true, 'no_thumbnail' => true), 0); ?> </div> <div class="clear"></div> </div> <?php if ($_smarty_tpl->tpl_vars['new_image_position']->value <= $_smarty_tpl->tpl_vars['pair']->value['position']) { ?> <?php $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable($_smarty_tpl->tpl_vars['pair']->value['position'], null, 0); ?> <?php } ?> <?php } ?> </div> <?php } ?> <div id="box_new_image"> <div class="clear cm-row-item"> <input type="hidden" name="product_add_additional_image_data[0][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['new_image_position']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-image-field" /> <div class="image-upload-wrap pull-left"><?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_add_additional", 'image_object_type' => "product", 'image_type' => "A", 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'no_thumbnail' => true), 0); ?> </div> <div class="pull-right"><?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "new_image"), 0); ?> </div> </div> </div> </div> <div id="content_seo" class="hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_seo")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_seo"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#acc_seo_meta"), 0); ?> <div id="acc_seo_meta" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_page_title"><?php echo $_smarty_tpl->__("page_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[page_title]" id="elm_product_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "page_title", 'name' => "update_all_vendors[page_title]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="product_data[meta_description]" id="elm_product_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "meta_description", 'name' => "update_all_vendors[meta_description]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="product_data[meta_keywords]" id="elm_product_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "meta_keywords", 'name' => "update_all_vendors[meta_keywords]"), 0); ?> </div> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_seo"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div id="content_shippings" class="hidden"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_shipping_settings.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_qty_discounts")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_qty_discounts"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_qty_discounts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_qty_discounts"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['product_data']->value['product_id']), 0); ?> <div id="content_addons"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:detailed_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/view_tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('url' => "products.update?product_id="), 0); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value)); ?> </li> <li class="divider"></li> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clone"), 'class' => "cm-post", 'href' => "products.clone?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm cm-post", 'href' => "products.delete?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "submit-link", 'but_name' => "dispatch[products.update]", 'but_target_form' => "product_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:tabs_extra"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <div class="cm-hide-save-button hidden" id="content_options"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") { ?> <div id="content_files" class="cm-hide-save-button hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:content_files")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:content_files"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_files.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:content_files"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <div id="content_subscribers" class="cm-hide-save-button hidden"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_subscribers.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'group_name' => $_smarty_tpl->tpl_vars['runtime']->value['controller'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_mainbox_params")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_mainbox_params"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); ?> <?php ob_start(); echo $_smarty_tpl->__("editing_product"); $_tmp5 = ob_get_clean(); echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['product_data']->value['product']), ENT_QUOTES, 'UTF-8'); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); ?> <?php echo $_smarty_tpl->__("new_product"); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_mainbox_params"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => Smarty::$_smarty_vars['capture']['mainbox_title'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => $_smarty_tpl->tpl_vars['id']->value, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); }
function content_55e3e067347005_40680962($_smarty_tpl) { fn_preload_lang_vars(array('banner', 'type', 'status', 'graphic_banner', 'text_banner', 'edit', 'delete', 'no_data', 'banners_statistics', 'add_banner', 'banners')); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="banners_form" class=" cm-hide-inputs" enctype="multipart/form-data"> <input type="hidden" name="fake" value="1" /> <?php if ($_smarty_tpl->tpl_vars['banners']->value) { ?> <table class="table table-middle"> <thead> <tr> <th width="1%" class="left"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => "cm-no-hide-input"), 0); ?> </th> <th><?php echo $_smarty_tpl->__("banner"); ?> </th> <th><?php echo $_smarty_tpl->__("type"); ?> </th> <th width="6%"> </th> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['banner'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['banner']->_loop = false; $_from = $_smarty_tpl->tpl_vars['banners']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['banner']->key => $_smarty_tpl->tpl_vars['banner']->value) { $_smarty_tpl->tpl_vars['banner']->_loop = true; ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['banner']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['banner']->value, "banners"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable('', null, 0); ?> <?php } ?> <td class="left"> <input type="checkbox" name="banner_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['banner_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> " /></td> <td class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <a class="row-status" href="<?php echo htmlspecialchars(fn_url("banners.update?banner_id=" . (string) $_smarty_tpl->tpl_vars['banner']->value['banner_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['banner'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['banner']->value), 0); ?> </td> <td class="nowrap row-status <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php if ($_smarty_tpl->tpl_vars['banner']->value['type'] == "G") { echo $_smarty_tpl->__("graphic_banner"); } else { echo $_smarty_tpl->__("text_banner"); } ?> </td> <td> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "banners.update?banner_id=" . (string) $_smarty_tpl->tpl_vars['banner']->value['banner_id'])); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm", 'text' => __("delete"), 'href' => "banners.delete?banner_id=" . (string) $_smarty_tpl->tpl_vars['banner']->value['banner_id'])); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['banner']->value['banner_id'], 'status' => $_smarty_tpl->tpl_vars['banner']->value['status'], 'hidden' => true, 'object_id_name' => "banner_id", 'table' => "banners", 'popup_additional_class' => (string) $_smarty_tpl->tpl_vars['no_hide_input']->value . " dropleft"), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['addons']->value['statistics']['status'] == "A") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("banners_statistics"), 'href' => "statistics.banners")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['banners']->value) { ?> <li class="divider"></li> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['banners']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[banners.m_delete]", 'form' => "banners_form")); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "banners.add", 'prefix' => "top", 'hide_tools' => "true", 'title' => __("add_banner"), 'icon' => "icon-plus"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("banners"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true), 0); ?> <?php }
function content_55dc7cc5c1a670_13636549($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('information', 'name', 'description', 'edit_content_on_site', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'availability', 'usergroups', 'creation_date', 'use_avail_period', 'avail_from', 'avail_till', 'preview', 'clone_this_page', 'delete_this_page', 'pages')); if ($_smarty_tpl->tpl_vars['page_data']->value['page_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['page_data']->value['page_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK') && (!fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars['view_uri'] = new Smarty_variable(fn_get_preview_url("pages.view?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, $_smarty_tpl->tpl_vars['page_data']->value, $_smarty_tpl->tpl_vars['auth']->value['user_id']), null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages"), null, 0); } $_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['allow_save']->value, null, 2); $_ptr = $_smarty_tpl->parent; while ($_ptr != null) { $_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn']; $_ptr = $_ptr->parent; } $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="page_update_form" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <div id="update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" class="cm-no-hide-input" id="selected_section" name="selected_section" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8'); ?> "/> <input type="hidden" class="cm-no-hide-input" id="page_id" name="page_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="page_data[page_type]" id="page_type" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_type']->value, ENT_QUOTES, 'UTF-8'); ?> "/> <input type="hidden" class="cm-no-hide-input" name="come_from" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['come_from']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="result_ids" value="update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "/> <div id="content_basic"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#pages_information_setting"), 0); ?> <div id="pages_information_setting" class="in collapse"> <fieldset> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/parent_page_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="control-group"> <label for="elm_page_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" name="page_data[page]" id="elm_page_name" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['page_data']->value['parent_id'] != 0 && $_smarty_tpl->tpl_vars['page_data']->value['page_id'] != 0) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "page_data[company_id]", 'id' => "elm_page_data_company_id", 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value, 'selected' => $_smarty_tpl->tpl_vars['page_data']->value['company_id'], 'reload_form' => true, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_description")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_description"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <div class="control-group"> <label class="control-label" for="elm_page_descr"><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <textarea id="elm_page_descr" name="page_data[description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php ob_start(); echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); if (fn_allowed_for("ULTIMATE")) { echo "&switch_company_id="; echo (string) $_smarty_tpl->tpl_vars['page_data']->value['company_id']; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0); ?> <?php } ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value == @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:detailed_description"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "page_data[status]", 'id' => "elm_page_status", 'obj' => $_smarty_tpl->tpl_vars['page_data']->value, 'hidden' => true), 0); ?> </fieldset> </div> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#pages_seo_meta_data_setting"), 0); ?> <div id="pages_seo_meta_data_setting" class="in collapse"> <fieldset> <div class="control-group"> <label class="control-label" for="elm_page_title"><?php echo $_smarty_tpl->__("page_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0); ?> :</label> <div class="controls"> <input type="text" name="page_data[page_title]" id="elm_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_description]" id="elm_page_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_keywords]" id="elm_page_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> </fieldset> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#pages_availability_setting"), 0); ?> <div id="pages_availability_setting" class="in collapse"> <fieldset> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "page_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['page_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_page_date"><?php echo $_smarty_tpl->__("creation_date"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_date", 'date_name' => "page_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "page_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['page_data']->value['localization']), 0); ?> <div class="control-group"> <label class="control-label" for="elm_page_use_avail_period"><?php echo $_smarty_tpl->__("use_avail_period"); ?> :</label> <div class="controls"> <input type="hidden" name="page_data[use_avail_period]" value="N"> <span class="checkbox"> <input type="checkbox" name="page_data[use_avail_period]" id="elm_page_use_avail_period" <?php if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] == "Y") { ?> checked="checked"<?php } ?> value="Y" onclick="fn_activate_calendar(this);"> </span> </div> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("calendar_disable", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] != "Y") { ?> disabled="disabled"<?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="control-group"> <label class="control-label" for="elm_page_avail_from"><?php echo $_smarty_tpl->__("avail_from"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_avail_from", 'date_name' => "page_data[avail_from_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_from_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_avail_till"><?php echo $_smarty_tpl->__("avail_till"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_avail_till", 'date_name' => "page_data[avail_till_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_till_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> </fieldset> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array()); $_block_repeat = true; echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo '<script'; ?> language="javascript"> function fn_activate_calendar(el) { Tygh.$('#elm_page_avail_from').prop('disabled', !el.checked); Tygh.$('#elm_page_avail_till').prop('disabled', !el.checked); } <?php echo '</script'; ?> ><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div id="content_addons"> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['new_name']), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['edit_name']); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['page_data']->value['page'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("preview", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value)); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php } } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_p"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["_p"]->_loop = false; $_smarty_tpl->tpl_vars["_k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['page_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["_p"]->key => $_smarty_tpl->tpl_vars["_p"]->value) { $_smarty_tpl->tpl_vars["_p"]->_loop = true; $_smarty_tpl->tpl_vars["_k"]->value = $_smarty_tpl->tpl_vars["_p"]->key; ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __($_smarty_tpl->tpl_vars['_p']->value['add_name']), 'href' => "pages.add?page_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value . "&parent_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <li class="divider"></li> <?php echo Smarty::$_smarty_vars['capture']['preview']; ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-post", 'text' => __("clone_this_page"), 'href' => "pages.clone?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete_this_page"), 'class' => "cm-confirm cm-post", 'href' => "pages.delete?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if (!$_smarty_tpl->tpl_vars['show_save_btn']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_second_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[pages.update]", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'hide_second_button' => $_smarty_tpl->tpl_vars['hide_second_button']->value, 'but_target_form' => "page_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <!--update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> --></div> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_extra"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'track' => true), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['pages_tree']->value) { ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("pages"); ?> </h6> <div class="nested-tree"> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_links_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('show_all' => false, 'pages_tree' => $_smarty_tpl->tpl_vars['pages_tree']->value), 0); ?> </div> </div> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['_title']->value, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'sidebar_position' => "left", 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); ?> <?php }
function content_55d2ed042b4228_06464166($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('name', 'icon', 'delivery_time', 'weight_limit', 'rate_calculation', 'rate_calculation_manual', 'rate_calculation_realtime', 'shipping_service', 'test', 'weight', 'test', 'test', 'taxes', 'usergroups', 'ttc_usergroups', 'add_shipping_method', 'shipping_methods', 'delete', 'new_shipping_method', 'editing_shipping_method')); if ($_smarty_tpl->tpl_vars['shipping']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings"), null, 0); ?> <script type="text/javascript"> (function(_, $) { $(document).ready(function() { $('#elm_rate_calculation_R,#elm_rate_calculation_M').on('change', function() { if ($(this).val() == 'M') { $('#elm_service').val(''); $('#elm_service').prop('disabled', true); } else { $('#elm_service').prop('disabled', false); } $('#elm_service').trigger('change'); }); $('#elm_service').on('change', function() { var option = $(this).find('option:selected'); var href; if (option.val()) { href = fn_url('shippings.configure?shipping_id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> &module=' + option.data('caShippingModule') + '&code=' + option.data('caShippingCode')); if ($('#configure a').prop('href') != href) { $('#content_configure').remove(); $('#configure a').prop('href', href); } $('#configure').show(); } else { $('#configure').hide(); } }); }); }(Tygh, Tygh.$)); </script> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="shippings_form" enctype="multipart/form-data" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="shipping_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['id']->value) { $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_general"> <?php } ?> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="ship_descr_shipping"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" name="shipping_data[shipping]" id="ship_descr_shipping" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "shipping_data[company_id]", 'id' => "shipping_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'selected' => $_smarty_tpl->tpl_vars['shipping']->value['company_id'], 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "shipping", 'image_object_type' => "shipping", 'image_pair' => $_smarty_tpl->tpl_vars['shipping']->value['icon'], 'no_detailed' => "Y", 'hide_titles' => "Y", 'image_object_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_delivery_time"><?php echo $_smarty_tpl->__("delivery_time"); ?> </label> <div class="controls"> <input type="text" class="input-medium" name="shipping_data[delivery_time]" id="elm_delivery_time" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['delivery_time'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_min_weight"><?php echo $_smarty_tpl->__("weight_limit"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> ):</label> <div class="controls"> <input type="text" name="shipping_data[min_weight]" id="elm_min_weight" size="4" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['min_weight'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini" /> - <input type="text" name="shipping_data[max_weight]" size="4" value="<?php if ($_smarty_tpl->tpl_vars['shipping']->value['max_weight'] != "0.00") { echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['max_weight'], ENT_QUOTES, 'UTF-8'); } ?> " class="input-mini right" /> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("rate_calculation"); ?> </label> <div class="controls"> <label class="radio inline" for="elm_rate_calculation_M"> <input type="radio" name="shipping_data[rate_calculation]" id="elm_rate_calculation_M" value="M" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M" || !$_smarty_tpl->tpl_vars['shipping']->value['rate_calculation']) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("rate_calculation_manual"); ?> </label> <label class="radio inline" for="elm_rate_calculation_R"> <input type="radio" name="shipping_data[rate_calculation]" id="elm_rate_calculation_R" value="R" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "R") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("rate_calculation_realtime"); ?> </label> </div> </div> <div class="control-group"> <label class="control-label" for="elm_service"><?php echo $_smarty_tpl->__("shipping_service"); ?> </label> <div class="controls"> <select name="shipping_data[service_id]" id="elm_service" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M" || !$_smarty_tpl->tpl_vars['id']->value) { ?> disabled="disabled"<?php } ?> > <option value="">--</option> <?php $_smarty_tpl->tpl_vars['service'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['service']->_loop = false; $_from = $_smarty_tpl->tpl_vars['services']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['service']->key => $_smarty_tpl->tpl_vars['service']->value) { $_smarty_tpl->tpl_vars['service']->_loop = true; ?> <option data-ca-shipping-module="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['module'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-shipping-code="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['code'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['service_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['shipping']->value['service_id'] == $_smarty_tpl->tpl_vars['service']->value['service_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <span><?php echo $_smarty_tpl->__("test"); ?> </span> <?php echo $_smarty_tpl->__("weight"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> ) <div class="input-append"> <input id="elm_weight" type="text" class="input-mini" size="3" name="shipping_data[test_weight]" value="0" /> <input type="hidden" name="result_ids" value="elm_shipping_test" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "action", 'but_name' => "dispatch[shippings.test]", 'but_text' => __("test"), 'but_meta' => "cm-submit btn cm-skip-validation cm-ajax cm-form-dialog-opener"), 0); ?> </div> <div id="elm_shipping_test" title="<?php echo $_smarty_tpl->__("test"); ?> "></div> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> </label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label class="checkbox inline" for="elm_shippings_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="shipping_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_shippings_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['shipping']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> – <?php } ?> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:update"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_usergroups")), 0); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "elm_ship_data_usergroup_id", 'name' => "shipping_data[usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['shipping']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "shipping_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['shipping']->value['localization']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "shipping_data[status]", 'id' => "elm_shipping_status", 'obj' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> </fieldset> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("add_shipping_method"), 'href' => "shippings.add")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("shipping_methods"), 'href' => "shippings.manage")); ?> </li> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'dispatch' => "dispatch[shippings.delete_rate_values]", 'form' => "shippings_form")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:update_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.update]", 'but_target_form' => "shippings_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.update]", 'hide_first_button' => true, 'hide_second_button' => true, 'but_target_form' => "shippings_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <input type="hidden" name="selected_section" value="general" /> <!--content_general--></div> <div id="content_configure"> <!--content_configure--></div> <div id="content_shipping_charges"> <?php echo $_smarty_tpl->getSubTemplate("views/shippings/components/rates.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'shipping' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> <!--content_shipping_charges--></div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0); ?> <?php } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->__("new_shipping_method"), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_shipping_method"); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping'], null, 0); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['title']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'select_languages' => true), 0); ?> <?php }
function content_55d2f3b104f8b0_98025960($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('id', 'username', 'person_name', 'email', 'registered', 'type', 'status', 'view', 'administrator', 'vendor_administrator', 'customer', 'affiliate', 'view_all_orders', 'act_on_behalf', 'edit', 'delete', 'notify_user', 'no_data', 'export_selected', 'users', 'add_user')); if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); } ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="userlist_form" id="userlist_form" class="<?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !fn_allowed_for("ULTIMATE")) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="fake" value="1" /> <input type="hidden" name="user_type" value="<?php echo htmlspecialchars($_REQUEST['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="1%" class="center <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </th> <th width="3%" class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") { ?> <th width="18%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=username&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("username"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "username") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="18%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=name&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("person_name"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "name") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=email&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("email"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "email") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="16%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("registered"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=type&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("type"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "type") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:manage_header")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:manage_header"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:manage_header"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <th class="right"> </th> <th width="10%" class="right"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['user']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) { $_smarty_tpl->tpl_vars['user']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['user']->value, "users"), null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value && !defined("RESTRICTED_ADMIN") && $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y') { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable('', null, 0); } elseif ($_smarty_tpl->tpl_vars['allow_save']->value || defined("RESTRICTED_ADMIN") || $_smarty_tpl->tpl_vars['auth']->value['is_root'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable("cm-no-hide-input", null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable('', null, 0); } if (!fn_allowed_for("ULTIMATE")) { ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['user']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['user']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['allow_save']->value || $_smarty_tpl->tpl_vars['user']->value['user_id'] == $_SESSION['auth']['user_id']) { ?> cm-hide-inputs<?php } ?> "> <?php } ?> <td class="center <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="user_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item" /></td> <td><a class="row-status" href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") { ?> <td><a class="row-status" href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_login'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php } ?> <td class="row-status"><?php if ($_smarty_tpl->tpl_vars['user']->value['firstname'] || $_smarty_tpl->tpl_vars['user']->value['lastname']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['firstname'], ENT_QUOTES, 'UTF-8'); ?> </a><?php } else { ?> -<?php } if ($_smarty_tpl->tpl_vars['user']->value['company_id']) { echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['user']->value), 0); } ?> </td> <td><a class="row-status" href="mailto:<?php echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['user']->value['email']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <td class="row-status"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['user']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td class="row-status"><?php if ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A") { echo $_smarty_tpl->__("administrator"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "V") { echo $_smarty_tpl->__("vendor_administrator"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "C") { echo $_smarty_tpl->__("customer"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "P") { echo $_smarty_tpl->__("affiliate"); } ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:manage_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:manage_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:manage_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <td class="right nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "C") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("view_all_orders"), 'href' => "orders.manage?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'])); ?> </li> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_user_need_login($_smarty_tpl->tpl_vars['user']->value['user_type']) && (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id'] && fn_check_permission_act_as_user()) && $_smarty_tpl->tpl_vars['user']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && !($_smarty_tpl->tpl_vars['user']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && $_smarty_tpl->tpl_vars['user']->value['is_root'] == 'Y' && (!$_smarty_tpl->tpl_vars['user']->value['company_id'] || $_smarty_tpl->tpl_vars['user']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']))) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("act_on_behalf"), 'href' => "profiles.act_as_user?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'])); ?> </li> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['list_extra_links']->value) { ?> <li class="divider"></li> <?php } ?> <?php if ($_REQUEST['user_type']) { ?> <?php $_smarty_tpl->tpl_vars["user_edit_link"] = new Smarty_variable("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_REQUEST['user_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["user_edit_link"] = new Smarty_variable("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type'], null, 0); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => $_smarty_tpl->tpl_vars['user_edit_link']->value)); ?> </li> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_delete", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'href' => "profiles.delete?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value)); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['user_id'] != $_SESSION['auth']['user_id']) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A" && $_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y")) { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } elseif ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['user']->value['user_type'] == "V" && $_smarty_tpl->tpl_vars['user']->value['is_root'] == "N") { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } ?> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <input type="hidden" name="user_types[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y" && ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A" || $_smarty_tpl->tpl_vars['user']->value['user_type'] == "V" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['user']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["u_id"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["u_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['user']->value['user_id'], null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y" && $_smarty_tpl->tpl_vars['user']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && (!$_smarty_tpl->tpl_vars['user']->value['company_id'] || $_smarty_tpl->tpl_vars['user']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']) || $_smarty_tpl->tpl_vars['user']->value['user_id'] == $_smarty_tpl->tpl_vars['auth']->value['user_id'] || fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['user']->value['user_type'] == 'C' || $_smarty_tpl->tpl_vars['user']->value['company_id'] && $_smarty_tpl->tpl_vars['user']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['u_id']->value, 'status' => $_smarty_tpl->tpl_vars['user']->value['status'], 'hidden' => '', 'update_controller' => "profiles", 'notify' => true, 'notify_text' => __("notify_user"), 'popup_additional_class' => (string) $_smarty_tpl->tpl_vars['popup_additional_class']->value . " dropleft", 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if (fn_allowed_for("ULTIMATE") || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:list_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:list_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("export_selected"), 'dispatch' => "dispatch[profiles.export_range]", 'form' => "userlist_form")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:list_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[profiles.m_delete]", 'form' => "userlist_form")); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php if ($_REQUEST['user_type']) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable(fn_get_user_type_description($_REQUEST['user_type'], true), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__("users"), null, 0); ?> <?php } ?> <?php if ($_REQUEST['user_type']) { ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR") && ($_REQUEST['user_type'] == 'C' || $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y'))) { ?> <a class="btn cm-tooltip" href="<?php echo htmlspecialchars(fn_url("profiles.add?user_type=" . (string) $_REQUEST['user_type']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("add_user"); ?> "><i class="icon-plus"></i></a> <?php } ?> <?php } else { ?> <?php if (!empty($_smarty_tpl->tpl_vars['user_types']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_p"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["_p"]->_loop = false; $_smarty_tpl->tpl_vars["_k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['user_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["_p"]->key => $_smarty_tpl->tpl_vars["_p"]->value) { $_smarty_tpl->tpl_vars["_p"]->_loop = true; $_smarty_tpl->tpl_vars["_k"]->value = $_smarty_tpl->tpl_vars["_p"]->key; ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR") && ($_REQUEST['user_type'] == 'C' || $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y'))) { ?> <li><a href="<?php echo htmlspecialchars(fn_url("profiles.add?user_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_p']->value); ?> </a></li> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'no_caret' => true, 'icon' => "icon-plus", 'placement' => "right")); ?> <?php } ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "profiles.manage", 'view_type' => "users"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/users_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "profiles.manage"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['_title']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content_id' => "manage_users"), 0); }
function content_55deab24f04f67_88833012($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } fn_preload_lang_vars(array('ungroupped_features', 'editing_product_feature', 'viewing_feature', 'view', 'viewing_feature', 'view', 'editing_group', 'viewing_feature', 'view', 'editing_product_feature', 'no_data', 'new_group', 'add_group', 'new_feature', 'add_feature', 'features')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/product_features.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <div class="items-container<?php if (fn_check_form_permissions('')) { ?> cm-hide-inputs<?php } ?> " id="update_features_list"> <?php if ($_smarty_tpl->tpl_vars['features']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['has_ungroupped']->value) { ?> <div class="object-group clear no-hover row-gray"> <strong><?php echo $_smarty_tpl->__("ungroupped_features"); ?> </strong> </div> <?php } ?> <table width="100%" class="table table-middle table-objects"> <tbody> <?php if ($_smarty_tpl->tpl_vars['has_ungroupped']->value) { ?> <?php $_smarty_tpl->tpl_vars["p_feature"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["p_feature"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["p_feature"]->key => $_smarty_tpl->tpl_vars["p_feature"]->value) { $_smarty_tpl->tpl_vars["p_feature"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['p_feature']->value['feature_type'] != "G") { ?> <?php if (fn_allow_save_object($_smarty_tpl->tpl_vars['p_feature']->value, "product_features")) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_product_feature"); $_tmp1 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['p_feature']->value['feature_id'], 'details' => $_smarty_tpl->tpl_vars['p_feature']->value['feature_description'], 'text' => $_smarty_tpl->tpl_vars['p_feature']->value['description'], 'status' => $_smarty_tpl->tpl_vars['p_feature']->value['status'], 'hidden' => true, 'href' => "product_features.update?feature_id=" . (string) $_smarty_tpl->tpl_vars['p_feature']->value['feature_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "feature_id", 'table' => "product_features", 'href_delete' => "product_features.delete?feature_id=" . (string) $_smarty_tpl->tpl_vars['p_feature']->value['feature_id'], 'delete_target_id' => "pagination_contents", 'header_text' => $_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['p_feature']->value['description'], 'no_table' => true, 'company_object' => $_smarty_tpl->tpl_vars['p_feature']->value), 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("viewing_feature"); $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['p_feature']->value['feature_id'], 'details' => $_smarty_tpl->tpl_vars['p_feature']->value['feature_description'], 'text' => $_smarty_tpl->tpl_vars['p_feature']->value['description'], 'status' => $_smarty_tpl->tpl_vars['p_feature']->value['status'], 'hidden' => true, 'href' => "product_features.update?feature_id=" . (string) $_smarty_tpl->tpl_vars['p_feature']->value['feature_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "feature_id", 'table' => "product_features", 'additional_class' => "cm-hide-inputs", 'header_text' => $_tmp2 . ": " . (string) $_smarty_tpl->tpl_vars['p_feature']->value['description'], 'update_controller' => "product_features", 'no_table' => true, 'non_editable' => true, 'link_text' => __("view"), 'is_view_link' => true, 'company_object' => $_smarty_tpl->tpl_vars['p_feature']->value), 0); ?> <?php } ?> <?php } ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["gr_feature"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["gr_feature"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["gr_feature"]->key => $_smarty_tpl->tpl_vars["gr_feature"]->value) { $_smarty_tpl->tpl_vars["gr_feature"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['gr_feature']->value['feature_type'] == "G") { ?> <?php if (!fn_allow_save_object($_smarty_tpl->tpl_vars['gr_feature']->value, "product_features")) { ?> <?php ob_start(); echo $_smarty_tpl->__("viewing_feature"); $_tmp3 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['gr_feature']->value['feature_id'], 'details' => $_smarty_tpl->tpl_vars['gr_feature']->value['feature_description'], 'text' => $_smarty_tpl->tpl_vars['gr_feature']->value['description'], 'status' => $_smarty_tpl->tpl_vars['gr_feature']->value['status'], 'hidden' => true, 'href' => "product_features.update?feature_id=" . (string) $_smarty_tpl->tpl_vars['gr_feature']->value['feature_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "feature_id", 'table' => "product_features", 'additional_class' => "row-gray", 'header_text' => $_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['gr_feature']->value['description'], 'no_table' => true, 'link_meta' => "strong", 'link_text' => __("view"), 'non_editable' => true, 'is_view_link' => true, 'company_object' => $_smarty_tpl->tpl_vars['gr_feature']->value), 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_group"); $_tmp4 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['gr_feature']->value['feature_id'], 'details' => $_smarty_tpl->tpl_vars['gr_feature']->value['feature_description'], 'text' => $_smarty_tpl->tpl_vars['gr_feature']->value['description'], 'status' => $_smarty_tpl->tpl_vars['gr_feature']->value['status'], 'hidden' => true, 'href' => "product_features.update?feature_id=" . (string) $_smarty_tpl->tpl_vars['gr_feature']->value['feature_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "feature_id", 'table' => "product_features", 'href_delete' => "product_features.delete?feature_id=" . (string) $_smarty_tpl->tpl_vars['gr_feature']->value['feature_id'], 'delete_target_id' => "pagination_contents,content_add_new_feature", 'header_text' => $_tmp4 . ": " . (string) $_smarty_tpl->tpl_vars['gr_feature']->value['description'], 'no_table' => true, 'link_meta' => "strong", 'company_object' => $_smarty_tpl->tpl_vars['gr_feature']->value, 'additional_class' => "row-gray"), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['gr_feature']->value['subfeatures']) { ?> <?php $_smarty_tpl->tpl_vars["subfeature"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["subfeature"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['gr_feature']->value['subfeatures']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["subfeature"]->key => $_smarty_tpl->tpl_vars["subfeature"]->value) { $_smarty_tpl->tpl_vars["subfeature"]->_loop = true; ?> <?php if (!fn_allow_save_object($_smarty_tpl->tpl_vars['subfeature']->value, "product_features")) { ?> <?php ob_start(); echo $_smarty_tpl->__("viewing_feature"); $_tmp5 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['subfeature']->value['feature_id'], 'details' => $_smarty_tpl->tpl_vars['subfeature']->value['feature_description'], 'text' => $_smarty_tpl->tpl_vars['subfeature']->value['description'], 'status' => $_smarty_tpl->tpl_vars['subfeature']->value['status'], 'hidden' => true, 'href' => "product_features.update?feature_id=" . (string) $_smarty_tpl->tpl_vars['subfeature']->value['feature_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "feature_id", 'table' => "product_features", 'additional_class' => "cm-hide-inputs", 'header_text' => $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['subfeature']->value['description'], 'update_controller' => "product_features", 'no_table' => true, 'non_editable' => true, 'link_text' => __("view"), 'is_view_link' => true, 'company_object' => $_smarty_tpl->tpl_vars['subfeature']->value), 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_product_feature"); $_tmp6 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['subfeature']->value['feature_id'], 'details' => $_smarty_tpl->tpl_vars['subfeature']->value['feature_description'], 'text' => $_smarty_tpl->tpl_vars['subfeature']->value['description'], 'status' => $_smarty_tpl->tpl_vars['subfeature']->value['status'], 'hidden' => true, 'href' => "product_features.update?feature_id=" . (string) $_smarty_tpl->tpl_vars['subfeature']->value['feature_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "feature_id", 'table' => "product_features", 'href_delete' => "product_features.delete?feature_id=" . (string) $_smarty_tpl->tpl_vars['subfeature']->value['feature_id'], 'delete_target_id' => "pagination_contents", 'header_text' => $_tmp6 . ": " . (string) $_smarty_tpl->tpl_vars['subfeature']->value['description'], 'update_controller' => "product_features", 'no_table' => true, 'company_object' => $_smarty_tpl->tpl_vars['subfeature']->value), 0); ?> <?php } ?> <?php } ?> <?php } ?> <?php } ?> <?php } ?> </tbody> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <!--update_features_list--></div> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_features/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('feature' => array(), 'is_group' => true), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <li><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_group", 'text' => __("new_group"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'link_text' => __("add_group"), 'act' => "link", 'icon' => "true"), 0); ?> </li> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker_2", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_features/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('feature' => array()), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <li><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_feature", 'text' => __("new_feature"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker_2'], 'link_text' => __("add_feature"), 'act' => "link", 'icon' => "true"), 0); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'icon' => "icon-plus", 'no_caret' => true, 'placement' => "right")); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "product_features.manage", 'view_type' => "product_features"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_features/components/product_features_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "product_features.manage"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("features"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => true, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php }
function content_55deaa21624ff6_83896300($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } fn_preload_lang_vars(array('editing_filter', 'edit', 'viewing_filter', 'view', 'no_data', 'new_filter', 'add_filter', 'filters')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <script type="text/javascript"> var filter_fields = {}; <?php $_smarty_tpl->tpl_vars['filter_field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['filter_field']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['filter_field']->key => $_smarty_tpl->tpl_vars['filter_field']->value) { $_smarty_tpl->tpl_vars['filter_field']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['filter_field']->key; ?> filter_fields['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> '] = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_field']->value['slider'], ENT_QUOTES, 'UTF-8'); ?> '; <?php } ?> function fn_check_product_filter_type(value, tab_id, id) { var $ = Tygh.$; $('#' + tab_id).toggleBy(!(value.indexOf('R') == 0) && !(value.indexOf('D') == 0)); $('[id^=inputs_ranges' + id + ']').toggleBy((value.indexOf('D') == 0)); $('[id^=dates_ranges' + id + ']').toggleBy(!(value.indexOf('D') == 0)); $('#round_to_' + id + '_container').toggleBy(!filter_fields[value.replace(/\w+-/, '')]); $('#display_count_' + id + '_container').toggleBy(!(value.indexOf('R') == 0) && !(value.indexOf('F') == 0) && !(value.indexOf('S') > 0)); $('#display_more_count_' + id + '_container').toggleBy(!(value.indexOf('R') == 0) && !(value.indexOf('F') == 0) && !(value.indexOf('S') > 0)); } </script> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object_type' => "filters"), 0); ?> <?php $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <div class="items-container<?php if (fn_check_form_permissions('')) { ?> cm-hide-inputs<?php } ?> " id="manage_filters_list"> <table width="100%" class="table table-middle table-objects"> <tbody> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) { $_smarty_tpl->tpl_vars["filter"]->_loop = true; ?> <?php if (fn_allow_save_object($_smarty_tpl->tpl_vars['filter']->value, "product_filters")) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_filter"); $_tmp1 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['filter']->value['filter_id'], 'show_id' => true, 'details' => $_smarty_tpl->tpl_vars['filter']->value['filter_description'], 'text' => $_smarty_tpl->tpl_vars['filter']->value['filter'], 'status' => $_smarty_tpl->tpl_vars['filter']->value['status'], 'href' => "product_filters.update?filter_id=" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "filter_id", 'href_delete' => "product_filters.delete?filter_id=" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], 'delete_target_id' => "pagination_contents", 'table' => "product_filters", 'no_table' => true, 'additional_class' => "cm-no-hide-input", 'header_text' => $_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['filter']->value['filter'], 'link_text' => __("edit"), 'company_object' => $_smarty_tpl->tpl_vars['filter']->value), 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("viewing_filter"); $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['filter']->value['filter_id'], 'show_id' => true, 'details' => $_smarty_tpl->tpl_vars['filter']->value['filter_description'], 'text' => $_smarty_tpl->tpl_vars['filter']->value['filter'], 'status' => $_smarty_tpl->tpl_vars['filter']->value['status'], 'href' => "product_filters.update?filter_id=" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "filter_id", 'table' => "product_filters", 'no_table' => true, 'additional_class' => '', 'header_text' => $_tmp2 . ": " . (string) $_smarty_tpl->tpl_vars['filter']->value['filter'], 'link_text' => __("view"), 'non_editable' => true, 'is_view_link' => true, 'company_object' => $_smarty_tpl->tpl_vars['filter']->value), 0); ?> <?php } ?> <?php } if (!$_smarty_tpl->tpl_vars["filter"]->_loop) { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </tbody> </table> <!--manage_filters_list--></div> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object_type' => "filters"), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_filters/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter' => array()), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if (!fn_allowed_for("MULTIVENDOR") || !$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR")) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_product_filter", 'text' => __("new_filter"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'title' => __("add_filter"), 'act' => "general", 'icon' => "icon-plus"), 0); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "product_filters.manage", 'view_type' => "product_filters"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_filters/components/product_filters_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "product_filters.manage"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("filters"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'select_languages' => true), 0); }
function content_55cdb2ac9d45f2_37673160($_smarty_tpl) { fn_preload_lang_vars(array('general', 'products', 'name', 'description', 'avail_from', 'avail_till', 'display_in_promotions', 'combination_products', 'recalculate', 'total_cost', 'price_for_all', 'share_discount', 'apply')); if ($_smarty_tpl->tpl_vars['item']->value['chain_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['chain_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["extra_mode"] = new Smarty_variable("buy_together", null, 0); } ?> <?php if (fn_allow_save_object($_smarty_tpl->tpl_vars['item']->value, "chains") && ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['simple_ultimate'])) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(false, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_inputs"] = new Smarty_variable(" cm-no-hide-input", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['product_id']) { ?> <?php $_smarty_tpl->tpl_vars["product_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['product_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["product_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_id']->value, null, 0); } ?> <div id="content_group_bt_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="item_update_form_bt_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> form-horizontal form-edit" enctype="multipart/form-data"> <input type="hidden" class="cm-no-hide-input" name="fake" value="1" /> <input type="hidden" class="cm-no-hide-input" name="item_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="product_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <li id="tab_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js"><a><?php echo $_smarty_tpl->__("products"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="tabs_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div id="content_tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="elm_buy_together_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" name="item_data[name]" id="elm_buy_together_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " class="span9"> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_buy_together_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <textarea id="elm_buy_together_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="item_data[description]" cols="55" rows="8" class="cm-wysiwyg input-textarea-long"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_buy_together_avail_from_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("avail_from"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_buy_together_avail_from_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'date_name' => "item_data[date_from]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['item']->value['date_from']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_buy_together_avail_till_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("avail_till"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_buy_together_avail_till_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'date_name' => "item_data[date_to]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['item']->value['date_to']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_buy_together_promotions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("display_in_promotions"); ?> :</label> <div class="controls"> <input type="hidden" name="item_data[display_in_promotions]" value="N"> <input type="checkbox" name="item_data[display_in_promotions]" id="elm_buy_together_promotions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" <?php if ($_smarty_tpl->tpl_vars['item']->value['display_in_promotions'] == "Y") { ?> checked="checked"<?php } ?> > </div> </div> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "item_data[status]", 'id' => "elm_buy_together_status_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'obj' => $_smarty_tpl->tpl_vars['item']->value, 'hidden' => false), 0); ?> </div> <div id="content_tab_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['no_hide_inputs']->value) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("combination_products")), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("pickers/products/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_id' => "objects_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_", 'input_name' => "item_data[products]", 'item_ids' => $_smarty_tpl->tpl_vars['item']->value['products_info'], 'type' => "table", 'aoc' => true, 'colspan' => "7", 'placement' => "right"), 0); ?> <ul class="pull-right unstyled right span6"> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li> <a class="btn" onclick="fn_buy_together_recalculate('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ');"><?php echo $_smarty_tpl->__("recalculate"); ?> </a><br><br> </li> <?php } ?> <li> <em><?php echo $_smarty_tpl->__("total_cost"); ?> :</em> <strong><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['item']->value['total_price'], 'span_id' => "total_price_" . (string) $_smarty_tpl->tpl_vars['id']->value), 0); ?> </strong> </li> <li> <em><?php echo $_smarty_tpl->__("price_for_all"); ?> :</em> <strong><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['item']->value['chain_price'], 'span_id' => "price_for_all_" . (string) $_smarty_tpl->tpl_vars['id']->value), 0); ?> </strong> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><br> <label for="elm_buy_together_global_discount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><em><?php echo $_smarty_tpl->__("share_discount"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ):</em> <input type="text" class="input-mini" size="4" id="elm_buy_together_global_discount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " onkeypress="fn_buy_together_share_discount(event, '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" /> <a onclick="fn_buy_together_apply_discount('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="btn"><?php echo $_smarty_tpl->__("apply"); ?> </a></label> </li> <?php } ?> </ul> </div> </fieldset> </div> <div class="buttons-container"> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[buy_together.update]", 'cancel_action' => "close"), 0); ?> <?php } else { ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_second_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[buy_together.update]", 'cancel_action' => "close", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'hide_second_button' => $_smarty_tpl->tpl_vars['hide_second_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } ?> </div> </form> <!--content_group_bt_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php }